### 1 · models GET /v1/models HTTP/1.1 Host: 127.0.0.1:8083 Authorization: Bearer m101-chat-key HTTP/1.1 200 OK Content-Type: application/json Date: { "object": "list", "data": [ { "id": "root", "created": "", "object": "model", "owned_by": "docker-agent", "shutdown_date": "" } ] } ### 2 · chat completion POST /v1/chat/completions HTTP/1.1 Host: 127.0.0.1:8083 Authorization: Bearer m101-chat-key Content-Type: application/json { "model": "root", "messages": [ { "role": "user", "content": "ping" } ] } HTTP/1.1 200 OK Content-Type: application/json Date: { "id": "chatcmpl-", "object": "chat.completion", "created": "", "model": "root", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "pong" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": "", "completion_tokens": "", "total_tokens": "" } } ### 3 · the same without the token POST /v1/chat/completions HTTP/1.1 Host: 127.0.0.1:8083 Content-Type: application/json { "model": "root", "messages": [ { "role": "user", "content": "ping" } ] } HTTP/1.1 401 Unauthorized Content-Type: application/json Date: { "error": { "message": "missing or invalid bearer token", "type": "invalid_request_error" } }