MCPcopy
hub / github.com/zai-org/Open-AutoGLM / __init__

Method __init__

phone_agent/model/client.py:49–51  ·  view source on GitHub ↗
(self, config: ModelConfig | None = None)

Source from the content-addressed store, hash-verified

47 """
48
49 def __init__(self, config: ModelConfig | None = None):
50 self.config = config or ModelConfig()
51 self.client = OpenAI(base_url=self.config.base_url, api_key=self.config.api_key)
52
53 def request(self, messages: list[dict[str, Any]]) -> ModelResponse:
54 """

Callers

nothing calls this directly

Calls 1

ModelConfigClass · 0.85

Tested by

no test coverage detected