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

Function completePrompt

src/api/providers/openai-compatible.ts:200–211  ·  view source on GitHub ↗

* Complete a prompt using the AI SDK generateText.

(prompt: string)

Source from the content-addressed store, hash-verified

198 * Complete a prompt using the AI SDK generateText.
199 */
200 async completePrompt(prompt: string): Promise<string> {
201 const languageModel = this.getLanguageModel()
202
203 const { text } = await generateText({
204 model: languageModel,
205 prompt,
206 maxOutputTokens: this.getMaxOutputTokens(),
207 temperature: this.config.temperature ?? 0,
208 })
209
210 return text
211 }
212}

Callers

nothing calls this directly

Calls 1

getMaxOutputTokensMethod · 0.80

Tested by

no test coverage detected