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

NameInDescriptionRequired
AuthorizationheaderYes
Content-typeheaderYes

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