Skip to content

Add multi-provider support with OpenAI integration #11

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RealShocky
Copy link
Contributor

Add Multi-Provider Support (OpenAI + Anthropic)

Multi-Provider Support Enhancement

This PR adds robust multi-provider support to Grunty AI, allowing the application to work with both Anthropic Claude and OpenAI models.

Key Features Added:

  1. Provider Selection UI:

    • Dropdown menu to switch between Anthropic and OpenAI
    • Dynamic model selection based on the active provider
  2. Provider-Specific Integration:

    • OpenAI provider implementation with GPT-4o, GPT-4 Turbo, and GPT-4 support
    • Enhanced Anthropic provider implementation with latest models
    • Provider-specific prompt management
  3. Improved Error Handling:

    • Detailed logging throughout the application
    • User-friendly error messages
    • Graceful degradation when optional dependencies are missing
  4. Configuration:

    • Updated environment variables to support both providers
    • Default provider setting in .env file
  5. Testing:

    • Added test script for provider verification

Documentation:

  • Updated README.md with multi-provider information
  • Added provider debugging documentation
  • Enhanced comments throughout codebase

Testing Performed:

  • Tested provider switching functionality
  • Verified model selection for each provider
  • Validated error handling with invalid configurations
  • Checked computer control capabilities with both providers

This enhancement significantly expands Grunty's capabilities by allowing users to choose their preferred AI provider and model.

@RealShocky
Copy link
Contributor Author

image
image

@suitedaces
Copy link
Owner

Hey thanks for contributing, I see the UI looks significantly different - the new features are great - could you not drift away from the original UI?

@RealShocky
Copy link
Contributor Author

Let me see what changed and see if I can get back to it as much as I can. Adding multiple providers, as I stated in the Issue that was created, is doable, but the UI needs to be slightly changed to make this possible. especially now with GPT4V, I'll be implementing a full labeling system for the AI.

@enzogtb
Copy link

enzogtb commented Apr 14, 2025

Add Multi-Provider Support (OpenAI + Anthropic)

Multi-Provider Support Enhancement

This PR adds robust multi-provider support to Grunty AI, allowing the application to work with both Anthropic Claude and OpenAI models.

Key Features Added:

  1. Provider Selection UI:

    • Dropdown menu to switch between Anthropic and OpenAI
    • Dynamic model selection based on the active provider
  2. Provider-Specific Integration:

    • OpenAI provider implementation with GPT-4o, GPT-4 Turbo, and GPT-4 support
    • Enhanced Anthropic provider implementation with latest models
    • Provider-specific prompt management
  3. Improved Error Handling:

    • Detailed logging throughout the application
    • User-friendly error messages
    • Graceful degradation when optional dependencies are missing
  4. Configuration:

    • Updated environment variables to support both providers
    • Default provider setting in .env file
  5. Testing:

    • Added test script for provider verification

Documentation:

  • Updated README.md with multi-provider information
  • Added provider debugging documentation
  • Enhanced comments throughout codebase

Testing Performed:

  • Tested provider switching functionality
  • Verified model selection for each provider
  • Validated error handling with invalid configurations
  • Checked computer control capabilities with both providers

This enhancement significantly expands Grunty's capabilities by allowing users to choose their preferred AI provider and model.

Could you consider improving your work by integrating the free API , a project like GPT4FREE. I can help and contribute.

@RealShocky
Copy link
Contributor Author

Add Multi-Provider Support (OpenAI + Anthropic)

Multi-Provider Support Enhancement

This PR adds robust multi-provider support to Grunty AI, allowing the application to work with both Anthropic Claude and OpenAI models.

Key Features Added:

  1. Provider Selection UI:

    • Dropdown menu to switch between Anthropic and OpenAI
    • Dynamic model selection based on the active provider
  2. Provider-Specific Integration:

    • OpenAI provider implementation with GPT-4o, GPT-4 Turbo, and GPT-4 support
    • Enhanced Anthropic provider implementation with latest models
    • Provider-specific prompt management
  3. Improved Error Handling:

    • Detailed logging throughout the application
    • User-friendly error messages
    • Graceful degradation when optional dependencies are missing
  4. Configuration:

    • Updated environment variables to support both providers
    • Default provider setting in .env file
  5. Testing:

    • Added test script for provider verification

Documentation:

  • Updated README.md with multi-provider information
  • Added provider debugging documentation
  • Enhanced comments throughout codebase

Testing Performed:

  • Tested provider switching functionality
  • Verified model selection for each provider
  • Validated error handling with invalid configurations
  • Checked computer control capabilities with both providers

This enhancement significantly expands Grunty's capabilities by allowing users to choose their preferred AI provider and model.

Could you consider improving your work by integrating the free API , a project like GPT4FREE. I can help and contribute.

The next step to provide more services, yes. I wanted to be sure I got the basic top models (openai) just due to the fact that most models have an openai compatible api.

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