XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 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
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +2 -2
Modified g4f/Provider/needs_auth/Grok.py +1 -1
@@ -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:
Modified g4f/api/__init__.py +1 -1
@@ -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},