Open
Description
Description
I am trying to use opencode with copilot but I am receiving the follwoing message

I tried the follwoing installation methods:
go install github.com/opencode-ai/opencode@latest
#AND
brew install opencode-ai/tap/opencode
This is my machine specs
Model: MacBook Pro
Chip: Apple M1 Max
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 64 GB
OS: Sequoia 15.5
Config File:
{
"data": {
"directory": ".opencode"
},
"providers": {
"anthropic": {
"apiKey": "your-api-key",
"disabled": true
},
"copilot": {
"apiKey": "<HERE IS MY GITHUB TOKEN>",
"disabled": false
},
"groq": {
"apiKey": "your-api-key",
"disabled": true
},
"openai": {
"apiKey": "your-api-key",
"disabled": true
},
"openrouter": {
"apiKey": "your-api-key",
"disabled": true
}
},
"lsp": {
"go": {
"enabled": false,
"command": "gopls",
"args": null,
"options": null
},
"typescript": {
"enabled": false,
"command": "vtsls",
"args": [
"--stdio"
],
"options": null
}
},
"agents": {
"coder": {
"model": "claude-3.7-sonnet",
"maxTokens": 5000,
"reasoningEffort": ""
},
"task": {
"model": "claude-3.7-sonnet",
"maxTokens": 5000,
"reasoningEffort": ""
},
"title": {
"model": "claude-3.7-sonnet",
"maxTokens": 80,
"reasoningEffort": ""
}
},
"tui": {
"theme": "opencode"
},
"shell": {
"path": "/bin/zsh",
"args": [
"-l"
]
},
"autoCompact": true
}
FYI:
@bryanvaz I know implemented the copilot provider, maybe you can point me on the right direction here...
I am trying to debug opencode, and it's seems like when coilot provider tries to call the openai.Client, the base URL is not set here:
opencode/internal/llm/provider/copilot.go
Line 405 in 4427df5
Metadata
Metadata
Assignees
Labels
No labels