Indicated support of message history in ChatgptX.py

This commit is contained in:
Luneye 2023-10-24 23:30:07 +02:00 committed by GitHub
parent 63ae5bb2cd
commit dc798b520d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ from .helper import format_prompt
class ChatgptX(AsyncGeneratorProvider): class ChatgptX(AsyncGeneratorProvider):
url = "https://chatgptx.de" url = "https://chatgptx.de"
supports_gpt_35_turbo = True supports_gpt_35_turbo = True
supports_message_history = True
working = True working = True
@classmethod @classmethod
@ -96,4 +97,4 @@ class ChatgptX(AsyncGeneratorProvider):
except: except:
raise RuntimeError(f"Broken line: {line.decode()}") raise RuntimeError(f"Broken line: {line.decode()}")
if content: if content:
yield content yield content