Docs
Successful Response
const response = await fetch('/cohere/{endpoint}', { method: 'POST', headers: {}, }); const data = await response.json();
{ "detail": [ { "loc": [ "text" ], "msg": "text", "type": "text" } ] }
const response = await fetch('/cohere/{endpoint}', { method: 'PUT', headers: {}, }); const data = await response.json();
const response = await fetch('/cohere/{endpoint}', { method: 'DELETE', headers: {}, }); const data = await response.json();
const response = await fetch('/cohere/{endpoint}', { method: 'PATCH', headers: {}, }); const data = await response.json();
const response = await fetch('/cohere/{endpoint}', { method: 'GET', headers: {}, }); const data = await response.json();