Skip to content

Commit c795403

Browse files
author
yuhongxiao
committed
接口变更
1 parent 2dbcf1f commit c795403

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/integration_tests/test_audio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def test_audio_speech(logging_conf):
1515
model='cogtts',
1616
input='你好呀,欢迎来到智谱开放平台',
1717
voice='female',
18+
stream=False,
1819
response_format='wav',
1920
)
2021
response.stream_to_file(speech_file_path)

zhipuai/api_resource/audio/audio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def speech(
4646
sensitive_word_check: Optional[SensitiveWordCheckRequest] | NotGiven = NOT_GIVEN,
4747
request_id: str = None,
4848
user_id: str = None,
49+
stream: bool = False,
4950
extra_headers: Headers | None = None,
5051
extra_body: Body | None = None,
5152
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
@@ -55,6 +56,7 @@ def speech(
5556
"model": model,
5657
"input": input,
5758
"voice": voice,
59+
"stream": stream,
5860
"response_format": response_format,
5961
"sensitive_word_check": sensitive_word_check,
6062
"request_id": request_id,

0 commit comments

Comments
 (0)