Web Search
参考文档: https://platform.openai.com/docs/api-reference/chat/create
Endpoint
POST http://v98store.com/v1/chat/completions cURL Command
curl -X POST 'http://v98store.com/v1/chat/completions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "model": "gpt-4o-search-preview", "web_search_options": {}, "messages": [ { "role": "user", "content": "What was a positive news story from today?" } ] }' Parameters
| Name | In | Description | Required |
|---|---|---|---|
| Authorization | header | Yes | |
| Content-type | header | Yes |
Request Body
Example
{
"model": "gpt-4o-search-preview",
"web_search_options": {},
"messages": [
{
"role": "user",
"content": "What was a positive news story from today?"
}
]
} Responses
200 -
Example
undefined