Last updated 2 days ago
const response = await fetch('/threads/{threadId}/runs', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/threads/{threadId}/runs/{runId}', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/threads/{threadId}/runs', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "assistant_id": "123e4567-e89b-12d3-a456-426614174000" }), }); const data = await response.json();
const response = await fetch('/threads/{threadId}/runs/{runId}', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();