Update constants.ts
Browse files- app/utils/constants.ts +5 -3
app/utils/constants.ts
CHANGED
|
@@ -283,9 +283,11 @@ const getOllamaBaseUrl = () => {
|
|
| 283 |
};
|
| 284 |
|
| 285 |
async function getOllamaModels(): Promise<ModelInfo[]> {
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
|
|
|
|
|
|
| 289 |
|
| 290 |
try {
|
| 291 |
const baseUrl = getOllamaBaseUrl();
|
|
|
|
| 283 |
};
|
| 284 |
|
| 285 |
async function getOllamaModels(): Promise<ModelInfo[]> {
|
| 286 |
+
/*
|
| 287 |
+
* if (typeof window === 'undefined') {
|
| 288 |
+
* return [];
|
| 289 |
+
* }
|
| 290 |
+
*/
|
| 291 |
|
| 292 |
try {
|
| 293 |
const baseUrl = getOllamaBaseUrl();
|