We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9bfb486 + eac1f1c commit 48d504dCopy full SHA for 48d504d
zhipuai/api_resource/chat/completions.py
@@ -47,6 +47,7 @@ def create(
47
extra_headers: Headers | None = None,
48
extra_body: Body | None = None,
49
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50
+ response_format : object | None = None
51
) -> Completion | StreamResponse[ChatCompletionChunk]:
52
logger.debug(f"temperature:{temperature}, top_p:{top_p}")
53
if temperature is not None and temperature != NOT_GIVEN:
@@ -90,6 +91,7 @@ def create(
90
91
"tool_choice": tool_choice,
92
"meta": meta,
93
"extra": maybe_transform(extra, code_geex_params.CodeGeexExtra),
94
+ "response_format": response_format
95
})
96
return self._post(
97
"/chat/completions",
0 commit comments