(&mut self, other: &TokenUsage)
| 83 | } |
| 84 | |
| 85 | pub fn add(&mut self, other: &TokenUsage) { |
| 86 | self.prompt_tokens += other.prompt_tokens; |
| 87 | self.completion_tokens += other.completion_tokens; |
| 88 | self.total_tokens += other.total_tokens; |
| 89 | self.cached_tokens += other.cached_tokens; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | pub struct OpenAIHanler { |