summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/You.py
diff options
context:
space:
mode:
authorLuneye <73485421+Luneye@users.noreply.github.com>2023-10-24 23:39:29 +0200
committerGitHub <noreply@github.com>2023-10-24 23:39:29 +0200
commitc839597c6dd0c79d9a603baa8d33fb787b8d5553 (patch)
tree2a390dac69343d3138e00c978dc68ef8956ec416 /g4f/Provider/You.py
parentIndicated support of message history in FakeGpt.py (diff)
downloadgpt4free-c839597c6dd0c79d9a603baa8d33fb787b8d5553.tar
gpt4free-c839597c6dd0c79d9a603baa8d33fb787b8d5553.tar.gz
gpt4free-c839597c6dd0c79d9a603baa8d33fb787b8d5553.tar.bz2
gpt4free-c839597c6dd0c79d9a603baa8d33fb787b8d5553.tar.lz
gpt4free-c839597c6dd0c79d9a603baa8d33fb787b8d5553.tar.xz
gpt4free-c839597c6dd0c79d9a603baa8d33fb787b8d5553.tar.zst
gpt4free-c839597c6dd0c79d9a603baa8d33fb787b8d5553.zip
Diffstat (limited to 'g4f/Provider/You.py')
-rw-r--r--g4f/Provider/You.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/You.py b/g4f/Provider/You.py
index 1afd18be..34972586 100644
--- a/g4f/Provider/You.py
+++ b/g4f/Provider/You.py
@@ -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]) \ No newline at end of file
+ yield json.loads(line[len(start):-1])