70 lines
2.3 KiB
Plaintext
70 lines
2.3 KiB
Plaintext
$ docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'
|
|||
|
|
NAME CPU % MEM USAGE / LIMIT
|
||
|
|
day67-data-data-api-1 0.02% 20.3MiB / 7.818GiB
|
||
|
|
day65-n8n-runners-1 0.21% 100.5MiB / 7.818GiB
|
||
|
|
day65-n8n-n8n-1 0.27% 642.6MiB / 7.818GiB
|
||
|
|
|
||
|
|
$ uv run tools/flow.py call base-cost requests/faq-vpn.json
|
||
|
|
HTTP 200 · 4.3s
|
||
|
|
{
|
||
|
|
"route": "자동 답변",
|
||
|
|
"answer": "VPN 접속이 자주 끊길 경우, VPN 클라이언트를 최신 버전으로 업데이트하고 인증서 만료 여부를 IT 포털에서 확인하시기 바랍니다. 인증서는 만료 30일 전부터 재발급 신청이 가능합니다. 추가 도움이 필요하시면 IT 문의로 연락해 주십시오.",
|
||
|
|
"sources": [
|
||
|
|
"FAQ-003"
|
||
|
|
],
|
||
|
|
"llm_calls": 3,
|
||
|
|
"usage": {
|
||
|
|
"prompt_tokens": 1999,
|
||
|
|
"completion_tokens": 150,
|
||
|
|
"by_step": {
|
||
|
|
"classify": {
|
||
|
|
"model": "gpt-4.1-mini",
|
||
|
|
"prompt_tokens": 78,
|
||
|
|
"completion_tokens": 6
|
||
|
|
},
|
||
|
|
"answer": {
|
||
|
|
"model": "gpt-4.1-mini",
|
||
|
|
"prompt_tokens": 1781,
|
||
|
|
"completion_tokens": 78
|
||
|
|
},
|
||
|
|
"review": {
|
||
|
|
"model": "gpt-4.1-mini",
|
||
|
|
"prompt_tokens": 140,
|
||
|
|
"completion_tokens": 66
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
$ uv run tools/flow.py call base-cost requests/ticket-own.json
|
||
|
|
HTTP 200 · 3.3s
|
||
|
|
{
|
||
|
|
"route": "자동 답변",
|
||
|
|
"answer": "티켓 T-1002는 현재 인증서 발급 승인 대기 중이며, 완료 예정일은 10월 20일입니다. 추가 문의 사항이 있으시면 연락 주시기 바랍니다.",
|
||
|
|
"sources": [],
|
||
|
|
"llm_calls": 3,
|
||
|
|
"usage": {
|
||
|
|
"prompt_tokens": 1973,
|
||
|
|
"completion_tokens": 97,
|
||
|
|
"by_step": {
|
||
|
|
"classify": {
|
||
|
|
"model": "gpt-4.1-mini",
|
||
|
|
"prompt_tokens": 71,
|
||
|
|
"completion_tokens": 6
|
||
|
|
},
|
||
|
|
"answer": {
|
||
|
|
"model": "gpt-4.1-mini",
|
||
|
|
"prompt_tokens": 1791,
|
||
|
|
"completion_tokens": 49
|
||
|
|
},
|
||
|
|
"review": {
|
||
|
|
"model": "gpt-4.1-mini",
|
||
|
|
"prompt_tokens": 111,
|
||
|
|
"completion_tokens": 42
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
$ curl -s localhost:8800/prices
|
||
|
|
{"currency": "USD", "unit": "per 1M tokens", "note": "OpenAI 모델 문서의 공개 단가 (2026-10-28 확인). 수업 전에 가격표를 확인해 바꾸세요.", "models": {"gpt-4.1-mini": {"input": 0.4, "output": 1.6}, "gpt-5.4-nano": {"input": 0.2, "output": 1.25}}}
|