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 9abbbd1 commit 3effd0fCopy full SHA for 3effd0f
tests/integration_tests/test_moderation.py
@@ -10,7 +10,7 @@
10
11
def test_completions_temp0(logging_conf):
12
logging.config.dictConfig(logging_conf) # type: ignore
13
- client = ZhipuAI(api_key="3c50a403daf325d72618d0ac9d1e4da8.wh2czb1BOvdwYaBg",disable_token_cache = False) # 填写您自己的APIKey
+ client = ZhipuAI(api_key="",disable_token_cache = False) # 填写您自己的APIKey
14
try:
15
# 生成request_id
16
request_id = time.time()
@@ -19,7 +19,7 @@ def test_completions_temp0(logging_conf):
19
model="moderations",
20
input={
21
"type": "text",
22
- "text": "你是傻逼"
+ "text": "hello world "
23
}
24
)
25
print(response)
0 commit comments