8000 add base url for all models gemini, anthropic · Issue #140 · sst/opencode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add base url for all models gemini, anthropic #140

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

Closed
sudip358 opened this issue Jun 16, 2025 · 2 comments
Closed

add base url for all models gemini, anthropic #140

sudip358 opened this issue Jun 16, 2025 · 2 comments
Assignees

Comments

@sudip358
Copy link

Image

can you add similar base url for all models gemini, anthropic like cline/roo code?

@thdxr thdxr self-assigned this Jun 16, 2025
Copy link
Collaborator
thdxr commented Jun 16, 2025

you can set custom options here https://github.com/sst/opencode?tab=readme-ov-file#providers-1

these options map back to ai sdk options https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai#provider-instance

does that answer your question?

@GitMurf
Copy link
GitMurf commented Jun 16, 2025

@thdxr I followed the instructions from the readme for custom options for a openai compatible provider (as you pointed to in your readme) and that works when I add it to a opencode.json file in the root of a project. But I want to be able to use it for all projects but cannot seem to get it to read it from ~/.config/opencode/ or from ~ (home) or from ~/.opencode/ etc... I tried all the potential opencode config locations with no luck.

Am I doing something wrong or do I need to copy the custom opencode.json to each of my project locations in every place I want to use OpenCode with my custom provider options?

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0