fix: replace delisted x-ai/grok-4-fast default with the live openai/gpt-4.1-mini#246
Open
Fearvox wants to merge 1 commit into
Open
fix: replace delisted x-ai/grok-4-fast default with the live openai/gpt-4.1-mini#246Fearvox wants to merge 1 commit into
Fearvox wants to merge 1 commit into
Conversation
…pt-4.1-mini The shipped default LLM model id is delisted on OpenRouter, so a fresh setup (copy env.template, add a real OPENROUTER_API_KEY, run) fails on the first LLM call. x-ai/grok-4-fast is absent from the OpenRouter catalog and its endpoints list is empty (0 serving providers); llm_provider.py forwards LLM_MODEL verbatim, so the dead default reaches OpenRouter unchanged. Replace it with openai/gpt-4.1-mini, which is the code's own DEFAULT_LLM_MODEL (llm_provider.py:9) and is live on OpenRouter, in the three places the dead id is shipped: env.template (runtime default), docs/dev_docs/getting_started.md (setup example), and docs/usage/CONFIGURATION_GUIDE.md (cost-effective-model example). Template default now agrees with the code default. Leaves tests/test_llm_switching_e2e.py untouched: it uses x-ai/grok-4-fast on purpose as a disallowed model to assert white-list rejection, and a delisted id is still a valid "disallowed" example there. Co-Authored-By: Claude Opus 4.8 (1M context) <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
The out-of-box LLM model default is a delisted OpenRouter model, so a new
user who copies
env.template, fills in a realOPENROUTER_API_KEY, and runsEverCore fails on the first LLM call.
x-ai/grok-4-fastis no longer served on OpenRouter:GET https://openrouter.ai/api/v1/models— 343 models; the onlygrokids arex-ai/grok-build-0.1,x-ai/grok-4.3,x-ai/grok-4.20,x-ai/grok-4.20-multi-agent).GET …/models/x-ai/grok-4-fast/endpointsreturns 0 serving endpoints, soa chat-completions request with it gets no providers and fails.
src/memory_layer/llm/llm_provider.py:45forwardsLLM_MODELverbatim, so thetemplate value reaches OpenRouter unchanged.
This PR replaces the dead id with
openai/gpt-4.1-mini— which is the code'sown hardcoded
DEFAULT_LLM_MODEL(llm_provider.py:9) and has live OpenRouterendpoints — in the three places the dead id is shipped:
methods/EverCore/env.template(the runtime default)methods/EverCore/docs/dev_docs/getting_started.md(setup example)methods/EverCore/docs/usage/CONFIGURATION_GUIDE.md(the cost-effective-model example)After this change the template default agrees with the code default, so a
fresh
key-only setup works on the first call.Why this id
openai/gpt-4.1-miniis alreadyDEFAULT_LLM_MODELin the code, is live onOpenRouter, and is cost-effective — so template, docs, and code all agree.
Scope
Three files, one dead-id → live-id swap each. No code change. Intentionally
not touched:
tests/test_llm_switching_e2e.pyusesx-ai/grok-4-fastdeliberately as a disallowed model to assert white-list rejection — a delisted
id is still a valid "disallowed" example there, so its meaning is preserved.
Verification
OpenRouter catalog checked live (2026-06-02):
x-ai/grok-4-fastnot present;openai/gpt-4.1-minipresent. A running EverCore configured withopenai/gpt-4.1-miniserves normally.Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
🤖 Generated with Claude Code