From f797ec828ce3b5965796b437878e14b6eec6235b Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 16 Mar 2024 20:02:15 +0100 Subject: Fix GigaChat exceptions, Raise missing browser error --- g4f/providers/base_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/providers') diff --git a/g4f/providers/base_provider.py b/g4f/providers/base_provider.py index c8397193..ee5bcbb8 100644 --- a/g4f/providers/base_provider.py +++ b/g4f/providers/base_provider.py @@ -95,7 +95,7 @@ class AbstractProvider(BaseProvider): return annotation.__name__ if hasattr(annotation, "__name__") else str(annotation) args = "" - for name, param in cls.get_parameters(): + for name, param in cls.get_parameters().items(): if name in ("self", "kwargs") or (name == "stream" and not cls.supports_stream): continue args += f"\n {name}" -- cgit v1.2.3