summaryrefslogtreecommitdiffstats
path: root/g4f/client/service.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-20 10:43:53 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-20 10:43:53 +0200
commit932d3a3ca092756cc3025e427fabf9ab674350fc (patch)
treec26601230c54c3c1a932fb9a249cd49751193237 /g4f/client/service.py
parentMerge pull request #1862 from hlohaus/nem (diff)
downloadgpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar
gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.gz
gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.bz2
gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.lz
gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.xz
gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.zst
gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.zip
Diffstat (limited to '')
-rw-r--r--g4f/client/service.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/g4f/client/service.py b/g4f/client/service.py
index d25c923d..dd6bf4b6 100644
--- a/g4f/client/service.py
+++ b/g4f/client/service.py
@@ -111,5 +111,6 @@ def get_last_provider(as_dict: bool = False) -> Union[ProviderType, dict[str, st
"name": last.__name__,
"url": last.url,
"model": debug.last_model,
+ "label": last.label if hasattr(last, "label") else None
}
return last \ No newline at end of file