I'm 100% going to have to destroy this commit later

This commit is contained in:
perf3ct
2025-03-09 02:19:26 +00:00
parent 733fdcf8ba
commit adaac46fbf
23 changed files with 1585 additions and 94 deletions

View File

@@ -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
});