From 6a61cf811655fa87dbcb196025cc0b6040502293 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Wed, 4 Oct 2023 07:20:51 +0200 Subject: Sort providers in new dirs --- g4f/Provider/AItianhu.py | 2 + g4f/Provider/AItianhuSpace.py | 2 + g4f/Provider/AiService.py | 36 --------- g4f/Provider/Bard.py | 92 ----------------------- g4f/Provider/CodeLinkAva.py | 64 ---------------- g4f/Provider/DeepAi.py | 4 +- g4f/Provider/DfeHub.py | 77 ------------------- g4f/Provider/EasyChat.py | 111 --------------------------- g4f/Provider/Equing.py | 81 -------------------- g4f/Provider/FastGpt.py | 86 --------------------- g4f/Provider/Forefront.py | 40 ---------- g4f/Provider/GetGpt.py | 88 ---------------------- g4f/Provider/HuggingChat.py | 74 ------------------ g4f/Provider/Lockchat.py | 64 ---------------- g4f/Provider/Opchatgpts.py | 8 -- g4f/Provider/OpenAssistant.py | 100 ------------------------- g4f/Provider/OpenaiChat.py | 124 ------------------------------- g4f/Provider/PerplexityAi.py | 101 ------------------------- g4f/Provider/Raycast.py | 72 ------------------ g4f/Provider/Theb.py | 97 ------------------------ g4f/Provider/V50.py | 67 ----------------- g4f/Provider/Wewordle.py | 65 ---------------- g4f/Provider/Wuguokai.py | 63 ---------------- g4f/Provider/__init__.py | 22 +----- g4f/Provider/deprecated/AiService.py | 36 +++++++++ g4f/Provider/deprecated/CodeLinkAva.py | 64 ++++++++++++++++ g4f/Provider/deprecated/DfeHub.py | 77 +++++++++++++++++++ g4f/Provider/deprecated/EasyChat.py | 111 +++++++++++++++++++++++++++ g4f/Provider/deprecated/Equing.py | 81 ++++++++++++++++++++ g4f/Provider/deprecated/FastGpt.py | 87 ++++++++++++++++++++++ g4f/Provider/deprecated/Forefront.py | 40 ++++++++++ g4f/Provider/deprecated/GetGpt.py | 88 ++++++++++++++++++++++ g4f/Provider/deprecated/Lockchat.py | 64 ++++++++++++++++ g4f/Provider/deprecated/Opchatgpts.py | 8 ++ g4f/Provider/deprecated/PerplexityAi.py | 101 +++++++++++++++++++++++++ g4f/Provider/deprecated/V50.py | 67 +++++++++++++++++ g4f/Provider/deprecated/Wewordle.py | 65 ++++++++++++++++ g4f/Provider/deprecated/Wuguokai.py | 63 ++++++++++++++++ g4f/Provider/deprecated/__init__.py | 14 ++++ g4f/Provider/needs_auth/Bard.py | 92 +++++++++++++++++++++++ g4f/Provider/needs_auth/HuggingChat.py | 74 ++++++++++++++++++ g4f/Provider/needs_auth/OpenAssistant.py | 100 +++++++++++++++++++++++++ g4f/Provider/needs_auth/OpenaiChat.py | 124 +++++++++++++++++++++++++++++++ g4f/Provider/needs_auth/Raycast.py | 72 ++++++++++++++++++ g4f/Provider/needs_auth/Theb.py | 97 ++++++++++++++++++++++++ g4f/Provider/needs_auth/__init__.py | 6 ++ g4f/models.py | 4 +- 47 files changed, 1541 insertions(+), 1534 deletions(-) delete mode 100644 g4f/Provider/AiService.py delete mode 100644 g4f/Provider/Bard.py delete mode 100644 g4f/Provider/CodeLinkAva.py delete mode 100644 g4f/Provider/DfeHub.py delete mode 100644 g4f/Provider/EasyChat.py delete mode 100644 g4f/Provider/Equing.py delete mode 100644 g4f/Provider/FastGpt.py delete mode 100644 g4f/Provider/Forefront.py delete mode 100644 g4f/Provider/GetGpt.py delete mode 100644 g4f/Provider/HuggingChat.py delete mode 100644 g4f/Provider/Lockchat.py delete mode 100644 g4f/Provider/Opchatgpts.py delete mode 100644 g4f/Provider/OpenAssistant.py delete mode 100644 g4f/Provider/OpenaiChat.py delete mode 100644 g4f/Provider/PerplexityAi.py delete mode 100644 g4f/Provider/Raycast.py delete mode 100644 g4f/Provider/Theb.py delete mode 100644 g4f/Provider/V50.py delete mode 100644 g4f/Provider/Wewordle.py delete mode 100644 g4f/Provider/Wuguokai.py create mode 100644 g4f/Provider/deprecated/AiService.py create mode 100644 g4f/Provider/deprecated/CodeLinkAva.py create mode 100644 g4f/Provider/deprecated/DfeHub.py create mode 100644 g4f/Provider/deprecated/EasyChat.py create mode 100644 g4f/Provider/deprecated/Equing.py create mode 100644 g4f/Provider/deprecated/FastGpt.py create mode 100644 g4f/Provider/deprecated/Forefront.py create mode 100644 g4f/Provider/deprecated/GetGpt.py create mode 100644 g4f/Provider/deprecated/Lockchat.py create mode 100644 g4f/Provider/deprecated/Opchatgpts.py create mode 100644 g4f/Provider/deprecated/PerplexityAi.py create mode 100644 g4f/Provider/deprecated/V50.py create mode 100644 g4f/Provider/deprecated/Wewordle.py create mode 100644 g4f/Provider/deprecated/Wuguokai.py create mode 100644 g4f/Provider/deprecated/__init__.py create mode 100644 g4f/Provider/needs_auth/Bard.py create mode 100644 g4f/Provider/needs_auth/HuggingChat.py create mode 100644 g4f/Provider/needs_auth/OpenAssistant.py create mode 100644 g4f/Provider/needs_auth/OpenaiChat.py create mode 100644 g4f/Provider/needs_auth/Raycast.py create mode 100644 g4f/Provider/needs_auth/Theb.py create mode 100644 g4f/Provider/needs_auth/__init__.py (limited to 'g4f') diff --git a/g4f/Provider/AItianhu.py b/g4f/Provider/AItianhu.py index 42631d7e..1d8653b7 100644 --- a/g4f/Provider/AItianhu.py +++ b/g4f/Provider/AItianhu.py @@ -38,6 +38,8 @@ class AItianhu(AsyncGeneratorProvider): async with session.post(f"{cls.url}/api/chat-process", json=data) as response: response.raise_for_status() async for line in response.iter_lines(): + if line == b"