Skip to content

Commit 2dccf31

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

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

tests/integration_tests/test_assistant.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import logging
32
import logging.config
43
import zhipuai
@@ -12,7 +11,6 @@ def test_assistant(logging_conf) -> None:
1211

1312
generate = client.assistant.conversation(
1413
assistant_id="659e54b1b8006379b4b2abd6",
15-
model="glm-4-assistant",
1614
messages=[
1715
{
1816
"role": "user",
@@ -81,7 +79,6 @@ def test_translate_api(logging_conf) -> None:
8179
try:
8280
translate_response = client.assistant.conversation(
8381
assistant_id="9996ijk789lmn012o345p999",
84-
model="glm-4-assistant",
8582
messages=[
8683
{
8784
"role": "user",

zhipuai/api_resource/assistant/assistant.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def __init__(self, client: "ZhipuAI") -> None:
3333
def conversation(
3434
self,
3535
assistant_id: str,
36-
model: str,
3736
messages: List[assistant_create_params.ConversationMessage],
3837
*,
3938
stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
@@ -50,7 +49,6 @@ def conversation(
5049
body = deepcopy_minimal(
5150
{
5251
"assistant_id": assistant_id,
53-
"model": model,
5452
"messages": messages,
5553
"stream": stream,
5654
"conversation_id": conversation_id,

0 commit comments

Comments
 (0)