Update constants.ts

This commit is contained in:
Dustin Loring 2024-12-01 07:15:25 -05:00 committed by GitHub
parent eb7676577d
commit 416f7f9097
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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