Refactor llm config
This commit is contained in:
75
modules/opencode/opencode.work.json
Normal file
75
modules/opencode/opencode.work.json
Normal file
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"default_agent": "plan",
|
||||
"enabled_providers": [
|
||||
"anthropic",
|
||||
"langdock-openai",
|
||||
"sparkr",
|
||||
"sparkl"
|
||||
],
|
||||
"model": "anthropic/claude-opus-5-default",
|
||||
"small_model": "anthropic/claude-sonnet-5-default",
|
||||
"provider": {
|
||||
"sparkr": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "sparkr",
|
||||
"options": {
|
||||
"baseURL": "http://192.168.10.110:8000/v1",
|
||||
"apiKey": "vllm"
|
||||
},
|
||||
"models": {
|
||||
"Qwen/Qwen3-Coder-Next-FP8": {
|
||||
"name": "Qwen3 Coder Next FP8 (local vLLM)",
|
||||
"tool_call": true,
|
||||
"reasoning": false,
|
||||
"limit": { "context": 262144, "output": 8192 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"sparkl": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "sparkl",
|
||||
"options": {
|
||||
"baseURL": "http://192.168.10.111:8000/v1",
|
||||
"apiKey": "vllm"
|
||||
},
|
||||
"models": {
|
||||
"Qwen/Qwen3-30B-A3B": {
|
||||
"name": "Qwen3 30B A3B (local vLLM)",
|
||||
"tool_call": true,
|
||||
"reasoning": true,
|
||||
"limit": { "context": 16384, "output": 8192 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"langdock-openai": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "Langdock OpenAI",
|
||||
"options": {
|
||||
"baseURL": "https://api.langdock.com/openai/eu/v1",
|
||||
"apiKey": "{env:LANGDOCK_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
"gpt-5.6-sol": { "name": "GPT-5.6 Sol" },
|
||||
"gpt-5.6-terra": { "name": "GPT-5.6 Terra" },
|
||||
"gpt-5.6-luna": { "name": "GPT-5.6 Luna" }
|
||||
}
|
||||
},
|
||||
"anthropic": {
|
||||
"options": {
|
||||
"baseURL": "https://api.langdock.com/anthropic/eu/v1",
|
||||
"apiKey": "{env:LANGDOCK_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
"claude-opus-5-default": { "name": "Opus 5" },
|
||||
"claude-opus-4-8-default": { "name": "Opus 4.8" },
|
||||
"claude-sonnet-5-default": { "name": "Sonnet 5" }
|
||||
},
|
||||
"whitelist": [
|
||||
"claude-opus-4-8-default",
|
||||
"claude-opus-5-default",
|
||||
"claude-sonnet-5-default"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user