mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
fix
This commit is contained in:
parent
802293fc20
commit
61c2a8b325
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user