Skip to content
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

Commits on Oct 16, 2024

  1. 🎛️ [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)
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    bd2cab8 View commit details
    Browse the repository at this point in the history
  2. 🔗 [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
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    b250009 View commit details
    Browse the repository at this point in the history
  3. 🔑 [feat] Add API key retrieval for multiple providers

    - Implement getOpenAIAPIKey function for OpenAI API
    - Add getAWSCredentials function for AWS Bedrock
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    4becd8f View commit details
    Browse the repository at this point in the history
  4. 🔢 [feat] Add token limit constant for Bedrock

    - Define MAX_TOKENS_BEDROCK constant with value 4096
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    aa4c5dc View commit details
    Browse the repository at this point in the history
  5. 🤖 [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
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    f544c0c View commit details
    Browse the repository at this point in the history
  6. 📡 [feat] Add streaming functionality for multiple providers

    - Implement streamTextOpenAI function for OpenAI models
    - Add streamTextBedrock function for AWS Bedrock
    - Update imports and type definitions
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    468708e View commit details
    Browse the repository at this point in the history
  7. 🔀 [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
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    c454142 View commit details
    Browse the repository at this point in the history
  8. 🔄 [refactor] Update enhancer API to use OpenAI

    - Change import to use streamTextOpenAI instead of streamText
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    d85f4e9 View commit details
    Browse the repository at this point in the history
  9. 📦 [chore] Add AWS Bedrock SDK dependency

    - Add @ai-sdk/amazon-bedrock version ^0.0.30 to dependencies
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    cc52f03 View commit details
    Browse the repository at this point in the history
  10. 🔒 [chore] Update lock file with new dependencies

    - Add entries for AWS SDK and related dependencies
    Sunwood-ai-labs committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    fd83214 View commit details
    Browse the repository at this point in the history