Method
with_chat_completions_path
(mut self, path: impl Into<String>)
Source from the content-addressed store, hash-verified
| 108 | } |
| 109 | |
| 110 | pub fn with_chat_completions_path(mut self, path: impl Into<String>) -> Self { |
| 111 | let path = path.into(); |
| 112 | self.chat_completions_path = if path.starts_with('/') { |
| 113 | path |
| 114 | } else { |
| 115 | format!("/{}", path) |
| 116 | }; |
| 117 | self |
| 118 | } |
| 119 | |
| 120 | pub fn with_temperature(mut self, temperature: f32) -> Self { |
| 121 | self.temperature = Some(temperature); |
Tested by
no test coverage detected