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

Method with_headers

core/src/llm/openai.rs:125–128  ·  view source on GitHub ↗
(mut self, headers: HashMap<String, String>)

Source from the content-addressed store, hash-verified

123 }
124
125 pub fn with_headers(mut self, headers: HashMap<String, String>) -> Self {
126 self.headers = headers;
127 self
128 }
129
130 pub fn with_max_tokens(mut self, max_tokens: usize) -> Self {
131 self.max_tokens = Some(max_tokens);

Calls

no outgoing calls