Repository navigation
feat: add AI Stupid Level as a model provider - #21185
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⛔ Files ignored due to path filters: 1
⚙️ Run configuration
⛔ Files ignored due to path filters: 1
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
@StudioPlatforms would you please resolve the conflicts? |
|
@JinHai-CN Done. The branch is rebased on the current |
ef06d8c to
4a851a4
Compare
Summary
Adds AI Stupid Level as a model provider. AI Stupid Level's Smart Router is an OpenAI-compatible API at
https://aistupidlevel.info/v1. Its model ids are routing modes such asauto-coding,auto-reasoning,auto-tooling,auto-valueandauto-task, and each request goes to the model that currently scores best on continuously re-run benchmarks, called with the user's own provider keys. A real model id (for exampleclaude-opus-5-5) pins one model.Follows the TrustedRouter / Demon Route / Opper pattern:
conf/models/aistupidlevel.json: chat and models suffixes, and eight routing modes as chat models with tool support. Context 262,144 is the smallest across the models the router can choose. They are marked text only, because the router rejects image input.internal/entity/models/aistupidlevel.go:AIStupidLevelModelembedsOpenAIAPICompatibleModel.factory.godispatches theai stupid levelcase, which is the lower-cased provider name.internal/entity/models/aistupidlevel_test.go: these tests run againsthttptestservers:AIStupidLevelModel;conf/llm_factories.json: entry next to TrustedRouter, taggedLLM.LLMFactory.AIStupidLevel, the icon, and the key link (https://aistupidlevel.info/router/keys).conf/model.md: one row in the aggregators table.No Python changes, per AGENTS.md.
Testing:
go test ./internal/entity/models/ -run 'TestAIStupidLevel|TestTrustedRouter|TestDemonRoute'passes. That is the 5 new tests plus the existing TrustedRouter ones, built againstlibrag_tokenizer_c_api.afrominternal/binding/cpp.gofmt -lis clean, and both JSON files parse.Reviewers can try it at no cost: any router key plus the header
X-ASL-Sandbox: trueruns real routing with a mock answer.Disclosure: I work at AI Stupid Level. Prepared with AI assistance (Claude Code) and reviewed before submitting.
Type of change