MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / with_top_p

Method with_top_p

core/src/llm/mod.rs:103–106  ·  view source on GitHub ↗
(mut self, top_p: f32)

Source from the content-addressed store, hash-verified

101 /// Set top-p
102 #[inline]
103 pub fn with_top_p(mut self, top_p: f32) -> Self {
104 self.top_p = Some(top_p.clamp(0.0, 1.0));
105 self
106 }
107
108 /// Add a tool
109 #[inline]

Calls

no outgoing calls