MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_max_tokens

Method with_max_tokens

core/src/context/mod.rs:142–145  ·  view source on GitHub ↗

Set the maximum total tokens

(mut self, max: usize)

Source from the content-addressed store, hash-verified

140
141 /// Set the maximum total tokens
142 pub fn with_max_tokens(mut self, max: usize) -> Self {
143 self.max_tokens = max;
144 self
145 }
146
147 /// Set the session ID
148 pub fn with_session_id(mut self, id: impl Into<String>) -> Self {

Callers 3

apply_model_capsFunction · 0.45

Calls

no outgoing calls

Tested by 1