~ | Merge pull request #993 from Lin-jun-xiang/main

Fix: TypeError: 'type' object is not subscriptable
This commit is contained in:
Tekky 2023-10-06 11:19:45 +01:00 committed by GitHub
commit 3fa6d9f914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -1,7 +1,11 @@
from __future__ import annotations
from aiohttp import ClientSession from aiohttp import ClientSession
from ..typing import AsyncGenerator from ..typing import AsyncGenerator
from .base_provider import AsyncGeneratorProvider from .base_provider import AsyncGeneratorProvider
class AiAsk(AsyncGeneratorProvider): class AiAsk(AsyncGeneratorProvider):
url = "https://e.aiask.me" url = "https://e.aiask.me"
supports_gpt_35_turbo = True supports_gpt_35_turbo = True

View File

@ -1,9 +1,13 @@
from __future__ import annotations
import re import re
from aiohttp import ClientSession from aiohttp import ClientSession
from .base_provider import AsyncProvider from .base_provider import AsyncProvider
from .helper import format_prompt from .helper import format_prompt
class ChatgptX(AsyncProvider): class ChatgptX(AsyncProvider):
url = "https://chatgptx.de" url = "https://chatgptx.de"
supports_gpt_35_turbo = True supports_gpt_35_turbo = True