mirror of https://github.com/aliasrobotics/cai.git
5 lines
1.8 KiB
JSON
5 lines
1.8 KiB
JSON
{"model": "gpt-4", "messages": [{"role": "system", "content": "You are a cybersecurity expert."}, {"role": "user", "content": "Scan port 80"}], "stream": false, "tools": [{"type": "function", "function": {"name": "generic_linux_command", "description": "Execute commands", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}}}}]}
|
|
{"id": "chatcmpl-test1", "object": "chat.completion", "created": 1234567890, "model": "gpt-4", "messages": [], "choices": [{"index": 0, "message": {"role": "assistant", "content": "I'll scan port 80.", "tool_calls": [{"function": {"arguments": "{\"command\":\"nmap -p80 target\"}", "name": "generic_linux_command"}, "id": "call_1", "type": "function"}]}, "finish_reason": "tool_calls"}], "usage": {"prompt_tokens": 100, "completion_tokens": 50, "total_tokens": 150}}
|
|
{"model": "gpt-4", "messages": [{"role": "system", "content": "You are a cybersecurity expert."}, {"role": "user", "content": "Scan port 80"}, {"role": "assistant", "content": "I'll scan port 80.", "tool_calls": [{"function": {"arguments": "{\"command\":\"nmap -p80 target\"}", "name": "generic_linux_command"}, "id": "call_1", "type": "function"}]}, {"role": "tool", "tool_call_id": "call_1", "tool_name": "generic_linux_command", "content": "Port 80 is open"}], "stream": false, "tools": [{"type": "function", "function": {"name": "generic_linux_command", "description": "Execute commands", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}}}}]}
|
|
{"id": "chatcmpl-test2", "object": "chat.completion", "created": 1234567891, "model": "gpt-4", "messages": [], "choices": [{"index": 0, "message": {"role": "assistant", "content": "Port 80 is open on the target. This typically indicates a web server."}, "finish_reason": "stop"}], "usage": {"prompt_tokens": 150, "completion_tokens": 20, "total_tokens": 170}}
|