| 56 | content: string; |
| 57 | } |
| 58 | interface ChatCompletionRequest { |
| 59 | model: string; |
| 60 | messages: ChatMessage[]; |
| 61 | stream?: boolean; |
| 62 | temperature?: number; |
| 63 | max_tokens?: number; |
| 64 | top_p?: number; |
| 65 | } |
| 66 | |
| 67 | function unauthorized(req: ServerRequest, msg: string, status = 401) { |
| 68 | return req.respond({ |
nothing calls this directly
no outgoing calls
no test coverage detected