feat(web-chat): OpenAI-compatible LLM provider (North Mini Code)#130
Open
robouden wants to merge 1 commit into
Open
feat(web-chat): OpenAI-compatible LLM provider (North Mini Code)#130robouden wants to merge 1 commit into
robouden wants to merge 1 commit into
Conversation
Add an env-gated OpenAI-compatible path alongside the existing Anthropic call so the assistant can run non-Claude models (e.g. Cohere North Mini Code via OpenCode Zen or self-hosted vLLM) without touching the agentic loop. Translates the internal Anthropic message/tool shape to/from the OpenAI chat-completions format. Config via LLM_PROVIDER/LLM_BASE_URL/LLM_API_KEY/LLM_MODEL; defaults preserve the current Claude behavior. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an env-gated OpenAI-compatible LLM path to
cmd/web-chatalongside the existing Anthropic call, so the assistant can run non-Claude models — e.g. Cohere North Mini Code via OpenCode Zen (free) or self-hosted vLLM — without changing the agentic/tool loop.A translation layer (
callOpenAI+anthropicToOpenAIMessages) maps the internal Anthropic message/tool shape to/from OpenAI chat-completions.Config (defaults preserve current Claude behavior)
LLM_PROVIDER=anthropic(default) |openaiLLM_BASE_URL,LLM_API_KEY,LLM_MODELRun with North Mini Code (OpenCode Zen, free)
Status
docs/plans/web-chat-openai-provider.md. Hold merge until local tool-call round-trip is confirmed.🤖 Generated with Claude Code