Cygnal Completions
Changed onCreate OpenAI-compatible chat completions with Cygnal protection.
Docs: Guide | API Reference
post/cygnal/chat/completions
Request
- Base URLhttps://api.grayswan.ai
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Example response
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Sure, just let me know what you'd like me to help with!",
"role": "assistant"
}
}
],
"created": 1987654321,
"id": "1234567890",
"model": "gpt-4o",
"object": "chat.completion",
"system_fingerprint": "v-0.2"
}Changes
- info
added
subschema #1to therequest propertyanyOflist
- info