-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[ERROR] AttributeError: 'IterListProvider' object has no attribute 'get_parameters' #2520
Labels
bug
Something isn't working
Comments
same |
1 similar comment
same |
Possible patch: diff --git a/g4f/gui/server/api.py b/g4f/gui/server/api.py
index ca80f7f3..8b929ce4 100644
--- a/g4f/gui/server/api.py
+++ b/g4f/gui/server/api.py
@@ -138,8 +138,12 @@ class Api:
ignore_stream=True,
logging=False
)
+ provider = provider_handler.get_providers(
+ stream=kwargs.get("stream", True),
+ ignored=kwargs.get("ignored", []),
+ )[0]
params = {
- **provider_handler.get_parameters(as_json=True),
+ **provider.get_parameters(as_json=True),
"model": model,
"messages": kwargs.get("messages"),
"web_search": kwargs.get("web_search") |
Worked for me 👍 |
make it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
go to the web page, toggle web search button, request "who are you?".
Environment
deployed by "docker-compose up -d"
The debugging info:
The text was updated successfully, but these errors were encountered: