diff --git a/.github/workflows/node-ai.yml b/.github/workflows/node-ai.yml index 1591b0c0e..aa0fe5342 100644 --- a/.github/workflows/node-ai.yml +++ b/.github/workflows/node-ai.yml @@ -1,4 +1,4 @@ -name: telemetry/node-server-sdk-otel +name: sdk/node-server-sdk-ai on: push: @@ -23,13 +23,13 @@ jobs: name: Shared CI Steps uses: ./actions/ci with: - workspace_name: '@launchdarkly/ai' + workspace_name: '@launchdarkly/node-server-sdk-ai' workspace_path: packages/sdk/ai - name: Build bedrock example run: | cd packages/sdk/ai/examples/bedrock - yarn build + yarn && yarn build - name: Build OpenAI example run: | cd packages/sdk/ai/examples/opanai - yarn build + yarn && yarn build diff --git a/packages/sdk/ai/examples/bedrock/package.json b/packages/sdk/ai/examples/bedrock/package.json index 6dd515bde..ff371e5e1 100644 --- a/packages/sdk/ai/examples/bedrock/package.json +++ b/packages/sdk/ai/examples/bedrock/package.json @@ -18,8 +18,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-bedrock-runtime": "^3.679.0", - "@launchdarkly/ai": "0.1.0", - "@launchdarkly/node-server-sdk": "9.7.0" + "@launchdarkly/node-server-sdk": "9.7.0", + "@launchdarkly/node-server-sdk-ai": "0.1.0" }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "^4.1.1", diff --git a/packages/sdk/ai/examples/bedrock/src/index.ts b/packages/sdk/ai/examples/bedrock/src/index.ts index c32e1fa7d..011a9f645 100644 --- a/packages/sdk/ai/examples/bedrock/src/index.ts +++ b/packages/sdk/ai/examples/bedrock/src/index.ts @@ -1,7 +1,7 @@ /* eslint-disable no-console */ import { BedrockRuntimeClient, ConverseCommand, Message } from '@aws-sdk/client-bedrock-runtime'; -import { initAi, LDAIConfig } from '@launchdarkly/ai'; +import { initAi, LDAIConfig } from '@launchdarkly/node-server-sdk-ai'; import { init } from '@launchdarkly/node-server-sdk'; const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY; diff --git a/packages/sdk/ai/examples/openai/package.json b/packages/sdk/ai/examples/openai/package.json index 0e59c12d6..f9d116ab9 100644 --- a/packages/sdk/ai/examples/openai/package.json +++ b/packages/sdk/ai/examples/openai/package.json @@ -16,8 +16,8 @@ "author": "LaunchDarkly", "license": "Apache-2.0", "dependencies": { - "@launchdarkly/ai": "0.1.0", "@launchdarkly/node-server-sdk": "9.7.0", + "@launchdarkly/node-server-sdk-ai": "0.1.0", "openai": "^4.58.1" }, "devDependencies": { diff --git a/packages/sdk/ai/examples/openai/src/index.ts b/packages/sdk/ai/examples/openai/src/index.ts index d1d6bf1b9..1441bf3b1 100644 --- a/packages/sdk/ai/examples/openai/src/index.ts +++ b/packages/sdk/ai/examples/openai/src/index.ts @@ -1,7 +1,7 @@ /* eslint-disable no-console */ import { OpenAI } from 'openai'; -import { initAi } from '@launchdarkly/ai'; +import { initAi } from '@launchdarkly/node-server-sdk-ai'; import { init, LDContext } from '@launchdarkly/node-server-sdk'; // Environment variables diff --git a/packages/sdk/ai/package.json b/packages/sdk/ai/package.json index c4b14385f..c05bd44b2 100644 --- a/packages/sdk/ai/package.json +++ b/packages/sdk/ai/package.json @@ -1,5 +1,5 @@ { - "name": "@launchdarkly/ai", + "name": "@launchdarkly/node-server-sdk-ai", "version": "0.1.0", "description": "LaunchDarkly AI SDK for Node.js", "main": "dist/index.js", diff --git a/tsconfig.json b/tsconfig.json index e9f43e0ce..1c6421115 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -60,7 +60,7 @@ }, { "path": "./packages/sdk/browser/contract-tests/entity/tsconfig.ref.json" - } + }, { "path": "./packages/sdk/ai/tsconfig.ref.json" }