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
commit a0ba540b77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();