/v1/chat/completionsOpenAI-ସଂଗତିଯୁକ୍ତ। ପାସ stream: true SSE ପାଇଁ. କ୍ରେଡିଟଗୁଡ଼ିକ ଆଣବିକ ଭାବରେ ଡିବିଟ କରାଯାଇଛି ।
ଅନୁରୋଧ ଶରୀରର
{
"model": "anthropic-claude-sonnet-46",
"messages": [
{"role": "system", "content": "You are helpful."},
{"role": "user", "content": "What is 2+2?"}
],
"stream": false,
"temperature": 0.7,
"max_tokens": 512
}
ଉତ୍ତର (ନିଷ୍କଳ୍ପିତ)
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "anthropic-claude-sonnet-46",
"choices": [{"index":0,"message":{"role":"assistant","content":"Four."},"finish_reason":"stop"}],
"usage": {"prompt_tokens": 15, "completion_tokens": 2, "total_tokens": 17},
"yout": {"credits_charged": 10, "balance": 14999990}
}