답변은 data.message.content, 차감 포인트는 api.cost입니다. 단발 호출에서는 data.compacted_messages를 쓰지 않아도 됩니다.
{
"data": {
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
"message": { "role": "assistant", "content": "{\"sentiment\":\"positive\",\"confidence\":0.95}" },
"usage": { "prompt_tokens": 74, "completion_tokens": 14, "total_tokens": 88 },
"compacted_messages": [
{ "role": "system", "content": "사용자 문장의 감성을 분류합니다. 다음 JSON만 출력하세요. 설명 금지. {\"sentiment\":\"positive|negative|neutral\",\"confidence\":0.0~1.0}" },
{ "role": "user", "content": "이 상품 정말 최고예요! 배송도 빨랐어요." },
{ "role": "assistant", "content": "{\"sentiment\":\"positive\",\"confidence\":0.95}" }
],
"ic_id": null, "result": 1, "msg": "", "success": 1
},
"api": { "success": true, "cost": 5, "ms": 640, "pl_id": 12345 }
}