Create a chat completion
Compatible with the OpenAI Chat Completions protocol, with optional built-in octen_broad_search and octen_search tools.
post/v1/chat/completions
Request
- Base URL: https://api.octen.ai
- URL: https://api.octen.ai/v1/chat/completions
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Request body
Example request
{
"tools": [
{
"parameters": {
"include_domains": [
"octen.ai",
"wikipedia.org"
],
"exclude_domains": [
"spam.com",
"ads.example.net"
],
"start_time": "2025-01-01T00:00:00+08:00",
"end_time": "2025-01-01T00:00:00+08:00",
"language": [
"en",
"zh"
]
}
}
]
}Response
Successful chat completion. When stream=false, returns a single chat.completion object. When stream=true, returns a stream of chat.completion.chunk objects (search_done, content, finish, usage), followed by data: [DONE].
Changes
No recorded changes to this operation across all 1 revision of this API.