mirror of https://github.com/xtekky/gpt4free.git
[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:
parent
8eab96d319
commit
63ae5bb2cd
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue