{
"question": "什么是新餐饮",
"kid": "AbCd123456",
"topK": 5,
"stream": false,
"model": "",
"similarityThreshold": 0.55,
"returnSources": false
}curl --location 'https://api.peakkai.ai/v1/knowledge/chat' \
--header 'Content-Type: application/json' \
--data '{
"question": "什么是新餐饮",
"kid": "AbCd123456",
"topK": 5,
"stream": false,
"model": "",
"similarityThreshold": 0.55,
"returnSources": false
}'{
"id": "resp_abc123",
"provider": "openai",
"model": "gpt-4o",
"content": "根据产品手册,自签收之日起 7 天内支持无理由退换货,退换货需保证商品及包装完好。",
"thinking": "思考过程",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{\"city\":\"上海\",\"unit\":\"celsius\"}"
}
}
],
"finish_reason": "stop",
"usage": {
"input_tokens": 1250,
"output_tokens": 85,
"cached_input_tokens": 0,
"reasoning_tokens": 0
},
"raw_usage": {
"prompt_tokens": 1250,
"completion_tokens": 85,
"total_tokens": 1335
}
}