summaryrefslogtreecommitdiffstats
path: root/g4f/__init__.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-01 23:20:48 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-01 23:20:48 +0100
commite0aaad8f477386345a14c9adc7a7721fda115faa (patch)
treeac88be0b5d29f7e09d43ba581488750067037bfb /g4f/__init__.py
parentAdd support for all models (diff)
downloadgpt4free-e0aaad8f477386345a14c9adc7a7721fda115faa.tar
gpt4free-e0aaad8f477386345a14c9adc7a7721fda115faa.tar.gz
gpt4free-e0aaad8f477386345a14c9adc7a7721fda115faa.tar.bz2
gpt4free-e0aaad8f477386345a14c9adc7a7721fda115faa.tar.lz
gpt4free-e0aaad8f477386345a14c9adc7a7721fda115faa.tar.xz
gpt4free-e0aaad8f477386345a14c9adc7a7721fda115faa.tar.zst
gpt4free-e0aaad8f477386345a14c9adc7a7721fda115faa.zip
Diffstat (limited to 'g4f/__init__.py')
-rw-r--r--g4f/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/__init__.py b/g4f/__init__.py
index 57151376..699dc238 100644
--- a/g4f/__init__.py
+++ b/g4f/__init__.py
@@ -128,7 +128,7 @@ class Completion:
return result if stream else ''.join(result)
-def get_last_provider(as_dict: bool = False) -> ProviderType:
+def get_last_provider(as_dict: bool = False) -> Union[ProviderType, dict[str, str]]:
last = debug.last_provider
if isinstance(last, BaseRetryProvider):
last = last.last_provider