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

Method getModel

src/api/providers/lm-studio.ts:172–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171
172 override getModel(): { id: string; info: ModelInfo } {
173 const models = getModelsFromCache({
174 provider: "lmstudio",
175 baseUrl: this.options.lmStudioBaseUrl,
176 })
177 if (models && this.options.lmStudioModelId && models[this.options.lmStudioModelId]) {
178 return {
179 id: this.options.lmStudioModelId,
180 info: models[this.options.lmStudioModelId],
181 }
182 } else {
183 return {
184 id: this.options.lmStudioModelId || "",
185 info: openAiModelInfoSaneDefaults,
186 }
187 }
188 }
189
190 async completePrompt(prompt: string): Promise<string> {
191 try {

Callers 2

createMessageMethod · 0.95
completePromptMethod · 0.95

Calls 1

getModelsFromCacheFunction · 0.90

Tested by

no test coverage detected