| 36 | |
| 37 | #[derive(Serialize)] |
| 38 | struct ChatResponse { |
| 39 | pub id: String, |
| 40 | pub object: String, |
| 41 | pub created: u64, |
| 42 | pub model: String, |
| 43 | pub choices: Vec<Choice>, |
| 44 | pub usage: Usage, |
| 45 | } |
| 46 | |
| 47 | impl ChatResponse { |
| 48 | pub fn new(model: String, message: String, prompt_tokens: usize, completion_tokens: usize, finish_reason: String) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected