MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / add

Method add

src/request/openai.rs:85–90  ·  view source on GitHub ↗
(&mut self, other: &TokenUsage)

Source from the content-addressed store, hash-verified

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
93pub struct OpenAIHanler {

Callers 1

generateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected