fix: align Gemini provider naming with backend database schema#272
fix: align Gemini provider naming with backend database schema#272TheBluCoder wants to merge 1 commit intogenlayerlabs:mainfrom
Conversation
The CLI was using 'geminiai' as the provider identifier, but the backend's llm_provider table uses 'google' for Gemini models. This mismatch caused validator creation to fail with 'Requested providers do not match any stored providers' error. Changes: - src/lib/config/simulator.ts (L26): Update AiProviders type definition from 'geminiai' to 'google' - src/lib/config/simulator.ts (L50-L54): Update AI_PROVIDERS_CONFIG object key and cliOptionValue from 'geminiai' to 'google' This ensures the CLI sends provider names that match the backend's database records, allowing successful validator initialization with Gemini models. Resolves provider validation error during 'genlayer init' workflow.
📝 WalkthroughWalkthroughThe AI provider identifier is renamed from "geminiai" to "google" in the simulator configuration file. This updates the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The CLI was using 'geminiai' as the provider identifier, but the backend's llm_provider table uses 'google' for Gemini models. This mismatch caused validator creation to fail with 'Requested providers do not match any stored providers' error.
Changes:
This ensures the CLI sends provider names that match the backend's database records, allowing successful validator initialization with Gemini models.
Resolves provider validation error during 'genlayer init' workflow.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.