OpenAI Chat Completions, answered by Polar
POST
/api/v1/chat/completionsFor OpenAI-compatible clients: base URL is the origin plus /api/v1. Needs polar.use.
En esta página
Cuerpo
| Campo | Tipo | Descripción |
|---|---|---|
modelobligatorio | string |
Esquema JSON
{
"type": "object",
"properties": {
"model": {
"type": "string"
}
},
"required": [
"model"
]
}Petición de ejemplo
curl -X POST "https://polaris.example.com/api/v1/chat/completions" \
-H "Authorization: Bearer $POLARIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "string"
}'Respuestas
| Estado | Qué es |
|---|---|
200 | OK |
También puede dar los errores comunes 400, 401, 403, 404, 429. Ver errores comunes