Set input tokens.
(mut self, tokens: u64)
| 103 | |
| 104 | /// Set input tokens. |
| 105 | pub fn input_tokens(mut self, tokens: u64) -> Self { |
| 106 | self.tokens.input_tokens = tokens; |
| 107 | self.tokens.total_tokens = self.tokens.input_tokens + self.tokens.output_tokens; |
| 108 | self |
| 109 | } |
| 110 | |
| 111 | /// Set output tokens. |
| 112 | pub fn output_tokens(mut self, tokens: u64) -> Self { |
no outgoing calls