Repository navigation
Test API keys with the cheapest registry models; remove Gemini 2.5 from Requesty - #421
Merged
Merged
Conversation
…hardcoded one Perplexity and Requesty cannot check a key without sending a message. They now take the cheapest models from their own registry (priced models first, up to three) and move to the next when one is refused as a model; a refusal of the key stops at once. Requesty's old test model, openai/gpt-5-nano, was not even in its registry. A guard test fails if ValidationService names a model id again. Remove Gemini 2.5 Flash and Gemini 2.5 Pro from Requesty: Google retires both (Cloud 2026-10-20) and new accounts already get "no longer available". Co-Authored-By: Claude Opus 5.5 <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.
Summary
This follows #420 and makes sure no key check can break again because a model was retired.
/key, plus the model lists for OpenAI, Anthropic, Google, Mistral, Groq and DeepSeek.sonar→sonar-reasoning-pro→sonar-deep-researchopenai/gpt-5.4-nano→mistral/mistral-large-4→moonshot/kimi-k2.7-codeopenai/gpt-5-nano, was not in its registry at all.ValidationService.tsnames a model id again, either asmodel: '...'or as a/models/<id>:generateContentURL.Test plan
LLMValidationService.test.ts, 29 tests:npm run build;check_model_registry.py requesty perplexitycleansonarand Requesty afteropenai/gpt-5.4-nano, each with the provider's own error. No valid keys were available to test a successful check.🤖 Generated with Claude Code