summaryrefslogtreecommitdiffhomepage
path: root/cloud/app/src
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-09-09 05:42:13 -0400
committerFrank <[email protected]>2025-09-09 05:42:15 -0400
commit74f0edc7a8441055a4efce93767c39dac09d7665 (patch)
tree8f881e1af87036267a17f9104c49603d696c5ca0 /cloud/app/src
parentdcabafcdcecc80ca3826a2e47672bd6fc77b7bc0 (diff)
downloadopencode-74f0edc7a8441055a4efce93767c39dac09d7665.tar.gz
opencode-74f0edc7a8441055a4efce93767c39dac09d7665.zip
wip: zen
Diffstat (limited to 'cloud/app/src')
-rw-r--r--cloud/app/src/routes/zen/v1/chat/completions.ts41
1 files changed, 36 insertions, 5 deletions
diff --git a/cloud/app/src/routes/zen/v1/chat/completions.ts b/cloud/app/src/routes/zen/v1/chat/completions.ts
index ce9f080c5..cf0dbcabd 100644
--- a/cloud/app/src/routes/zen/v1/chat/completions.ts
+++ b/cloud/app/src/routes/zen/v1/chat/completions.ts
@@ -21,8 +21,23 @@ const MODELS = {
// },
// headerMappings: {},
// },
- "qwen/qwen3-coder": {
- id: "qwen/qwen3-coder" as const,
+ "gpt-5": {
+ id: "gpt-5" as const,
+ auth: true,
+ api: "https://inference.baseten.co",
+ apiKey: Resource.BASETEN_API_KEY.value,
+ model: "Qwen/Qwen3-Coder-480B-A35B-Instruct",
+ cost: {
+ input: 0.00000125,
+ output: 0.00001,
+ reasoning: 0,
+ cacheRead: 0.000000125,
+ cacheWrite: 0,
+ },
+ headerMappings: {},
+ },
+ "qwen3-coder": {
+ id: "qwen3-coder" as const,
auth: true,
api: "https://inference.baseten.co",
apiKey: Resource.BASETEN_API_KEY.value,
@@ -36,8 +51,8 @@ const MODELS = {
},
headerMappings: {},
},
- "moonshotai/kimi-k2": {
- id: "moonshotai/kimi-k2" as const,
+ "kimi-k2": {
+ id: "kimi-k2" as const,
auth: true,
api: "https://inference.baseten.co",
apiKey: Resource.BASETEN_API_KEY.value,
@@ -52,7 +67,7 @@ const MODELS = {
headerMappings: {},
},
"grok-code": {
- id: "x-ai/grok-code-fast-1" as const,
+ id: "grok-code" as const,
auth: false,
api: "https://api.x.ai",
apiKey: Resource.XAI_API_KEY.value,
@@ -69,6 +84,22 @@ const MODELS = {
"x-grok-req-id": "x-opencode-request",
},
},
+ // deprecated
+ "qwen/qwen3-coder": {
+ id: "qwen/qwen3-coder" as const,
+ auth: true,
+ api: "https://inference.baseten.co",
+ apiKey: Resource.BASETEN_API_KEY.value,
+ model: "Qwen/Qwen3-Coder-480B-A35B-Instruct",
+ cost: {
+ input: 0.00000038,
+ output: 0.00000153,
+ reasoning: 0,
+ cacheRead: 0,
+ cacheWrite: 0,
+ },
+ headerMappings: {},
+ },
}
const FREE_WORKSPACES = [