Create Chat Completion
Changed onCreate a chat completion using OpenAI format. Reasoning models stream their thoughts in a separate reasoning field by default; see /v1legacy/chat/completions and /v1thinking/chat/completions for alternative shapes.
post/chat/completions
Request
- Base URLhttps://api.electronhub.ai/v1
- URLhttps://api.electronhub.ai/v1/chat/completions
- AuthHTTP bearer
Request body
Example request
{
"model": "gpt-4o"
}Response
Success
Changes
- breaking
the
request property type changed fromobjectto no type - warning
removed the request property
/ - warning
removed the request property
/ - info
added
subschema #1subschema #2to therequest propertyoneOflist
- breaking