MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / fetchLlamaCppModels

Function fetchLlamaCppModels

out/cli.cjs:86248–86259  ·  view source on GitHub ↗
(baseUrl = "http://localhost:8080")

Source from the content-addressed store, hash-verified

86246 return [];
86247 }
86248 const data = await response.json();
86249 return data.models?.map((m5) => m5.name) || [];
86250 } catch {
86251 return [];
86252 }
86253}
86254async function fetchLlamaCppModels(baseUrl = "http://localhost:8080") {
86255 try {
86256 const response = await fetch(`${baseUrl}/v1/models`);
86257 if (!response.ok) {
86258 return [];
86259 }
86260 const data = await response.json();
86261 return data.data?.map((m5) => m5.id) || [];
86262 } catch {

Callers 1

fetchModelsForProviderFunction · 0.70

Calls 1

jsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…