服务商配置:

报错信息:

API 通过curl能够正常返回:
curl https://ark-cn-beijing.bytedance.net/api/v3/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ARK_API_KEY" \
-d '{
"model": "******//脱敏",
"messages": [
{"role": "system","content": "你是人工智能助手."},
{"role": "user","content": "你好"}
]
}'
{"choices":[{"finish_reason":"stop","index":0,"logprobs":null,"message":{"content":"你好!很高兴见到你。有什么我可以帮助你的吗?","reasoning_content":"用户说\"你好\",这是一个简单的问候。我需要用友好、自然的方式回应。\n\n作为AI助手,我应该:\n1. 回应问候\n2. 提供帮助\n3. 保持简洁友好\n\n可能的回应:\n- \"你好!很高兴见到你。有什么我可以帮助你的吗?\"\n- \"你好!有什么我可以为你做的吗?\"\n- \"你好!我是AI助手,有什么想问的吗?\"\n\n选择第一个,因为它既礼貌又直接提供了帮助。","role":"assistant"}}],"created":1765355004,"id":"021765354979584b7f99da0eb26b9ad44cd88ab09cbbdaf2c0dfb","model":"kimi-k2-thinking-251104","service_tier":"default","object":"chat.completion","usage":{"completion_tokens":107,"prompt_tokens":17,"total_tokens":124,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":95}}}%
Please authenticate to join the conversation.
Completed
Feature Request
3 months ago

William Tsao
Get notified by email when there are changes.
Completed
Feature Request
3 months ago

William Tsao
Get notified by email when there are changes.