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

Comprehensive Updates and Enhancements Across Multiple Providers #2196

Closed
wants to merge 13 commits into from

Conversation

kqlio67
Copy link
Contributor

@kqlio67 kqlio67 commented Aug 27, 2024

This pull request introduces significant updates and enhancements to various provider, improving functionality, consistency, and overall performance. The changes include the addition of new providers, updates to existing models, and refinements to class methods and attributes.

New Providers Added

  • Upstage: Added support for text generation models 'upstage/solar-1-mini-chat', 'upstage/solar-1-mini-chat-ja'.
  • FluxAirforce: Added support for image generation models 'flux', 'flux-realism', 'flux-anime', 'flux-3d'.

Provider Updates and Improvements

  • DDG:
    • Removed redundant model aliases gpt-4 and gpt-4o.
    • Updated model alias mixtral-8x7B to lowercase mixtral-8x7b.
    • Simplified model_aliases dictionary.

  • FreeChatgpt:
    • Updated default_model to @cf/qwen/qwen1.5-14b-chat-awq.
    • Revised models list with updated names.
    • Added model_aliases dictionary.
    • Implemented get_model method.
    • Modified create_async_generator to use the new method.
    • Updated streaming behavior.

  • HuggingChat:
    • Updated default_model to meta-llama/Meta-Llama-3.1-70B-Instruct.
    • Updated models list.
    • Expanded model_aliases dictionary.
    • Implemented get_model method.
    • Modified create_completion method.
    • Improved code formatting.

  • HuggingFace:
    • Updated default_model to meta-llama/Meta-Llama-3.1-70B-Instruct.
    • Updated models list.
    • Added model_aliases dictionary.
    • Implemented get_model method.
    • Updated create_async_generator method.
    • Added detailed headers to API requests.

  • Koala:
    • Added ProviderModelMixin to class inheritance.
    • Introduced default_model as 'gpt-4o-mini'.
    • Removed supports_gpt_35_turbo attribute.
    • Added supports_gpt_4 attribute.
    • Updated class attributes.

  • Liaobots:
    • Added get_models method for dynamic fetching and caching.
    • Updated model_aliases dictionary.
    • Refactored create_async_generator method.
    • Enhanced get_model and is_supported methods.
    • Implemented new refresh_auth_code and get_auth_code methods.

  • Pizzagpt:
    • Added ProviderModelMixin.
    • Removed attributes and added supports_gpt_4.
    • Introduced default_model.
    • Updated headers and response handling.

  • ChatgptFree:
    • Added ProviderModelMixin.
    • Updated class to inherit from AsyncGeneratorProvider.
    • Introduced default_model and model_aliases.
    • Replaced create_async with create_async_generator.

  • You:
    • Updated default_model.
    • Adjusted models list.
    • Refined create_async_generator.
    • Updated image handling and fixed inconsistencies.

  • Blackbox:
    • Implemented model aliases and get_model method for model selection
    • Updated create_async_generator to handle different model configurations

  • LiteIcoding:
    • Added import for 're' module to support regular expression operations.
    • Updated Authorization token in the headers.
    • Implemented filter to remove unwanted text from the response.
    • Added functionality to remove extra quotes from beginning and end of response.
    • Modified response cleaning process for improved output formatting.
    • Updated yield statement to return cleaned and filtered response.

Removed Providers

  • Feedough
  • not_working/
  • Cohere
  • GeminiProChat
  • TeachAnything
  • Marsyoo

Updated Core Files

  • __init__.py:
    • Added imports for FluxAirforce and Upstage.
    • Removed deprecated import.
    • Reorganized import statements.

  • models.py:
    • Updated provider lists, default model configurations, and model names.
    • Added new models and updated provider lists.

These enhancements aim to provide a more robust and user-friendly experience, ensure up-to-date model support, and optimize performance across various provider.

zukixa added a commit to zukixa/gpt4free that referenced this pull request Aug 29, 2024
…ider now support Gemini and LLaMa 3.1 models xtekky#2198 with some stuff from xtekky#2196
@xtekky
Copy link
Owner

xtekky commented Aug 30, 2024

Could you please try resolve the conflicts, I'll merge it then

@kqlio67 kqlio67 closed this Aug 31, 2024
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.

2 participants