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

Update model configurations, provider implementations, and documentation #2577

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kqlio67
Copy link
Contributor

@kqlio67 kqlio67 commented Jan 16, 2025

Various updates to model configurations, provider implementations, and documentation:

  • Updated model names and aliases for Qwen QVQ 72B and Qwen 2 72B (@TheFirstNoob)
  • Revised HuggingSpace class configuration, added default_image_model
  • Added "llama-3.2-70b" alias for Llama 3.2 70B model in AutonomousAI
  • Removed BlackboxCreateAgent class
  • Added "gpt-4o" alias for Copilot model
  • Moved api_key to Mhystical class attribute
  • Added models property with default_model value for Free2GPT
  • Simplified Jmuz class implementation
  • Improved image generation and model handling in DeepInfra
  • Standardized default models and removed aliases in Gemini
  • Replaced model aliases with direct model list in GlhfChat (@TheFirstNoob)
  • Removed trailing slash from image generation URL in PollinationsAI (Image generation error #2571)
  • Updated llama and qwen model configurations
  • Enhanced provider documentation and model details
  • Add error handling and rate limiting to DDG provider

These changes include model name updates, removal of deprecated classes and aliases, addition of new models and providers, improvements in image handling, and documentation updates.

Note: There may be a model verification error in the Airforce provider due to the inability to dynamically fetch models. This is because the api.airforce service is currently unavailable and unstable.

kqlio67 added 4 commits January 17, 2025 00:47
- Updated model names and aliases for Qwen QVQ 72B and Qwen 2 72B (@TheFirstNoob)
- Revised HuggingSpace class configuration, added default_image_model
- Added llama-3.2-70b alias for Llama 3.2 70B model in AutonomousAI
- Removed BlackboxCreateAgent class
- Added gpt-4o alias for Copilot model
- Moved api_key to Mhystical class attribute
- Added models property with default_model value for Free2GPT
- Simplified Jmuz class implementation
- Improved image generation and model handling in DeepInfra
- Standardized default models and removed aliases in Gemini
- Replaced model aliases with direct model list in GlhfChat (@TheFirstNoob)
- Removed trailing slash from image generation URL in PollinationsAI (xtekky#2571)
- Updated llama and qwen model configurations
- Enhanced provider documentation and model details
…rror 'ResponseStatusError: Response 429: 文字过长,请删减后重试。'
…o DDG provider

- Add custom exception classes for rate limits, timeouts, and conversation limits
- Implement rate limiting with sleep between requests (0.75s minimum delay)
- Add model validation method to check supported models
- Add proper error handling for API responses with custom exceptions
- Improve session cookie handling for conversation persistence
- Clean up User-Agent string and remove redundant code
- Add proper error propagation through async generator

Breaking changes:
- New custom exceptions may require updates to error handling code
- Rate limiting affects request timing and throughput
- Model validation is now stricter

Related:
- Adds error handling similar to standard API clients
- Improves reliability and robustness of chat interactions
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.

1 participant