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

Function listModels

apps/cli/src/commands/cli/list.ts:290–303  ·  view source on GitHub ↗
(options: BaseListOptions)

Source from the content-addressed store, hash-verified

288}
289
290export async function listModels(options: BaseListOptions): Promise<void> {
291 const format = parseFormat(options.format)
292
293 await withHostAndSignalHandlers(options, { ephemeral: true }, async (host) => {
294 const models = await requestOpenRouterModels(host)
295
296 if (format === "json") {
297 outputJson({ models })
298 return
299 }
300
301 outputModelsText(models)
302 })
303}
304
305export async function listSessions(options: BaseListOptions): Promise<void> {
306 const format = parseFormat(options.format)

Callers 1

index.tsFile · 0.85

Calls 5

parseFormatFunction · 0.85
requestOpenRouterModelsFunction · 0.85
outputJsonFunction · 0.85
outputModelsTextFunction · 0.85

Tested by

no test coverage detected