Referensi API & Router
POST /api/v1/chat/completions
Endpoint proxy chat completions kompatibel OpenAI dengan streaming token SSE dan pemetaan model otomatis.
POST /api/v1/chat/completions
Endpoint proxy chat completions yang sepenuhnya kompatibel dengan spesifikasi OpenAI v1 dengan dukungan streaming Server-Sent Events (SSE):
bash
curl -X POST http://localhost:3000/api/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen2.5-coder:7b",
"messages": [
{ "role": "system", "content": "You are a senior TypeScript architect." },
{ "role": "user", "content": "Write a type-safe debounce hook in React 19." }
],
"stream": true
}'Apakah halaman ini membantu?