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.
1 parent e2d7e8a commit 18fceedCopy full SHA for 18fceed
tests/integration_tests/test_assistant.py
@@ -88,7 +88,7 @@ def test_translate_api(logging_conf) -> None:
88
}]
89
}
90
],
91
- stream=False,
+ stream=True,
92
attachments=None,
93
metadata=None,
94
request_id="request_1790291013237211136",
@@ -100,7 +100,9 @@ def test_translate_api(logging_conf) -> None:
100
101
102
)
103
- print(translate_response)
+ for chunk in translate_response:
104
+ print(chunk.choices[0].delta)
105
+ #print(translate_response)
106
except zhipuai.core._errors.APIRequestFailedError as err:
107
print(err)
108
except zhipuai.core._errors.APIInternalError as err:
0 commit comments