Skip to content

Commit c66f770

Browse files
authored
fix(cli): add @ai-sdk/openai, anthropic, google as direct dependencies (#1667)
1 parent 1dd84c3 commit c66f770

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

.changeset/cli-ai-sdk-deps.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@objectstack/cli": patch
3+
---
4+
5+
Bundle the `@ai-sdk/openai`, `@ai-sdk/anthropic`, and `@ai-sdk/google` provider
6+
SDKs as direct CLI dependencies. These were previously only declared as optional
7+
peer dependencies on `@objectstack/service-ai`, so a globally-installed CLI could
8+
not resolve them at runtime. Configuring an OpenAI-compatible provider (DeepSeek,
9+
DashScope, SiliconFlow, OpenRouter, Cloudflare) — all of which normalise to
10+
`provider=openai` and dynamically import `@ai-sdk/openai` — failed with
11+
"Could not build adapter for provider=…". The CLI now ships these providers so
12+
they work out of the box.

packages/cli/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
"topicSeparator": " "
4040
},
4141
"dependencies": {
42+
"@ai-sdk/anthropic": "^3.0.0",
4243
"@ai-sdk/gateway": "^3.0.121",
44+
"@ai-sdk/google": "^3.0.0",
45+
"@ai-sdk/openai": "^3.0.0",
4346
"@objectstack/account": "workspace:*",
4447
"@objectstack/client": "workspace:*",
4548
"@objectstack/console": "workspace:*",

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)