Skip to content

Commit 3efcd2d

Browse files
author
jinhaiyang
committed
【翻译api】翻译api-test
1 parent 020294a commit 3efcd2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration_tests/test_assistant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_translate_api(logging_conf) -> None:
7979
logging.config.dictConfig(logging_conf) # type: ignore
8080
client = ZhipuAI() # 填写您自己的APIKey
8181
try:
82-
generate = client.assistant.conversation(
82+
translate_response = client.assistant.conversation(
8383
assistant_id="9996ijk789lmn012o345p999",
8484
model="glm-4-assistant",
8585
messages=[
@@ -103,7 +103,7 @@ def test_translate_api(logging_conf) -> None:
103103
}
104104
}
105105
)
106-
print(generate)
106+
print(translate_response)
107107
except zhipuai.core._errors.APIRequestFailedError as err:
108108
print(err)
109109
except zhipuai.core._errors.APIInternalError as err:

0 commit comments

Comments
 (0)