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-10-14T15:18:21.302Z", "model": "text", "systemFingerprint": "text", "usage": {}, "choices": [ { "message": { "content": "text", "role": "text", "name": "text" }, "finishReason": "text" } ] }