GeezerVison is showing github.com — fix: bundle more providers to fix breaking ai sdk issue · awakecoding/opencode@f9be2ba
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: bun.lock +53-2Lines changed: 53 additions & 2 deletions Collapse file Copy file name to clipboardExpand all lines: package.json +8-1Lines changed: 8 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 64 | 64 | "turbo": "2.5.6" | 65 | 65 | }, | 66 | 66 | "dependencies": { | | 67 | + "@ai-sdk/cerebras": "1.0.33", | | 68 | + "@ai-sdk/cohere": "2.0.21", | | 69 | + "@ai-sdk/deepinfra": "1.0.30", | | 70 | + "@ai-sdk/gateway": "2.0.23", | | 71 | + "@ai-sdk/groq": "2.0.33", | | 72 | + "@ai-sdk/perplexity": "2.0.22", | | 73 | + "@ai-sdk/togetherai": "1.0.30", | 67 | 74 | "@aws-sdk/client-s3": "3.933.0", | | 75 | + "@opencode-ai/plugin": "workspace:*", | 68 | 76 | "@opencode-ai/script": "workspace:*", | 69 | 77 | "@opencode-ai/sdk": "workspace:*", | 70 | | - "@opencode-ai/plugin": "workspace:*", | 71 | 78 | "typescript": "catalog:" | 72 | 79 | }, | 73 | 80 | "repository": { | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/package.json +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 55 | 55 | "@ai-sdk/google": "2.0.44", | 56 | 56 | "@ai-sdk/google-vertex": "3.0.81", | 57 | 57 | "@ai-sdk/mcp": "0.0.8", | | 58 | + "@ai-sdk/mistral": "2.0.26", | 58 | 59 | "@ai-sdk/openai": "2.0.71", | 59 | 60 | "@ai-sdk/openai-compatible": "1.0.27", | 60 | 61 | "@ai-sdk/provider": "2.0.0", | 61 | 62 | "@ai-sdk/provider-utils": "3.0.18", | | 63 | + "@ai-sdk/xai": "2.0.42", | 62 | 64 | "@clack/prompts": "1.0.0-alpha.1", | 63 | 65 | "@hono/standard-validator": "0.1.5", | 64 | 66 | "@hono/zod-validator": "catalog:", | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/provider/provider.ts +18Lines changed: 18 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,6 +25,15 @@ import { createOpenAI } from "@ai-sdk/openai" | 25 | 25 | import { createOpenAICompatible } from "@ai-sdk/openai-compatible" | 26 | 26 | import { createOpenRouter, type LanguageModelV2 } from "@openrouter/ai-sdk-provider" | 27 | 27 | import { createOpenaiCompatible as createGitHubCopilotOpenAICompatible } from "./sdk/openai-compatible/src" | | 28 | +import { createXai } from "@ai-sdk/xai" | | 29 | +import { createMistral } from "@ai-sdk/mistral" | | 30 | +import { createGroq } from "@ai-sdk/groq" | | 31 | +import { createDeepInfra } from "@ai-sdk/deepinfra" | | 32 | +import { createCerebras } from "@ai-sdk/cerebras" | | 33 | +import { createCohere } from "@ai-sdk/cohere" | | 34 | +import { createGateway } from "@ai-sdk/gateway" | | 35 | +import { createTogetherAI } from "@ai-sdk/togetherai" | | 36 | +import { createPerplexity } from "@ai-sdk/perplexity" | 28 | 37 |
| 29 | 38 | export namespace Provider { | 30 | 39 | const log = Log.create({ service: "provider" }) | @@ -39,6 +48,15 @@ export namespace Provider { | 39 | 48 | "@ai-sdk/openai": createOpenAI, | 40 | 49 | "@ai-sdk/openai-compatible": createOpenAICompatible, | 41 | 50 | "@openrouter/ai-sdk-provider": createOpenRouter, | | 51 | + "@ai-sdk/xai": createXai, | | 52 | + "@ai-sdk/mistral": createMistral, | | 53 | + "@ai-sdk/groq": createGroq, | | 54 | + "@ai-sdk/deepinfra": createDeepInfra, | | 55 | + "@ai-sdk/cerebras": createCerebras, | | 56 | + "@ai-sdk/cohere": createCohere, | | 57 | + "@ai-sdk/gateway": createGateway, | | 58 | + "@ai-sdk/togetherai": createTogetherAI, | | 59 | + "@ai-sdk/perplexity": createPerplexity, | 42 | 60 | // @ts-ignore (TODO: kill this code so we dont have to maintain it) | 43 | 61 | "@ai-sdk/github-copilot": createGitHubCopilotOpenAICompatible, | 44 | 62 | } | |
|