Created
March 3, 2026 14:00
-
-
Save jtmuller5/3db7b1c6393444fa7563aec55b649cae to your computer and use it in GitHub Desktop.
Custom model in OpenCode (.config/opencode/opencode.json)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "provider": { | |
| "local": { | |
| "npm": "@ai-sdk/openai-compatible", | |
| "name": "Local Model", | |
| "options": { | |
| "baseURL": "http://100.77.220.87:8090/v1" | |
| }, | |
| "models": { | |
| "local-model": { | |
| "name": "Local Model" | |
| } | |
| } | |
| } | |
| }, | |
| "model": "local/local-model" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment