-
Notifications
You must be signed in to change notification settings - Fork 153
Read custom providers from opencode.json
from central ~/.config/opencode/
config instead of root of each project
#152
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
Comments
Similar issue opened here #153 (closed to consolidate here) |
yep im going to implement this - my idea was letting you mirror the same structure as does that work for you? |
@thdxr I was actually thinking of requesting exactly that but thought it may sound too complicated 🤣 Perfect! One additional note, I have my OpenAI api key set as env variable for other tools, but I don't want it to show up in the model chooser for opencode. In previous "go version" of opencode we could explicitly disable providers. Is there a way you could implement that? I only want specific providers to show up when using /model but if OpenAI api key env variable is set, opencode seems to auto "load it". Not a huge deal, but would be nice if this was possible! |
good idea can you make a seperate issue for that |
implemented in 0.1.72 and updated README |
@thdxr the new providers config setup inside of I don't know if there is a better way, but here is the patch that got it working for me if I have a provider.toml like this: name = "GitHub Copilot"
npm = "@ai-sdk/openai-compatible"
[options]
baseURL = "http://localhost:3000" Here is the patch that fixes it:
Let me know if you have any questions or thoughts? |
Originally posted by @GitMurf in #140
Figured easier for you all to track @thdxr if I open a new issue for this. Thanks!
p.s. I have dev repo pulled locally and seeing your minute by minute pushes ;) so whenever you are ready for me to test and I fetch and pull and confirm if working!
The text was updated successfully, but these errors were encountered: