Last updated 2 days ago
const response = await fetch('/threads/{threadId}/messages/{messageId}', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/threads/{threadId}/messages?LlmThreadMessage.v1.GetThreadMessagesDTO=%5Bobject+Object%5D', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/threads/{threadId}/messages', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "role": "assistant", "content": "text" }), }); const data = await response.json();
const response = await fetch('/threads/{threadId}/messages/{messageId}', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();