Skip to content

Conversation

@RealShocky
Copy link

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 and others added 8 commits January 24, 2025 00:25
- Added voice control system with proper start/stop functionality
- Fixed message display clearing between runs
- Fixed input focus validation with screenshot verification
- Improved typing accuracy by ensuring correct input location
- Enhanced stop button functionality
- Added better error handling and logging
- Add PromptManager class for handling system prompts
- Add SystemPromptDialog for editing prompts
- Update AnthropicClient to use dynamic prompts
- Add Edit System Prompt menu option (Ctrl+E)
- Add proper cleanup for voice control resources
- Update window close behavior to properly quit
- Add cleanup methods to Store and ComputerControl
- Fix voice control thread management
Changed Wake word to Grunty!
@RealShocky
Copy link
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
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
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