Indicated support of message history in You.py

This commit is contained in:
Luneye 2023-10-24 23:39:29 +02:00 committed by GitHub
parent aee8d5e628
commit c839597c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ from .base_provider import AsyncGeneratorProvider, format_prompt
class You(AsyncGeneratorProvider):
url = "https://you.com"
working = True
supports_message_history = True
supports_gpt_35_turbo = True
@ -37,4 +38,4 @@ class You(AsyncGeneratorProvider):
start = b'data: {"youChatToken": '
async for line in response.iter_lines():
if line.startswith(start):
yield json.loads(line[len(start):-1])
yield json.loads(line[len(start):-1])