XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

[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.

63ae5bb2
Luneye <73485421+Luneye@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified g4f/Provider/base_provider.py +2 -1
@@ -15,6 +15,7 @@ class BaseProvider(ABC):
15 15 supports_stream: bool = False
16 16 supports_gpt_35_turbo: bool = False
17 17 supports_gpt_4: bool = False
18 supports_message_history: bool = False
18 19
19 20 @staticmethod
20 21 @abstractmethod
@@ -135,4 +136,4 @@ class AsyncGeneratorProvider(AsyncProvider):
135 136 messages: Messages,
136 137 **kwargs
137 138 ) -> AsyncResult:
138 raise NotImplementedError()
139 raise NotImplementedError()