Closed nullstreak closed 6 months ago
You can only use the models that the provider supports. If you want to run a provider with its default model, you can pass g4f.models.default.
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.
Closing due to inactivity.
Certain models throw an error when a provider is specified directly, despite functioning correctly when the same model is executed randomly via the
RetryProvider
.To reproduce the issue, consider the following example:
This code snippet yields the following error:
However, when we comment out the
provider=g4f.Provider.HuggingChat
line and run the code multiple times, allowing theRetryProvider
to randomly select theHuggingChat
provider, the model functions as expected.