A mobile application designed to provide a beautiful, fast, and privacy-respecting interface for on device LLM and local LLM servers and cloud providers
Mirrored from https://github.com/tduncan-lum/Cortana.git
Synced Dec 6, 03:45 UTC
fix: update Ollama model endpoints to /api/generate and include keep_alive parameter for unloading
abdulmominsakib committed
Apr 7, 2026 at 22:34 UTC
5a069a64387a7e082891f0b658b25e7ae8a48e4b
2 files changed
+3
-3
lib/features/servers/data/models/server.dart
+2
-2
@@ -105,7 +105,7 @@ class Server extends HiveObject {
105
case ServerType.openAICompatible:
106
return '$baseUrl/v1/models/load';
107
case ServerType.ollama:
108
- return '$baseUrl/api/load';
108
+ return '$baseUrl/api/generate';
109
case ServerType.openRouter:
110
return '';
111
}
@@ -118,7 +118,7 @@ class Server extends HiveObject {
118
case ServerType.openAICompatible:
119
return '$baseUrl/v1/models/unload';
120
case ServerType.ollama:
121
- return '$baseUrl/api/unload';
121
+ return '$baseUrl/api/generate';
122
case ServerType.openRouter:
123
return '';
124
}
lib/features/servers/data/server_api_service.dart
+1
-1
@@ -142,7 +142,7 @@ class ServerApiService {
142
case ServerType.ollama:
143
await _dio.post(
144
server.unloadModelEndpoint,
145
- data: {'model': modelId},
145
+ data: {'model': modelId, 'keep_alive': 0},
146
options: Options(headers: _getAuthHeaders(server)),
147
);
148
case ServerType.openRouter: