Merge pull request #18 from dustinwloring1988/pretty-up

Pretty up
This commit is contained in:
Dustin Loring
2024-12-01 07:50:15 -05:00
committed by GitHub
2 changed files with 13 additions and 11 deletions

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();