(api_key: String, model: String)
| 23 | |
| 24 | impl ZhipuClient { |
| 25 | pub fn new(api_key: String, model: String) -> Self { |
| 26 | Self( |
| 27 | OpenAiClient::new(api_key, model) |
| 28 | .with_provider_name("zhipu") |
| 29 | .with_base_url(GLM_BASE_URL.to_string()) |
| 30 | .with_chat_completions_path(GLM_CHAT_PATH), |
| 31 | ) |
| 32 | } |
| 33 | |
| 34 | pub fn with_temperature(mut self, temperature: f32) -> Self { |
| 35 | self.0 = self.0.with_temperature(temperature); |
nothing calls this directly
no test coverage detected