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

Method getModel

src/api/providers/openai.ts:286–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 }
285
286 override getModel() {
287 const id = this.options.openAiModelId ?? ""
288 const info: ModelInfo = this.options.openAiCustomModelInfo ?? openAiModelInfoSaneDefaults
289 const params = getModelParams({
290 format: "openai",
291 modelId: id,
292 model: info,
293 settings: this.options,
294 defaultTemperature: 0,
295 })
296 return { id, info, ...params }
297 }
298
299 async completePrompt(prompt: string): Promise<string> {
300 try {

Callers 3

createMessageMethod · 0.95
completePromptMethod · 0.95
handleO3FamilyMessageMethod · 0.95

Calls 1

getModelParamsFunction · 0.90

Tested by

no test coverage detected