feat: Add OpenCode configuration for local Ollama
Add OpenCode.ai configuration to use local Ollama instance with Qwen2.5-Coder 7B model for AI-assisted coding tasks.
This commit is contained in:
parent
8d0f60d9d1
commit
3a278690f7
1 changed files with 18 additions and 0 deletions
18
opencode.json
Normal file
18
opencode.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"provider": {
|
||||
"ollama": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "Ollama (Local)",
|
||||
"options": {
|
||||
"baseURL": "http://localhost:11434/v1"
|
||||
},
|
||||
"models": {
|
||||
"qwen2.5-coder:7b": {
|
||||
"name": "Qwen2.5-Coder 7B (Coding)",
|
||||
"context_length": 32768
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue