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

Method new

core/src/llm/zhipu.rs:25–32  ·  view source on GitHub ↗
(api_key: String, model: String)

Source from the content-addressed store, hash-verified

23
24impl 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);

Callers

nothing calls this directly

Calls 3

with_base_urlMethod · 0.45
with_provider_nameMethod · 0.45

Tested by

no test coverage detected