Using LlamaBarn with OpenCode #44
erusev
started this conversation in
Integrations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
01— Configure OpenCodecreate
~/.config/opencode/opencode.json{ "$schema": "https://opencode.ai/config.json", "provider": { "LlamaBarn": { "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "http://localhost:2276/v1" }, "models": { "LlamaBarn-model": {} } } } }Note:
LlamaBarn-modelrefers to any model you have running in LlamaBarn. If you're using a specific model and don't plan to switch models often, you can use that model's name directly, e.g.,GPT-OSS 120B.02— Run OpenCode and select LlamaBarn-modelType
/modelsto bring up the model selection menu, then chooseLlamaBarn-model.Beta Was this translation helpful? Give feedback.
All reactions