XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Update model configurations, provider implementations, and documentation (#2577)

* Update 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 (https://github.com/xtekky/gpt4free/issues/2571) - Updated llama and qwen model configurations - Enhanced provider documentation and model details * Removed from (g4f/models.py) 'Yqcloud' provider from Default due to error 'ResponseStatusError: Response 429: 文字过长,请删减后重试。' * Update docs/providers-and-models.md * refactor(g4f/Provider/DDG.py): Add error handling and rate limiting to 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 * Update g4f/models.py g4f/Provider/PollinationsAI.py * Update g4f/models.py * Restored provider which was not working and was disabled (g4f/Provider/DeepInfraChat.py) * Fixing a bug with Streaming Completions * Update g4f/Provider/PollinationsAI.py * Update g4f/Provider/Blackbox.py g4f/Provider/DDG.py * Added another model for generating images 'ImageGeneration2' to the 'Blackbox' provider * Update docs/providers-and-models.md * Update g4f/models.py g4f/Provider/Blackbox.py * Added a new OIVSCode provider from the Text Models and Vision (Image Upload) model * Update docs/providers-and-models.md * docs: add Conversation Memory class with context handling requested by @TheFirstNoob * Simplified README.md documentation added new docs/configuration.md documentation * Update add README.md docs/configuration.md * Update README.md * Update docs/providers-and-models.md g4f/models.py g4f/Provider/PollinationsAI.py * Added new model deepseek-r1 to Blackbox provider. @TheFirstNoob * Fixed bugs and updated docs/providers-and-models.md etc/unittest/client.py g4f/models.py g4f/Provider/. --------- Co-authored-by: kqlio67 <> Co-authored-by: H Lohaus <hlohaus@users.noreply.github.com>

9def1aa7
kqlio67 <166700875+kqlio67@users.noreply.github.com>
提交于

代码差异

42 个文件 +1445 -1750
Modified README.md +123 -239
Modified docs/async_client.md +205 -6
Modified docs/authentication.md +212 -85
Modified docs/client.md +163 -85
Added docs/configuration.md +95 -0
Modified docs/providers-and-models.md +101 -104
Modified etc/unittest/client.py +3 -3
Modified g4f/Provider/AutonomousAI.py +1 -0
Modified g4f/Provider/Blackbox.py +57 -30
Deleted g4f/Provider/BlackboxCreateAgent.py +0 -259
Modified g4f/Provider/Copilot.py +5 -2
Modified g4f/Provider/DDG.py +126 -50
Renamed g4f/Provider/DeepInfraChat.py +6 -4
Modified g4f/Provider/Free2GPT.py +1 -0
Modified g4f/Provider/Jmuz.py +5 -7
Modified g4f/Provider/Mhystical.py +5 -4
Added g4f/Provider/OIVSCode.py +101 -0
Modified g4f/Provider/PollinationsAI.py +6 -2
Modified g4f/Provider/__init__.py +2 -3
Modified g4f/Provider/hf_space/Qwen_QVQ_72B.py +1 -1
Modified g4f/Provider/hf_space/Qwen_Qwen_2_72B_Instruct.py +1 -1
Modified g4f/Provider/hf_space/__init__.py +6 -3
Modified g4f/Provider/needs_auth/Cerebras.py +2 -2
Modified g4f/Provider/needs_auth/DeepInfra.py +58 -23
Modified g4f/Provider/needs_auth/Gemini.py +5 -7
Modified g4f/Provider/needs_auth/GigaChat.py +1 -1
Modified g4f/Provider/needs_auth/GlhfChat.py +5 -21
Modified g4f/Provider/needs_auth/HuggingChat.py +2 -0
Modified g4f/Provider/needs_auth/HuggingFaceAPI.py +1 -0
Modified g4f/Provider/needs_auth/OpenaiAccount.py +4 -4
Modified g4f/Provider/needs_auth/OpenaiChat.py +4 -2
Modified g4f/Provider/needs_auth/PerplexityApi.py +1 -1
Modified g4f/Provider/needs_auth/Replicate.py +1 -3
Modified g4f/Provider/needs_auth/__init__.py +1 -2
Renamed g4f/Provider/not_working/Airforce.py +7 -7
Renamed g4f/Provider/not_working/Poe.py +0 -0
Renamed g4f/Provider/not_working/Raycast.py +1 -1
Renamed g4f/Provider/not_working/RubiksAI.py +3 -3
Modified g4f/Provider/not_working/__init__.py +4 -1
Modified g4f/client/__init__.py +9 -3
Modified g4f/models.py +111 -206