MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / with_max_tokens

Method with_max_tokens

crates/opencode-provider/src/message.rs:243–246  ·  view source on GitHub ↗
(mut self, max_tokens: u64)

Source from the content-addressed store, hash-verified

241 }
242
243 pub fn with_max_tokens(mut self, max_tokens: u64) -> Self {
244 self.max_tokens = Some(max_tokens);
245 self
246 }
247
248 pub fn with_system(mut self, system: impl Into<String>) -> Self {
249 self.system = Some(system.into());

Callers 1

Calls

no outgoing calls

Tested by 1