-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Enhance and expand provider support, update models, and improve overall functionality #2207
Conversation
@kqlio67 Hi, if i correct read code after updated need in models.py update some params.
Maybe someone else needed move/remove too |
Wow, thank you so much for your feedback, @TheFirstNoob! 🙌 Your attention to detail is incredible and really helps make this project better. I'm thrilled to say that I've already implemented all the changes you suggested! 🚀 Your insights were spot-on, and they've definitely improved the functionality and accuracy of our providers and models. I can't thank you enough for taking the time to review and provide such valuable input. 😊 |
@kqlio67 Hey! I some more accurate check on 3.0.2.5 ver and give more accurate infos. File: https://github.com/xtekky/gpt4free/blob/main/g4f/models.py Need remove cause not working or errors: In Add Pizzagpt provider in Move MagicPenAsk provider from gpt-4o to gpt-4o-mini Line 187 Blackbox provider after last update this need add to: Very thanks for you works <3 |
More infos for update curl use -F params and from request needed Data or Files to send requesting to generate Base code like this:
|
personally disagreeing on the removal of non_working providers as many eventually do end up working again by nature of what g4f does there's times of "not working" and times of "working" for any provider unless a domain/url/similar literally expires and/or ceases to exist, a provider shouldn't be removed |
@TheFirstNoob Thank you for your detailed feedback! I appreciate your thorough review of models.py. Your input is very valuable for improving the project's accuracy. @zukixa Thank you for sharing your perspective on retaining non-working providers. It's an important consideration for the project's maintenance. Based on the testing I've done, I plan to reinstate the
I believe it might be beneficial to keep these providers removed for now to maintain project stability. Of course, the final decision rests with the project maintainers. Thank you both for your contributions to improving this project! Your insights help make it better for everyone. |
@kqlio67 can you provide info like TeachAnything? Its my mistake or something wrong? |
Thank you for your careful observation, @TheFirstNoob. You've raised an interesting point about the information in the official TeachAnything repository. I'd like to share some observations from my recent tests, which seem to differ from the public documentation. Here are the key points from my recent interactions with the service:
It's important to note that these observations are based on my personal tests on the current version of the service, without using any system or additional prompts. However, your findings from the repository are indeed intriguing. It's possible that:
Given the complexity of this situation, I've decided to keep the In upcoming pulls, either I or other contributors may update this if more conclusive evidence becomes available. It's possible that someone else might be able to conduct more thorough testing to definitively determine whether the service is using I appreciate you bringing this to attention. This highlights the complexity of identifying the exact models used in various services, especially when they might be subject to frequent updates or changes. |
@kqlio67 ChatForAI Provider need to reverse again: Other old providers some working but very small quota or long response time. Thanks for your work! |
@TheFirstNoob Thank you for your additional input! Your observations are valuable for the project. Regarding the Betsim provider - unfortunately, I couldn't find it in the current project code. Perhaps you're referring to a different provider? Concerning AiChats - my analysis showed that this provider uses the GPT-4 model, not GPT-3.5-Turbo as you mentioned. If anyone disagrees with this assessment, they're welcome to conduct their own tests and provide evidence. As for ChatForAI - I decided not to reintroduce this provider due to its very limited quota (1 time every 12 hours). Such strict limitations make it impractical for most users. If anyone finds a way to bypass this restriction or increase the quota in the future, they can submit a pull request to reintroduce this provider. The aim of this pull request is to maintain stable providers that can be used without harsh limitations. While some decisions might be debatable, I've only removed non-working providers. All functioning providers remain, even if some require authorization or have Cloudflare protection, which slightly hinders optimal performance. I'm striving to improve the project, and currently, most providers are working relatively stably. |
@kqlio67 All fine! I check not_working providers. Because some providers may have a redirect to a new site. BetSim (old not_working) is AiChats. Other not_working providers are chineses and have long response and limited quota. To be honest, after a couple of checks of old providers, it still makes sense to delete the folder with non-working providers, because most of them are either Chinese and have old models, or they use a domain system and each time you need to update the URL or make a large list of domains. At the same time, there is no guarantee that the domain will not be exceeded by quota. Otherwise, I think the only thing left is to clean the code or update it to what is there. It seems like I checked all the old pull requests and isuess topics where there could be providers or which ones are coming. In general, all that remains for us is to add dialog support and deepinfra additional model for images to DDG. I think this is where this major update can be finished :) |
And need fix wiki (or readme) for function |
hey i really appreciate this contribute, but you.com with (gpt-4o, gpt-4-turbo, CreateImage) still doesn't work ): . |
@noneherel hey! Provide more infos please how you use CreateImage for testing. |
this is my code for testing:
|
@noneherel You.com use
|
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
g4f/Provider/Upstage.py
: Added support for text generation models'upstage/solar-1-mini-chat', 'upstage/solar-1-mini-chat-ja'
.g4f/Provider/FluxAirforce.py
: Added support for image generation models'flux', 'flux-realism', 'flux-anime', 'flux-3d'
.g4f/Provider/TwitterBio.py
: Added support for text generation models'gpt-3.5-turbo', 'mixtral-8x7b'
.g4f/Provider/AiChats.py
: Added support for text generation models'gpt-4'
. ([Request] More providers for reverse #2212), image generation models'dalle'
(Enhance and expand provider support, update models, and improve overall functionality #2207 (comment))g4f/Provider/Nexra.py
: Added support for text generation models'gpt-3', 'gpt-3.5-turbo', 'gpt-4'
, image generation models'dalle', 'dalle-mini', 'emi'
. ([Request] More providers for reverse #2212)g4f/Provider/Snova.py
: Added support for text generation models'llama-3.1-8b', 'llama-3.1-70b', 'llama-3.1-405b', 'samba-coe-v0.1', 'v1olet-merged-7b', 'westlake-7b-v2', 'donutlm-v1'
. ([Request] More providers for reverse #2212)g4f/Provider/Bixin123.py
: Added support for text generation models'gpt-3.5-turbo', 'gpt-4-turbo', 'qwen-turbo'
.g4f/Provider/CodeNews.py
: Added support for text generation models'gpt-3.5-turbo', 'gpt-4o-mini', 'deepseek', 'glm4'
.g4f/Provider/Binjie.py
: Added support for text generation models'gpt-4'
.g4f/Provider/Free2GPT.py
: Added support for text generation models'llama-3.1-70b'
.Updates and improvements for providers
g4f/Provider/DDG.py
:gpt-4
andgpt-4o
.mixtral-8x7B
to lowercasemixtral-8x7b
.model_aliases
dictionary.g4f/Provider/FreeChatgpt.py
:default_model
to@cf/qwen/qwen1.5-14b-chat-awq
.model_aliases
dictionary.get_model
method.create_async_generator
to use the new method.g4f/Provider/HuggingChat.py
:default_model
tometa-llama/Meta-Llama-3.1-70B-Instruct
.model_aliases
dictionary.get_model
method.create_completion
method.g4f/Provider/HuggingFace.py
:default_model
tometa-llama/Meta-Llama-3.1-70B-Instruct
.model_aliases
dictionary.get_model
method.create_async_generator
method.g4f/Provider/Koala.py
:ProviderModelMixin
to class inheritance.default_model
as 'gpt-4o-mini'.supports_gpt_35_turbo
attribute.supports_gpt_4
attribute.g4f/Provider/Liaobots.py
:get_models
method for dynamic fetching and caching.model_aliases
dictionary.create_async_generator
method.get_model
andis_supported
methods.refresh_auth_code
andget_auth_code
methods.ProviderModelMixin
.supports_gpt_4
.default_model
.g4f/Provider/ChatgptFree.py
:ProviderModelMixin
.AsyncGeneratorProvider
.default_model
andmodel_aliases
.create_async
withcreate_async_generator
.g4f/Provider/You.py
:default_model
.models
list.create_async_generator
.g4f/Provider/Blackbox.py
:'ImageGeneration'
to supported models. ([Request] Blackbox provider now support Image Generation #2208)agent_mode_map
for image generation configurationcreate_async_generator
to handle image responsesg4f/Provider/LiteIcoding.py
:g4f/Provider/MagickPen.py
:Remote providers that do not work
g4f/Provider/not_working/
g4f/Provider/Cohere.py
g4f/Provider/GeminiProChat.py
g4f/Provider/Marsyoo.py
Updated G4F
g4f/Provider/__init__.py
:deprecated
import.g4f/models.py
:g4f/gui/server/api.py
:g4f/client/client.py
:async_generate
methodClient
class to support async image operationsiter_image_response
andcreate_image
functions with loggingImages
classcreate_variation
method for generating image variationsCompletions.create
to handle additional parametersg4f/client/image_models.py
:get
method to fetch model from ModelUtils and return its best_providerUpdated G4F tools
etc/testing/_providers.py
get_providers
to include unfinished providersetc/testing/test_all.py
GPT-3.5
andGPT-4
GPT-3.5 16K
andGPT-4 32K
contextgpt_35_turbo
andgpt_4
modelsetc/testing/test_chat_completion.py
GPT-3.5
andGPT-4
GPT-3.5 16K
andGPT-4 32K
contextgpt_35_turbo
andgpt_4
modelsetc/tool/create_provider.py
etc/tool/improve_code.py
These enhancements aim to provide a more robust and user-friendly experience, ensure up-to-date model support, and optimize performance across various provider.