GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(opencode): add LiteLLM provider with auto model discovery by balcsida · Pull Request #14468 · anomalyco/opencode ConversationIssue for this PRCloses #13891 Type of change
What does this PR do?Adds a native Discovery: Fetches What gets mapped from
Reasoning transforms: Claude models behind LiteLLM get Files changed:
Builds on ideas from #13896 (fallback endpoint, over-200k pricing, temperature detection) and #14277 (clean fallback chain). Supersedes my earlier #14202 which was auto-closed for not following the PR template. How did you verify your code works?
Screenshots / recordingsN/A — no UI changes Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
balcsida
force-pushed
the
feat/litellm-support
branch
from
d4a5701 to
1e2b913
Compare
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
balcsida
force-pushed
the
feat/litellm-support
branch
2 times, most recently
from
54cedd2 to
d3e6960
Compare
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
balcsida
force-pushed
the
feat/litellm-support
branch
5 times, most recently
from
bf8b1e8 to
7dc5277
Compare
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This was referenced
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
2 tasks
|
There was an error while loading. Please reload this page.
|
@balcsida please rebase, there are some conflicts now. @alexyaroshuk @adamdotdevin could you review please? This will make so many opencode users in enterprise world very happy. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b232351 to
1ef13b8
Compare
|
Hey @kkugot Thanks for the ping, I rebased the branch and fixed the conflicts, but dev currently fails, so tests for this PR will fail as well. While I understand how this feature is a very nice to have in an enterprise environment (it is exactly the same reason why I sent this PR - we would like to use this as well), please kindly don't spam alexyaroshuk and adamdotdevin - I would rather not like put additional pressure on them. Kind regards, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3d73899 to
0988ce8
Compare
# Conflicts: # packages/opencode/src/session/llm.ts
# Conflicts: # packages/opencode/src/provider/provider.ts
Upstream refactored the Env module into an Effect Service; use dep.get() inside the Effect generator and let the caller pass the discovery timeout instead of reading env in the async helper. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
d2fab08 to
159fead
Compare
|
I'm tired |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry @balcsida If it makes you feel better, I've been tracking your PR since the start. Real shame OpenCode ignored this PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Bummer that OpenCode didn't add this. Model discovery is an important feature for enterprise use and helps with cost management. Claude Code does this, and I expect all major vendors will support it if they don't already. Thanks for the hard work balcsida. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[FEATURE]: Auto-load available models from LiteLLM proxy withautoload option
There was an error while loading. Please reload this page.