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

XFEstudio/gpt4free

Set return_conversation to True

e5a49cdb
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

18 个文件 +73 -16
Modified g4f/Provider/AllenAI.py +1 -1
@@ -77,7 +77,7 @@ class AllenAI(AsyncGeneratorProvider, ProviderModelMixin):
77 77 top_p: float = None,
78 78 temperature: float = None,
79 79 conversation: Conversation = None,
80 return_conversation: bool = False,
80 return_conversation: bool = True,
81 81 media: MediaListType = None,
82 82 **kwargs
83 83 ) -> AsyncResult:
Modified g4f/Provider/Blackbox.py +1 -1
@@ -548,7 +548,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
548 548 temperature: float = None,
549 549 max_tokens: int = None,
550 550 conversation: Conversation = None,
551 return_conversation: bool = False,
551 return_conversation: bool = True,
552 552 **kwargs
553 553 ) -> AsyncResult:
554 554 model = cls.get_model(model)
Modified g4f/Provider/Copilot.py +1 -1
@@ -68,7 +68,7 @@ class Copilot(AsyncGeneratorProvider, ProviderModelMixin):
68 68 prompt: str = None,
69 69 media: MediaListType = None,
70 70 conversation: BaseConversation = None,
71 return_conversation: bool = False,
71 return_conversation: bool = True,
72 72 api_key: str = None,
73 73 **kwargs
74 74 ) -> AsyncResult:
Modified g4f/Provider/DDG.py +1 -1
@@ -321,7 +321,7 @@ class DDG(AsyncGeneratorProvider, ProviderModelMixin):
321 321 timeout: int = 60,
322 322 cookies: Cookies = None,
323 323 conversation: Conversation = None,
324 return_conversation: bool = False,
324 return_conversation: bool = True,
325 325 **kwargs
326 326 ) -> AsyncResult:
327 327 model = cls.validate_model(model)
Modified g4f/Provider/LMArenaProvider.py +1 -1
@@ -270,7 +270,7 @@ class LMArenaProvider(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin)
270 270 cls, model: str, messages: Messages,
271 271 media: MediaListType = None,
272 272 conversation: JsonConversation = None,
273 return_conversation: bool = False,
273 return_conversation: bool = True,
274 274 max_tokens: int = 2048,
275 275 temperature: float = 0.7,
276 276 top_p: float = 1,
Modified g4f/Provider/Yqcloud.py +1 -1
@@ -36,7 +36,7 @@ class Yqcloud(AsyncGeneratorProvider, ProviderModelMixin):
36 36 stream: bool = True,
37 37 proxy: str = None,
38 38 conversation: Conversation = None,
39 return_conversation: bool = False,
39 return_conversation: bool = True,
40 40 **kwargs
41 41 ) -> AsyncResult:
42 42 model = cls.get_model(model)
Modified g4f/Provider/hf/HuggingChat.py +1 -1
@@ -102,7 +102,7 @@ class HuggingChat(AsyncAuthedProvider, ProviderModelMixin):
102 102 auth_result: AuthResult,
103 103 prompt: str = None,
104 104 media: MediaListType = None,
105 return_conversation: bool = False,
105 return_conversation: bool = True,
106 106 conversation: Conversation = None,
107 107 web_search: bool = False,
108 108 **kwargs
Modified g4f/Provider/hf_space/CohereForAI_C4AI_Command.py +1 -1
@@ -38,7 +38,7 @@ class CohereForAI_C4AI_Command(AsyncGeneratorProvider, ProviderModelMixin):
38 38 api_key: str = None,
39 39 proxy: str = None,
40 40 conversation: JsonConversation = None,
41 return_conversation: bool = False,
41 return_conversation: bool = True,
42 42 **kwargs
43 43 ) -> AsyncResult:
44 44 model = cls.get_model(model)
Modified g4f/Provider/hf_space/DeepseekAI_JanusPro7b.py +1 -1
@@ -76,7 +76,7 @@ class DeepseekAI_JanusPro7b(AsyncGeneratorProvider, ProviderModelMixin):
76 76 cookies: Cookies = None,
77 77 api_key: str = None,
78 78 zerogpu_uuid: str = "[object Object]",
79 return_conversation: bool = False,
79 return_conversation: bool = True,
80 80 conversation: JsonConversation = None,
81 81 seed: int = None,
82 82 **kwargs
Modified g4f/Provider/hf_space/Microsoft_Phi_4.py +1 -1
@@ -99,7 +99,7 @@ class Microsoft_Phi_4(AsyncGeneratorProvider, ProviderModelMixin):
99 99 cookies: Cookies = None,
100 100 api_key: str = None,
101 101 zerogpu_uuid: str = "[object Object]",
102 return_conversation: bool = False,
102 return_conversation: bool = True,
103 103 conversation: JsonConversation = None,
104 104 **kwargs
105 105 ) -> AsyncResult:
Modified g4f/Provider/hf_space/Qwen_Qwen_2_5M.py +1 -1
@@ -31,7 +31,7 @@ class Qwen_Qwen_2_5M(AsyncGeneratorProvider, ProviderModelMixin):
31 31 model: str,
32 32 messages: Messages,
33 33 proxy: str = None,
34 return_conversation: bool = False,
34 return_conversation: bool = True,
35 35 conversation: JsonConversation = None,
36 36 **kwargs
37 37 ) -> AsyncResult:
Modified g4f/Provider/mini_max/HailuoAI.py +1 -1
@@ -48,7 +48,7 @@ class HailuoAI(AsyncAuthedProvider, ProviderModelMixin):
48 48 model: str,
49 49 messages: Messages,
50 50 auth_result: AuthResult,
51 return_conversation: bool = False,
51 return_conversation: bool = True,
52 52 conversation: Conversation = None,
53 53 **kwargs
54 54 ) -> AsyncResult:
Modified g4f/Provider/needs_auth/Gemini.py +1 -1
Modified g4f/Provider/needs_auth/GithubCopilot.py +1 -1
Added g4f/Provider/needs_auth/GoogleSearch.py +53 -0
Modified g4f/Provider/needs_auth/OpenaiChat.py +1 -1
Modified g4f/api/stubs.py +1 -1
Modified g4f/client/__init__.py +4 -0