-
Notifications
You must be signed in to change notification settings - Fork 0
Add AI provider configurations for local and cloud models #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,43 @@ | |
| "$schema": "https://opencode.ai/config.json", | ||
| "theme": "opencode", | ||
| "model": "kimi-k2", | ||
| "autoupdate": true | ||
| "autoupdate": true, | ||
| "provider": { | ||
| "lmstudio": { | ||
| "npm": "@ai-sdk/openai-compatible", | ||
| "name": "LM Studio (local)", | ||
| "options": { | ||
| "baseURL": "http://127.0.0.1:1234/v1" | ||
| }, | ||
| "models": { | ||
| "qwen/qwen3-coder-30b": { | ||
| "name": "Qwen: Qwen3 Coder 30B" | ||
| } | ||
| } | ||
| }, | ||
| "ollama": { | ||
| "npm": "@ai-sdk/openai-compatible", | ||
| "name": "Ollama (local)", | ||
| "options": { | ||
| "baseURL": "http://localhost:11434/v1" | ||
| }, | ||
| "models": { | ||
| "openai/gpt-oss-20b": { | ||
| "name": "OpenAI: gpt-oss-20b" | ||
| } | ||
| } | ||
| }, | ||
|
Comment on lines
+19
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainOllama provider configuration is correct, but verify model naming. The Ollama configuration is properly structured. However, the model identifier
🏁 Script executed: #!/bin/bash
# Description: Search for documentation or references to gpt-oss-20b model in the codebase
# to verify if this is an established naming convention
rg -i "gpt-oss-20b" -C 3Length of output: 924 🌐 Web query: 💡 Result: Yes. Ollama supports OpenAI's 20B gpt-oss model. The correct Ollama model identifier is gpt-oss:20b (often shown as "gpt-oss-20b" in prose, but use gpt-oss:20b in the Ollama CLI). [1][2] Sources: Use the proper Ollama model naming
🤖 Prompt for AI Agents |
||
| "openrouter": { | ||
| "models": { | ||
| "moonshotai/kimi-k2": { | ||
| "options": { | ||
| "provider": { | ||
| "order": ["baseten"], | ||
| "allow_fallbacks": false | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The pull request description states that this change enhances the OpenRouter provider with a fallback configuration. However, |
||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with the
ollamaprovider configuration (line 23), which useslocalhost, consider usinglocalhosthere as well instead of127.0.0.1. While both are functionally similar on most systems, using a consistent hostname for local services improves the readability and maintainability of the configuration file.