-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement]Add response format #309
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
非常感谢贡献!
当前并不是每个模型都支持 response_format
这个参数,比如speed和lite系列就尚不支持。所以需要在 这里 加上一个检查的限制
@@ -271,6 +276,7 @@ async def acreate( | |||
extra_params: Optional[dict] = ..., | |||
headers: Optional[HeadersType] = ..., | |||
request_timeout: Optional[float] = ..., | |||
response_format: Optional[Literal["json_object", "text"]] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请保持和其他参数一致,使用 "..."
@@ -297,6 +303,7 @@ async def acreate( | |||
extra_params: Optional[dict] = ..., | |||
headers: Optional[HeadersType] = ..., | |||
request_timeout: Optional[float] = ..., | |||
response_format: Optional[Literal["json_object", "text"]] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请保持和其他参数一致,使用 "..."
@@ -323,6 +330,7 @@ async def acreate( | |||
extra_params: Optional[dict] = ..., | |||
headers: Optional[HeadersType] = ..., | |||
request_timeout: Optional[float] = ..., | |||
response_format: Optional[Literal["json_object", "text"]] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请保持和其他参数一致,使用 "..."
closing as the feature has been implemented in #349 |
添加到develop分支
@sijunhe