Skip to content

Commit

Permalink
Merge pull request #270 from stackql/dev
Browse files Browse the repository at this point in the history
`confluent` and `anthropic`
  • Loading branch information
jeffreyaven authored Nov 1, 2024
2 parents 25e21e8 + d3dee18 commit 59dd2c2
Show file tree
Hide file tree
Showing 24 changed files with 137,703 additions and 39 deletions.
79 changes: 40 additions & 39 deletions providers/src/anthropic/v00.00.00000/services/messages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,42 +254,43 @@ components:
update: []
replace: []
delete: []
claude_35_chat:
name: claude_35_chat
id: anthropic.messages.claude_35_chat
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
model as model,
role as role,
stop_reason as stop_reason,
stop_sequence as stop_sequence,
JSON_EXTRACT(usage, '$.input_tokens') as input_tokens,
JSON_EXTRACT(usage, '$.output_tokens') as output_tokens,
JSON_EXTRACT(json_each.value, '$.text') as content
FROM
anthropic.messages.message, JSON_EACH(content)
WHERE "anthropic-version" = '2023-06-01'
AND data__model = 'claude-3-5-sonnet-20240620'
AND data__max_tokens = 1024
AND data__messages = '[{"role": "user", "content": "one sentence summary of stackql"}]'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
model as model,
role as role,
stop_reason as stop_reason,
stop_sequence as stop_sequence,
json_extract_path_text(usage, 'input_tokens') as input_tokens,
json_extract_path_text(usage, 'output_tokens') as output_tokens,
json_extract_path_text(json_each.value, 'text') as content
FROM
anthropic.messages.message, json_array_elements_text(content)
WHERE "anthropic-version" = '2023-06-01'
AND data__model = 'claude-3-5-sonnet-20240620'
AND data__max_tokens = 1024
AND data__messages = '[{"role": "user", "content": "one sentence summary of stackql"}]'
# claude_35_chat:
# name: claude_35_chat
# id: anthropic.messages.claude_35_chat
# config:
# views:
# select:
# predicate: sqlDialect == "sqlite3"
# ddl: |-
# SELECT
# model as model,
# role as role,
# stop_reason as stop_reason,
# stop_sequence as stop_sequence,
# data__messages as messages,
# JSON_EXTRACT(usage, '$.input_tokens') as input_tokens,
# JSON_EXTRACT(usage, '$.output_tokens') as output_tokens,
# JSON_EXTRACT(json_each.value, '$.text') as content
# FROM
# anthropic.messages.message, JSON_EACH(content)
# WHERE "anthropic-version" = '2023-06-01'
# AND data__model = 'claude-3-5-sonnet-20240620'
# AND data__max_tokens = 1024
# AND data__messages = '[{"role": "user", "content": "one sentence summary of stackql"}]'
# fallback:
# predicate: sqlDialect == "postgres"
# ddl: |-
# SELECT
# model as model,
# role as role,
# stop_reason as stop_reason,
# stop_sequence as stop_sequence,
# json_extract_path_text(usage, 'input_tokens') as input_tokens,
# json_extract_path_text(usage, 'output_tokens') as output_tokens,
# json_extract_path_text(json_each.value, 'text') as content
# FROM
# anthropic.messages.message, json_array_elements_text(content)
# WHERE "anthropic-version" = '2023-06-01'
# AND data__model = 'claude-3-5-sonnet-20240620'
# AND data__max_tokens = 1024
# AND data__messages = '[{"role": "user", "content": "one sentence summary of stackql"}]'
207 changes: 207 additions & 0 deletions providers/src/confluent/v00.00.00000/provider.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
id: confluent
name: confluent
version: v00.00.00000
providerServices:
billing:
id: 'billing:v00.00.00000'
name: billing
preferred: true
service:
$ref: confluent/v00.00.00000/services/billing.yaml
title: Confluent Cloud APIs - Billing
version: v00.00.00000
description: Billing
catalog:
id: 'catalog:v00.00.00000'
name: catalog
preferred: true
service:
$ref: confluent/v00.00.00000/services/catalog.yaml
title: Confluent Cloud APIs - Catalog
version: v00.00.00000
description: Catalog
connect:
id: 'connect:v00.00.00000'
name: connect
preferred: true
service:
$ref: confluent/v00.00.00000/services/connect.yaml
title: Confluent Cloud APIs - Connect
version: v00.00.00000
description: Connect
encryption_keys:
id: 'encryption_keys:v00.00.00000'
name: encryption_keys
preferred: true
service:
$ref: confluent/v00.00.00000/services/encryption_keys.yaml
title: Confluent Cloud APIs - Encryption Keys
version: v00.00.00000
description: Encryption Keys
flink_artifacts:
id: 'flink_artifacts:v00.00.00000'
name: flink_artifacts
preferred: true
service:
$ref: confluent/v00.00.00000/services/flink_artifacts.yaml
title: Confluent Cloud APIs - Flink Artifacts
version: v00.00.00000
description: Flink Artifacts
flink_compute_pools:
id: 'flink_compute_pools:v00.00.00000'
name: flink_compute_pools
preferred: true
service:
$ref: confluent/v00.00.00000/services/flink_compute_pools.yaml
title: Confluent Cloud APIs - Flink Compute Pools
version: v00.00.00000
description: Flink Compute Pools
iam:
id: 'iam:v00.00.00000'
name: iam
preferred: true
service:
$ref: confluent/v00.00.00000/services/iam.yaml
title: Confluent Cloud APIs - Iam
version: v00.00.00000
description: Iam
kafka:
id: 'kafka:v00.00.00000'
name: kafka
preferred: true
service:
$ref: confluent/v00.00.00000/services/kafka.yaml
title: Confluent Cloud APIs - Kafka
version: v00.00.00000
description: Kafka
ksqldb_clusters:
id: 'ksqldb_clusters:v00.00.00000'
name: ksqldb_clusters
preferred: true
service:
$ref: confluent/v00.00.00000/services/ksqldb_clusters.yaml
title: Confluent Cloud APIs - Ksqldb Clusters
version: v00.00.00000
description: Ksqldb Clusters
managed_kafka_clusters:
id: 'managed_kafka_clusters:v00.00.00000'
name: managed_kafka_clusters
preferred: true
service:
$ref: confluent/v00.00.00000/services/managed_kafka_clusters.yaml
title: Confluent Cloud APIs - Managed Kafka Clusters
version: v00.00.00000
description: Managed Kafka Clusters
networking:
id: 'networking:v00.00.00000'
name: networking
preferred: true
service:
$ref: confluent/v00.00.00000/services/networking.yaml
title: Confluent Cloud APIs - Networking
version: v00.00.00000
description: Networking
notifications:
id: 'notifications:v00.00.00000'
name: notifications
preferred: true
service:
$ref: confluent/v00.00.00000/services/notifications.yaml
title: Confluent Cloud APIs - Notifications
version: v00.00.00000
description: Notifications
org:
id: 'org:v00.00.00000'
name: org
preferred: true
service:
$ref: confluent/v00.00.00000/services/org.yaml
title: Confluent Cloud APIs - Org
version: v00.00.00000
description: Org
partner:
id: 'partner:v00.00.00000'
name: partner
preferred: true
service:
$ref: confluent/v00.00.00000/services/partner.yaml
title: Confluent Cloud APIs - Partner
version: v00.00.00000
description: Partner
pipelines:
id: 'pipelines:v00.00.00000'
name: pipelines
preferred: true
service:
$ref: confluent/v00.00.00000/services/pipelines.yaml
title: Confluent Cloud APIs - Pipelines
version: v00.00.00000
description: Pipelines
provider_integrations:
id: 'provider_integrations:v00.00.00000'
name: provider_integrations
preferred: true
service:
$ref: confluent/v00.00.00000/services/provider_integrations.yaml
title: Confluent Cloud APIs - Provider Integrations
version: v00.00.00000
description: Provider Integrations
quotas:
id: 'quotas:v00.00.00000'
name: quotas
preferred: true
service:
$ref: confluent/v00.00.00000/services/quotas.yaml
title: Confluent Cloud APIs - Quotas
version: v00.00.00000
description: Quotas
schema_registry:
id: 'schema_registry:v00.00.00000'
name: schema_registry
preferred: true
service:
$ref: confluent/v00.00.00000/services/schema_registry.yaml
title: Confluent Cloud APIs - Schema Registry
version: v00.00.00000
description: Schema Registry
schema_registry_clusters:
id: 'schema_registry_clusters:v00.00.00000'
name: schema_registry_clusters
preferred: true
service:
$ref: confluent/v00.00.00000/services/schema_registry_clusters.yaml
title: Confluent Cloud APIs - Schema Registry Clusters
version: v00.00.00000
description: Schema Registry Clusters
sql:
id: 'sql:v00.00.00000'
name: sql
preferred: true
service:
$ref: confluent/v00.00.00000/services/sql.yaml
title: Confluent Cloud APIs - Sql
version: v00.00.00000
description: Sql
stream_sharing:
id: 'stream_sharing:v00.00.00000'
name: stream_sharing
preferred: true
service:
$ref: confluent/v00.00.00000/services/stream_sharing.yaml
title: Confluent Cloud APIs - Stream Sharing
version: v00.00.00000
description: Stream Sharing
sts:
id: 'sts:v00.00.00000'
name: sts
preferred: true
service:
$ref: confluent/v00.00.00000/services/sts.yaml
title: Confluent Cloud APIs - Sts
version: v00.00.00000
description: Sts
config:
auth:
type: basic
username_var: CONFLUENT_CLOUD_API_KEY
password_var: CONFLUENT_CLOUD_API_SECRET
Loading

0 comments on commit 59dd2c2

Please sign in to comment.