web搜索
概览
- 简介: 开发中 POST https://api.winfull.cloud-ip.cc/v1/chat/completions 参考文档:https://platform.openai.com/docs/api-reference/chat/create
认证
- Header: Authorization: Bearer
<token>
请求参数
- Header: Authorization: Bearer
<token> - Body 类型: application/json
{
"model": "gpt-4o-search-preview",
"web_search_options": {},
"messages": [{
"role": "user",
"content": "What was a positive news story from today?"
}]
}请求示例
curl --location --request POST 'https://api.winfull.cloud-ip.cc/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-type: application/json' \
--data-raw '{
"model": "gpt-4o-search-preview",
"web_search_options": {},
"messages": [{
"role": "user",
"content": "What was a positive news story from today?"
}]
}'返回示例
🟢200成功 示例
{}最后更新:2025-08-01 02:34:18
