不清楚国产模型内置的搜索工具怎么使用,对比如何,以及在claude code等vibe coding工具中触发。这里以小米mimo为例,Xiaomi MiMo API Open Platform 是在tools参数里面配置。
--header "api-key: $MIMO_API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{
"model": "mimo-v2.5-pro",
"messages": [
{
"role": "user",
"content": "武汉明天天气怎么样?"
}
],
"tools": [
{
"type": "web_search",
"max_keyword": 3,
"force_search": true,
"limit": 1,
"user_location": {
"type": "approximate",
"country": "China",
"region": "Hubei",
"city": "Wuhan"
}
}
],
"max_completion_tokens": 1024,
"temperature": 1.0,
"top_p": 0.95,
"stream": false,
"stop": null,
"frequency_penalty": 0,
"presence_penalty": 0,
"thinking": {
"type": "disabled"
}
}'```
7 个帖子 - 5 位参与者