[suggestion] Adding new parameter to check if provider supports message history

What are your thoughts on introducing a parameter that allows us to promptly verify whether the provider supports message history? I also considered adding a parameter to indicate whether a provider can perform web searches.
This commit is contained in:
Luneye 2023-10-24 16:35:45 +02:00 committed by GitHub
parent 8eab96d319
commit 63ae5bb2cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ class BaseProvider(ABC):
supports_stream: bool = False
supports_gpt_35_turbo: bool = False
supports_gpt_4: bool = False
supports_message_history: bool = False
@staticmethod
@abstractmethod
@ -135,4 +136,4 @@ class AsyncGeneratorProvider(AsyncProvider):
messages: Messages,
**kwargs
) -> AsyncResult:
raise NotImplementedError()
raise NotImplementedError()