MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getModel

Method getModel

src/api/providers/moonshot.ts:29–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 override getModel() {
30 const id = this.options.apiModelId ?? moonshotDefaultModelId
31 const info = moonshotModels[id as keyof typeof moonshotModels] || moonshotModels[moonshotDefaultModelId]
32 const params = getModelParams({
33 format: "openai",
34 modelId: id,
35 model: info,
36 settings: this.options,
37 defaultTemperature: 0,
38 })
39 return { id, info, ...params }
40 }
41
42 /**
43 * Override to handle Moonshot's usage metrics, including caching.

Callers

nothing calls this directly

Calls 1

getModelParamsFunction · 0.90

Tested by

no test coverage detected