diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2023-11-20 14:00:40 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2023-11-20 14:00:40 +0100 |
commit | 08e308348b2825f4dfe309158c25a1d55ac45271 (patch) | |
tree | 1b9c5d181352cfc5e8c339b2bba84cc9a468238d /g4f/Provider/needs_auth/HuggingChat.py | |
parent | Add auto support params method (diff) | |
download | gpt4free-08e308348b2825f4dfe309158c25a1d55ac45271.tar gpt4free-08e308348b2825f4dfe309158c25a1d55ac45271.tar.gz gpt4free-08e308348b2825f4dfe309158c25a1d55ac45271.tar.bz2 gpt4free-08e308348b2825f4dfe309158c25a1d55ac45271.tar.lz gpt4free-08e308348b2825f4dfe309158c25a1d55ac45271.tar.xz gpt4free-08e308348b2825f4dfe309158c25a1d55ac45271.tar.zst gpt4free-08e308348b2825f4dfe309158c25a1d55ac45271.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/needs_auth/HuggingChat.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/g4f/Provider/needs_auth/HuggingChat.py b/g4f/Provider/needs_auth/HuggingChat.py index 68c6713b..59e2da73 100644 --- a/g4f/Provider/needs_auth/HuggingChat.py +++ b/g4f/Provider/needs_auth/HuggingChat.py @@ -59,17 +59,4 @@ class HuggingChat(AsyncGeneratorProvider): break async with session.delete(f"{cls.url}/conversation/{conversation_id}", proxy=proxy) as response: - response.raise_for_status() - - - @classmethod - @property - def params(cls): - params = [ - ("model", "str"), - ("messages", "list[dict[str, str]]"), - ("stream", "bool"), - ("proxy", "str"), - ] - param = ", ".join([": ".join(p) for p in params]) - return f"g4f.provider.{cls.__name__} supports: ({param})" + response.raise_for_status()
\ No newline at end of file |