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

Method completePrompt

src/api/providers/minimax.ts:292–305  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

290 }
291
292 async completePrompt(prompt: string) {
293 const { id: model, temperature } = this.getModel()
294
295 const message = await this.client.messages.create({
296 model,
297 max_tokens: 16_384,
298 temperature: temperature ?? 1.0,
299 messages: [{ role: "user", content: prompt }],
300 stream: false,
301 })
302
303 const content = message.content.find(({ type }) => type === "text")
304 return content?.type === "text" ? content.text : ""
305 }
306}

Callers

nothing calls this directly

Calls 2

getModelMethod · 0.95
createMethod · 0.45

Tested by

no test coverage detected