This commit is contained in:
Dustin Loring 2024-11-29 13:12:47 -05:00
parent 802293fc20
commit 61c2a8b325

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