From dbf54769e0c124f59d212108669d4fd95692a2ff Mon Sep 17 00:00:00 2001 From: hs_junxiang Date: Fri, 6 Oct 2023 15:50:16 +0800 Subject: Fix: TypeError: 'type' object is not subscriptable --- g4f/Provider/AiAsk.py | 4 ++++ g4f/Provider/ChatgptX.py | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'g4f/Provider') diff --git a/g4f/Provider/AiAsk.py b/g4f/Provider/AiAsk.py index 906b5575..0a44af3e 100644 --- a/g4f/Provider/AiAsk.py +++ b/g4f/Provider/AiAsk.py @@ -1,7 +1,11 @@ +from __future__ import annotations + from aiohttp import ClientSession + from ..typing import AsyncGenerator from .base_provider import AsyncGeneratorProvider + class AiAsk(AsyncGeneratorProvider): url = "https://e.aiask.me" supports_gpt_35_turbo = True diff --git a/g4f/Provider/ChatgptX.py b/g4f/Provider/ChatgptX.py index eb62ddc9..2d932af2 100644 --- a/g4f/Provider/ChatgptX.py +++ b/g4f/Provider/ChatgptX.py @@ -1,9 +1,13 @@ +from __future__ import annotations + import re + from aiohttp import ClientSession from .base_provider import AsyncProvider from .helper import format_prompt + class ChatgptX(AsyncProvider): url = "https://chatgptx.de" supports_gpt_35_turbo = True -- cgit v1.2.3