返回提交历史
Modified
g4f/Provider/needs_auth/Grok.py
+1
-1
Modified
g4f/api/__init__.py
+1
-1
XFEstudio/gpt4free
feat: update default params and HTTP 200 response content
- Changed default value of `return_conversation` from `False` to `True` in `Grok._create_completion` method in `g4f/Provider/needs_auth/Grok.py` - Updated HTTP 200 response mapping to use `{"content": {"audio/*": {}}}` instead of `{"class": FileResponse}` in `Api.markdown_to_audio` method in `g4f/api/__init__.py
5b72a5d2
代码差异
2 个文件
+2
-2
@@ -83,7 +83,7 @@ class Grok(AsyncAuthedProvider, ProviderModelMixin):
83
83
model: str,
84
84
messages: Messages,
85
85
auth_result: AuthResult,
86
return_conversation: bool = False,
86
return_conversation: bool = True,
87
87
conversation: Conversation = None,
88
88
**kwargs
89
89
) -> AsyncResult:
@@ -534,7 +534,7 @@ class Api:
534
534
return await convert(file, "MarkItDown")
535
535
536
536
responses = {
537
HTTP_200_OK: {"class": FileResponse},
537
HTTP_200_OK: {"content": {"audio/*": {}}},
538
538
HTTP_401_UNAUTHORIZED: {"model": ErrorResponseModel},
539
539
HTTP_404_NOT_FOUND: {"model": ErrorResponseModel},
540
540
HTTP_500_INTERNAL_SERVER_ERROR: {"model": ErrorResponseModel},