diff options
author | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-22 14:22:33 +0200 |
---|---|---|
committer | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-22 14:22:33 +0200 |
commit | 63cda8d779f9aaccbdac7cea39f496eca44a96ad (patch) | |
tree | ac5c86980c7386af9473975e4c0fa70edd4caefb /g4f/Provider/Yqcloud.py | |
parent | Enable Liaobots and ChatForAi again (diff) | |
download | gpt4free-63cda8d779f9aaccbdac7cea39f496eca44a96ad.tar gpt4free-63cda8d779f9aaccbdac7cea39f496eca44a96ad.tar.gz gpt4free-63cda8d779f9aaccbdac7cea39f496eca44a96ad.tar.bz2 gpt4free-63cda8d779f9aaccbdac7cea39f496eca44a96ad.tar.lz gpt4free-63cda8d779f9aaccbdac7cea39f496eca44a96ad.tar.xz gpt4free-63cda8d779f9aaccbdac7cea39f496eca44a96ad.tar.zst gpt4free-63cda8d779f9aaccbdac7cea39f496eca44a96ad.zip |
Diffstat (limited to 'g4f/Provider/Yqcloud.py')
-rw-r--r-- | g4f/Provider/Yqcloud.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/g4f/Provider/Yqcloud.py b/g4f/Provider/Yqcloud.py index b567f3a0..2829c5bf 100644 --- a/g4f/Provider/Yqcloud.py +++ b/g4f/Provider/Yqcloud.py @@ -9,7 +9,7 @@ from .base_provider import AsyncGeneratorProvider, format_prompt class Yqcloud(AsyncGeneratorProvider): url = "https://chat9.yqcloud.top/" - working = False + working = True supports_gpt_35_turbo = True @staticmethod @@ -17,10 +17,11 @@ class Yqcloud(AsyncGeneratorProvider): model: str, messages: Messages, proxy: str = None, + timeout: int = 120, **kwargs, ) -> AsyncResult: async with StreamSession( - headers=_create_header(), proxies={"https": proxy} + headers=_create_header(), proxies={"https": proxy}, timeout=timeout ) as session: payload = _create_payload(messages, **kwargs) async with session.post("https://api.aichatos.cloud/api/generateStream", json=payload) as response: |