mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-03 03:40:12 +00:00
~ | Merge pull request #993 from Lin-jun-xiang/main
Fix: TypeError: 'type' object is not subscriptable
This commit is contained in:
commit
3fa6d9f914
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user