Indicated support of message history in GPTalk.py

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

View File

@ -11,6 +11,7 @@ from .helper import format_prompt
class GPTalk(AsyncGeneratorProvider):
url = "https://gptalk.net"
supports_gpt_35_turbo = True
supports_message_history = True
working = True
_auth = None
@ -81,4 +82,4 @@ class GPTalk(AsyncGeneratorProvider):
break
message = json.loads(line[6:-1])["content"]
yield message[len(last_message):]
last_message = message
last_message = message