MCPcopy Create free account
hub / github.com/evilsocket/cake / ChatResponse

Class ChatResponse

cake-core/src/cake/sharding/api/text.rs:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37#[derive(Serialize)]
38struct 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
47impl ChatResponse {
48 pub fn new(model: String, message: String, prompt_tokens: usize, completion_tokens: usize, finish_reason: String) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected