Merge pull request #460 from oTToDev-CE/ollama-model-not-respected
Browse files- app/utils/constants.ts +3 -3
app/utils/constants.ts
CHANGED
|
@@ -283,9 +283,9 @@ const getOllamaBaseUrl = () => {
|
|
| 283 |
};
|
| 284 |
|
| 285 |
async function getOllamaModels(): Promise<ModelInfo[]> {
|
| 286 |
-
if (typeof window === 'undefined') {
|
| 287 |
-
return [];
|
| 288 |
-
}
|
| 289 |
|
| 290 |
try {
|
| 291 |
const baseUrl = getOllamaBaseUrl();
|
|
|
|
| 283 |
};
|
| 284 |
|
| 285 |
async function getOllamaModels(): Promise<ModelInfo[]> {
|
| 286 |
+
//if (typeof window === 'undefined') {
|
| 287 |
+
//return [];
|
| 288 |
+
//}
|
| 289 |
|
| 290 |
try {
|
| 291 |
const baseUrl = getOllamaBaseUrl();
|