mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 00:29:27 -04:00
Indicated support of message history in You.py
This commit is contained in:
parent
aee8d5e628
commit
c839597c6d
@ -10,6 +10,7 @@ from .base_provider import AsyncGeneratorProvider, format_prompt
|
|||||||
class You(AsyncGeneratorProvider):
|
class You(AsyncGeneratorProvider):
|
||||||
url = "https://you.com"
|
url = "https://you.com"
|
||||||
working = True
|
working = True
|
||||||
|
supports_message_history = True
|
||||||
supports_gpt_35_turbo = True
|
supports_gpt_35_turbo = True
|
||||||
|
|
||||||
|
|
||||||
@ -37,4 +38,4 @@ class You(AsyncGeneratorProvider):
|
|||||||
start = b'data: {"youChatToken": '
|
start = b'data: {"youChatToken": '
|
||||||
async for line in response.iter_lines():
|
async for line in response.iter_lines():
|
||||||
if line.startswith(start):
|
if line.startswith(start):
|
||||||
yield json.loads(line[len(start):-1])
|
yield json.loads(line[len(start):-1])
|
||||||
|
Loading…
Reference in New Issue
Block a user