Skip to content

Commit 3effd0f

Browse files
author
caojunchao
committed
接入 Moderation
1 parent 9abbbd1 commit 3effd0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration_tests/test_moderation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
def test_completions_temp0(logging_conf):
1212
logging.config.dictConfig(logging_conf) # type: ignore
13-
client = ZhipuAI(api_key="3c50a403daf325d72618d0ac9d1e4da8.wh2czb1BOvdwYaBg",disable_token_cache = False) # 填写您自己的APIKey
13+
client = ZhipuAI(api_key="",disable_token_cache = False) # 填写您自己的APIKey
1414
try:
1515
# 生成request_id
1616
request_id = time.time()
@@ -19,7 +19,7 @@ def test_completions_temp0(logging_conf):
1919
model="moderations",
2020
input={
2121
"type": "text",
22-
"text": "你是傻逼"
22+
"text": "hello world "
2323
}
2424
)
2525
print(response)

0 commit comments

Comments
 (0)