Skip to content

Conversation

@vurtnec
Copy link

@vurtnec vurtnec commented Dec 20, 2024

Multi-AI Provider Support and Configuration Enhancement

Key Changes

  • 🚀 Added support for OpenAI alongside existing Anthropic model integration
  • 🚀 Added support for Ollama alongside local model.
  • 🔐 Introduced environment variables for managing API keys, base URLs, models, and AI providers
  • 🔄 Optimized model selection logic to support multiple AI providers
  • 🧩 Refactored model functions to streamline API key retrieval and model initialization

Technical Details

  • Added OpenAI model support
  • Environment variable configuration:
    • AI_PROVIDER
    • API_KEY
    • ANTHROPIC_API_KEY
    • MODEL_NAME
    • BASE_URL

Dependencies and Configuration

  • Updated project dependencies

Additional Improvements

  • Cleaned up sidebar component by removing unused imports

Impact

  • Increased flexibility in AI model selection
  • Improved configuration management
  • Enhanced modularity of AI integration

- Added support for OpenAI alongside existing Anthropic model.
- Introduced environment variables for API key, base URL, model, and AI provider.
- Updated model selection logic to accommodate multiple AI providers.
- Refactored model functions to streamline API key retrieval and model initialization.
- Enhanced sidebar component by removing unused imports.

Additionally, updated package dependencies and added a new entry to .gitignore for history files.
- Eliminated console log statements used for debugging in the streamText function.
- Streamlined code for better readability and performance.
Copy link
Member

@AriPerkkio AriPerkkio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @vurtnec.

The bolt.new is currently not accepting contributions. However there is https://bolt.diy/ that welcomes developers and builders to contribute. Check out https://www.youtube.com/watch?v=aZn8PhqUZVU and https://thinktank.ottomator.ai/.

@AriPerkkio AriPerkkio closed this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants