Provides a basic OpenAI compatible endpoint
OK
const response = await fetch('/api/v1/chat/completions', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "object": "text", "id": "text", "created": "2024-11-21T09:41:17.771Z", "model": "text", "systemFingerprint": "text", "usage": {}, "choices": [ { "message": { "content": "text", "role": "text", "name": "text" }, "finishReason": "text" } ] }