feat: add AI Stupid Level smart router integration#11132
feat: add AI Stupid Level smart router integration#11132StudioPlatforms wants to merge 2 commits intostackblitz:mainfrom
Conversation
- Add @ai-sdk/openai package for OpenAI-compatible API support - Implement multi-provider support (Anthropic + AI Stupid Level) - Add getAIStupidLevelModel() function with custom baseURL - Support 6 auto-routing models (auto, auto-coding, auto-reasoning, etc.) - Add provider selection via LLM_PROVIDER environment variable - Add TypeScript types for new environment variables - Maintain backward compatibility with existing Anthropic integration - Default model: auto-coding (optimized for software development) Environment variables: - LLM_PROVIDER: 'anthropic' | 'aistupidlevel' (default: anthropic) - AI_STUPID_LEVEL_API_KEY: API key from https://aistupidlevel.info/router/keys - AI_STUPID_LEVEL_MODEL: Model selection (default: auto-coding)
- Add type assertions to fix LanguageModelV2/V1 compatibility - Fix Messages type compatibility with convertToCoreMessages - Apply fixes to both Anthropic and AI Stupid Level code paths
Nephew209-oss
left a comment
There was a problem hiding this comment.
I don't believe that action with that certain language is appropriate in my opinion but I wouldn't approve these changes or that call
|
Thank you for reviewing this PR. I understand the name 'AI Stupid Level' might seem unconventional, but I want to clarify the intent behind it. The name is intentionally ironic and self-aware - it's a playful reference to the common frustration when AI models produce incorrect responses. Rather than being disrespectful, it's a humble acknowledgment that no AI is perfect, and our platform helps users intelligently route between models to minimize those moments. Despite the lighthearted name, this is serious production-grade technology with intelligent model selection, real-time benchmarks, and professional-grade reliability. The tech industry has a long tradition of playful names for serious projects (Git, Apache, etc.). I'd encourage evaluating this PR on its technical merit: clean code, full backward compatibility, zero breaking changes, proper TypeScript typing, and comprehensive testing. The integration is optional and doesn't affect existing Anthropic users. I respect that naming preferences are subjective, but there's no malicious intent here. If you have specific technical concerns about the implementation, I'm happy to address them. |
|
hey https://aistupidlevel.info it's a platform brooooo. that a brand not just a word "stupid"
|
|
Skip to main content Search... Database Domains Hosting Search... Search... Navigation On this page Bolt makes it easy to add database functionality to your app without the hassle of extra infrastructure. You get a ready-to-use database whenever your project needs one, helping you focus on building features rather than configuring servers. YesNo Responses are generated using AI and may contain mistakes. |
Overview
Adds support for AI Stupid Level's intelligent model routing as an alternative LLM provider alongside Anthropic.
Features
Configuration
Available Models
auto- Best overall model based on real-time benchmarksauto-coding- Optimized for coding tasks (default)auto-reasoning- Complex reasoning tasksauto-creative- Creative writingauto-fastest- Prioritizes speedauto-cheapest- Cost optimizationChanges
@ai-sdk/openaipackage for OpenAI-compatible API supportgetAIStupidLevelModel()function with custom baseURLLLM_PROVIDERenvironment variableTesting