Replies: 3 comments
-
Hey, when you don't choose a provider, it uses the "best_provider" from the models file. We're using the RetryProvider to pick a provider from a list of "best" providers. |
Beta Was this translation helpful? Give feedback.
-
You can also use the AsyncClient. Then you don't need to loop the call. It's already asynchronous. Check out the docs here: g4f docs |
Beta Was this translation helpful? Give feedback.
-
Thank you, I did as you said, I received an answer, but now I have an error: |
Beta Was this translation helpful? Give feedback.
-
I have a function where I alternately access different models. I added all the providers that I found in the models file for the models I needed. What if I don’t specify providers, then on what basis do we use providers to get an answer? Are they taken randomly?
What is the difference between these functions?
client = G4fClient(provider=RetryProvider([You, ChatgptNext, OpenaiChat, Bing, Liaobots]))
or
client = G4fClient()
Here is my code:
models = ["gpt-4-turbo", "gpt-3.5-turbo", "gpt-4", "gpt-3.5-turbo"]
models = models * 3
Beta Was this translation helpful? Give feedback.
All reactions