From 4f3aebf003cfa63c966b9858a8f3e5b4a0b9b6cc Mon Sep 17 00:00:00 2001 From: Roberto Carvajal Date: Fri, 26 Dec 2025 12:08:24 -0300 Subject: [PATCH 1/2] Update package.json Fixed wrong perplexity dependency version, 2.0.22 does not exist (likely a typo of 2.0.2) but it makes the package manager resolve to the latest beta version for perplexity which breaks compatibility due to breaking changes. The last version that's compatible with opencode is 2.0.9, this makes perplexity provider API integration work again. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7346a4ca8531..a96004cb37a8 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@ai-sdk/deepinfra": "1.0.30", "@ai-sdk/gateway": "2.0.23", "@ai-sdk/groq": "2.0.33", - "@ai-sdk/perplexity": "2.0.22", + "@ai-sdk/perplexity": "2.0.9", "@ai-sdk/togetherai": "1.0.30", "@aws-sdk/client-s3": "3.933.0", "@opencode-ai/plugin": "workspace:*", From 0bb7b45437b9208e624a2fe26424b5affa5ef81e Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Fri, 26 Dec 2025 11:07:08 -0600 Subject: [PATCH 2/2] fixes --- bun.lock | 14 +++++++------- package.json | 7 ------- packages/opencode/package.json | 7 +++++++ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/bun.lock b/bun.lock index 796cd5661e46..d2fd6aa8de91 100644 --- a/bun.lock +++ b/bun.lock @@ -5,13 +5,6 @@ "": { "name": "opencode", "dependencies": { - "@ai-sdk/cerebras": "1.0.33", - "@ai-sdk/cohere": "2.0.21", - "@ai-sdk/deepinfra": "1.0.30", - "@ai-sdk/gateway": "2.0.23", - "@ai-sdk/groq": "2.0.33", - "@ai-sdk/perplexity": "2.0.22", - "@ai-sdk/togetherai": "1.0.30", "@aws-sdk/client-s3": "3.933.0", "@opencode-ai/plugin": "workspace:*", "@opencode-ai/script": "workspace:*", @@ -263,14 +256,21 @@ "@ai-sdk/amazon-bedrock": "3.0.57", "@ai-sdk/anthropic": "2.0.50", "@ai-sdk/azure": "2.0.73", + "@ai-sdk/cerebras": "1.0.33", + "@ai-sdk/cohere": "2.0.21", + "@ai-sdk/deepinfra": "1.0.30", + "@ai-sdk/gateway": "2.0.23", "@ai-sdk/google": "2.0.44", "@ai-sdk/google-vertex": "3.0.81", + "@ai-sdk/groq": "2.0.33", "@ai-sdk/mcp": "0.0.8", "@ai-sdk/mistral": "2.0.26", "@ai-sdk/openai": "2.0.71", "@ai-sdk/openai-compatible": "1.0.27", + "@ai-sdk/perplexity": "2.0.22", "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.18", + "@ai-sdk/togetherai": "1.0.30", "@ai-sdk/xai": "2.0.42", "@clack/prompts": "1.0.0-alpha.1", "@hono/standard-validator": "0.1.5", diff --git a/package.json b/package.json index a96004cb37a8..aa7031bec725 100644 --- a/package.json +++ b/package.json @@ -67,13 +67,6 @@ "turbo": "2.5.6" }, "dependencies": { - "@ai-sdk/cerebras": "1.0.33", - "@ai-sdk/cohere": "2.0.21", - "@ai-sdk/deepinfra": "1.0.30", - "@ai-sdk/gateway": "2.0.23", - "@ai-sdk/groq": "2.0.33", - "@ai-sdk/perplexity": "2.0.9", - "@ai-sdk/togetherai": "1.0.30", "@aws-sdk/client-s3": "3.933.0", "@opencode-ai/plugin": "workspace:*", "@opencode-ai/script": "workspace:*", diff --git a/packages/opencode/package.json b/packages/opencode/package.json index f04f0bd87159..bf45966d86c7 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -61,6 +61,13 @@ "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.18", "@ai-sdk/xai": "2.0.42", + "@ai-sdk/cerebras": "1.0.33", + "@ai-sdk/cohere": "2.0.21", + "@ai-sdk/deepinfra": "1.0.30", + "@ai-sdk/gateway": "2.0.23", + "@ai-sdk/groq": "2.0.33", + "@ai-sdk/perplexity": "2.0.22", + "@ai-sdk/togetherai": "1.0.30", "@clack/prompts": "1.0.0-alpha.1", "@hono/standard-validator": "0.1.5", "@hono/zod-validator": "catalog:",