mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 23:05:51 +01:00
I'm 100% going to have to destroy this commit later
This commit is contained in:
@@ -14,7 +14,7 @@ async function listModels(req: Request, res: Response) {
|
||||
const ollamaBaseUrl = baseUrl || await options.getOption('ollamaBaseUrl') || 'http://localhost:11434';
|
||||
|
||||
// Call Ollama API to get models
|
||||
const response = await axios.get(`${ollamaBaseUrl}/api/tags`, {
|
||||
const response = await axios.get(`${ollamaBaseUrl}/api/tags?format=json`, {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
timeout: 10000
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user