Fix/issue 6400 provider fix#6551
Open
datascientist970 wants to merge 28 commits intoaden-hive:mainfrom
Open
Conversation
fix(llm): add config.py for provider selection
…llback-2 Fix LLM provider selection inconsistency and add interactive fallback menu
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.
Fixes #6400
Description
This PR addresses multiple issues with LLM provider selection, model management, and persistent configuration. The changes ensure users can select, change, and persist their model choices without manual configuration file editing.
Key Changes
1. Provider Selection Flow Improvements
2. Persistent Model Management CLI
Added new
hive modelcommands:3. Configuration Fixes
save_configuration()function to properly create~/.hive/configuration.jsonmodel_displayfield to store user-friendly model names4. Gemini API Fixes
_force_gemini_api_mode()to disable Vertex AI5. Quickstart Improvements
gemini-2.5-flash- Fast, free tierFiles Changed
quickstart.shcore/framework/llm/litellm.pycore/framework/llm/provider_models.pycore/framework/model_cli.pycore/framework/cli.pycore/framework/config.pyHow to Test
Fresh Setup
Model Management
Verify Configuration
Start Hive
./hive open # Check logs for "provider = gemini" not "vertex_ai"Testing Checklist
hive modelcommands workRelated Issues
Notes
anthropic.pyare harmless and don't affect functionalityhive model changeThis PR makes Hive's model management user-friendly and eliminates the need for manual configuration file editing!