Merge pull request #460 from oTToDev-CE/ollama-model-not-respected
Ollama not respecting model selection
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user