-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🧠 feat: Implement Multi-Model Support and Extended API Integration #651
🧠 feat: Implement Multi-Model Support and Extended API Integration #651
Commits on Oct 16, 2024
-
🎛️ [feat] Add model selection dropdown
- Implement a dropdown to select different AI models - Update component props to include selectedModel and setSelectedModel - Add options for Claude 3.5, GPT-4o, o1-preview, o1-mini, AWS Bedrock Claude, and Gemini (disabled)
Configuration menu - View commit details
-
Copy full SHA for bd2cab8 - Browse repository at this point
Copy the full SHA bd2cab8View commit details -
🔗 [feat] Integrate model selection with chat functionality
- Add selectedModel state and pass it to ChatImpl component - Update useChat hook to include selectedModel in API request body - Refactor message appending logic to include selectedModel
Configuration menu - View commit details
-
Copy full SHA for b250009 - Browse repository at this point
Copy the full SHA b250009View commit details -
🔑 [feat] Add API key retrieval for multiple providers
- Implement getOpenAIAPIKey function for OpenAI API - Add getAWSCredentials function for AWS Bedrock
Configuration menu - View commit details
-
Copy full SHA for 4becd8f - Browse repository at this point
Copy the full SHA 4becd8fView commit details -
🔢 [feat] Add token limit constant for Bedrock
- Define MAX_TOKENS_BEDROCK constant with value 4096
Configuration menu - View commit details
-
Copy full SHA for aa4c5dc - Browse repository at this point
Copy the full SHA aa4c5dcView commit details -
🤖 [feat] Implement model creation for multiple providers
- Add getOpenAIModel function for OpenAI models - Implement getBedrockModel function for AWS Bedrock - Update imports to include new SDK components
Configuration menu - View commit details
-
Copy full SHA for f544c0c - Browse repository at this point
Copy the full SHA f544c0cView commit details -
📡 [feat] Add streaming functionality for multiple providers
- Implement streamTextOpenAI function for OpenAI models - Add streamTextBedrock function for AWS Bedrock - Update imports and type definitions
Configuration menu - View commit details
-
Copy full SHA for 468708e - Browse repository at this point
Copy the full SHA 468708eView commit details -
🔀 [feat] Update chat API to support multiple models
- Modify chatAction to handle different model selections - Implement conditional logic to use appropriate streaming function based on selected model - Update error handling and response headers
Configuration menu - View commit details
-
Copy full SHA for c454142 - Browse repository at this point
Copy the full SHA c454142View commit details -
🔄 [refactor] Update enhancer API to use OpenAI
- Change import to use streamTextOpenAI instead of streamText
Configuration menu - View commit details
-
Copy full SHA for d85f4e9 - Browse repository at this point
Copy the full SHA d85f4e9View commit details -
📦 [chore] Add AWS Bedrock SDK dependency
- Add @ai-sdk/amazon-bedrock version ^0.0.30 to dependencies
Configuration menu - View commit details
-
Copy full SHA for cc52f03 - Browse repository at this point
Copy the full SHA cc52f03View commit details -
🔒 [chore] Update lock file with new dependencies
- Add entries for AWS SDK and related dependencies
Configuration menu - View commit details
-
Copy full SHA for fd83214 - Browse repository at this point
Copy the full SHA fd83214View commit details