Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/create-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
ANTHROPIC_KEY: "op://Product ACT/pql-docs-bot/anthropic-api-key"
APP_PG_JDBC_URL: "op://Product ACT/pql-docs-bot/postgres-jdbc-url"
APP_PG_JDBC_SCHEMAS: "op://Product ACT/pql-docs-bot/postgres-jdbc-schemas"
APP_TS_OPENAI_API_KEY: "op://Product ACT/pql-docs-bot/openai-api-key"

- name: Install DDN CLI
run: |
Expand All @@ -46,6 +47,7 @@ jobs:
ANTHROPIC_KEY=$ANTHROPIC_KEY
APP_PG_JDBC_URL=$APP_PG_JDBC_URL
APP_PG_JDBC_SCHEMAS=$APP_PG_JDBC_SCHEMAS
APP_TS_OPENAI_API_KEY=$APP_TS_OPENAI_API_KEY
EOF

- name: Create DDN build
Expand Down
9 changes: 5 additions & 4 deletions pql/app/connector/ts/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ services:
build:
context: .
dockerfile: .hasura-connector/Dockerfile
develop:
watch:
- action: rebuild
path: .
environment:
HASURA_SERVICE_TOKEN_SECRET: $APP_TS_HASURA_SERVICE_TOKEN_SECRET
OPENAI_API_KEY: $APP_TS_OPENAI_API_KEY
OTEL_EXPORTER_OTLP_ENDPOINT: $APP_TS_OTEL_EXPORTER_OTLP_ENDPOINT
OTEL_SERVICE_NAME: $APP_TS_OTEL_SERVICE_NAME
extra_hosts:
- local.hasura.dev:host-gateway
ports:
- 9789:8080
develop:
watch:
- action: rebuild
path: .
2 changes: 2 additions & 0 deletions pql/app/connector/ts/connector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ definition:
fromEnv: APP_TS_HASURA_CONNECTOR_PORT
HASURA_SERVICE_TOKEN_SECRET:
fromEnv: APP_TS_HASURA_SERVICE_TOKEN_SECRET
OPENAI_API_KEY:
fromEnv: APP_TS_OPENAI_API_KEY
OTEL_EXPORTER_OTLP_ENDPOINT:
fromEnv: APP_TS_OTEL_EXPORTER_OTLP_ENDPOINT
OTEL_SERVICE_NAME:
Expand Down
2 changes: 1 addition & 1 deletion pql/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ services:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
promptql-playground:
environment:
ANTHROPIC_KEY: ${ANTHROPIC_KEY}
CONFIG_PATH: /app/promptql_config.json
CORS_ORIGINS: ${CORS_ORIGINS:-https://console.hasura.io,https://promptql.console.hasura.io}
DDN_URL: ${HASURA_DDN_URL:-http://engine:3000/v1/sql}
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://local.hasura.dev:4317}
PROMPTQL_SECRET_KEY: ${PROMPTQL_SECRET_KEY}
ANTHROPIC_KEY: ${ANTHROPIC_KEY}
extra_hosts:
- local.hasura.dev:host-gateway
image: us-east4-docker.pkg.dev/promptql-execution-service/promptql-public/promptql-playground-local
Expand Down