MCPcopy
hub / github.com/continuedev/continue / getOllamaIcon

Function getOllamaIcon

core/llm/fetchModels.ts:51–62  ·  view source on GitHub ↗
(modelName: string)

Source from the content-addressed store, hash-verified

49};
50
51function getOllamaIcon(modelName: string): string {
52 if (OLLAMA_ICON_MAP[modelName]) {
53 return OLLAMA_ICON_MAP[modelName];
54 }
55 let bestMatch = "";
56 for (const prefix of Object.keys(OLLAMA_ICON_MAP)) {
57 if (modelName.startsWith(prefix) && prefix.length > bestMatch.length) {
58 bestMatch = prefix;
59 }
60 }
61 return bestMatch ? OLLAMA_ICON_MAP[bestMatch] : "ollama.png";
62}
63
64async function fetchOllamaModels(): Promise<FetchedModel[]> {
65 try {

Callers 1

fetchOllamaModelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected