Update constants.ts
This commit is contained in:
@@ -283,9 +283,11 @@ const getOllamaBaseUrl = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function getOllamaModels(): Promise<ModelInfo[]> {
|
async function getOllamaModels(): Promise<ModelInfo[]> {
|
||||||
//if (typeof window === 'undefined') {
|
/*
|
||||||
//return [];
|
* if (typeof window === 'undefined') {
|
||||||
//}
|
* return [];
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const baseUrl = getOllamaBaseUrl();
|
const baseUrl = getOllamaBaseUrl();
|
||||||
|
|||||||
Reference in New Issue
Block a user