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

Method getModel

src/api/providers/minimax.ts:272–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270 }
271
272 getModel() {
273 const modelId = this.options.apiModelId
274 const id = modelId && modelId in minimaxModels ? (modelId as MinimaxModelId) : minimaxDefaultModelId
275 const info = minimaxModels[id]
276
277 const params = getModelParams({
278 format: "anthropic",
279 modelId: id,
280 model: info,
281 settings: this.options,
282 defaultTemperature: 1.0,
283 })
284
285 return {
286 id,
287 info,
288 ...params,
289 }
290 }
291
292 async completePrompt(prompt: string) {
293 const { id: model, temperature } = this.getModel()

Callers 2

createMessageMethod · 0.95
completePromptMethod · 0.95

Calls 1

getModelParamsFunction · 0.90

Tested by

no test coverage detected