Merge pull request #460 from oTToDev-CE/ollama-model-not-respected

Ollama not respecting model selection
This commit is contained in:
Cole Medin
2024-11-29 14:08:28 -06:00
committed by GitHub

View File

@@ -283,9 +283,9 @@ const getOllamaBaseUrl = () => {
}; };
async function getOllamaModels(): Promise<ModelInfo[]> { async function getOllamaModels(): Promise<ModelInfo[]> {
if (typeof window === 'undefined') { //if (typeof window === 'undefined') {
return []; //return [];
} //}
try { try {
const baseUrl = getOllamaBaseUrl(); const baseUrl = getOllamaBaseUrl();