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, 02:30 UTC
Revert "Update server_api_service.dart"
This reverts commit ed8bb1d2330cff7a7d1ecf8e3da04b1f99bcaab9.
onlypuppy7 committed
Jul 1, 2026 at 20:59 UTC
598906b220d9773c6505c8135e0f79ca900535a0
1 file changed
+4
-11
lib/features/servers/data/server_api_service.dart
+4
-11
@@ -64,8 +64,7 @@ class ServerApiService {
64
65
Future<Set<String>> fetchRunningModels(Server server) async {
66
if (server.type == ServerType.openRouter ||
67
- server.type == ServerType.openAICompatible ||
68
- server.type == ServerType.onDevice) {
67
+ server.type == ServerType.openAICompatible) {
68
return {};
69
}
70
@@ -75,16 +74,10 @@ class ServerApiService {
74
options: Options(headers: buildServerAuthHeaders(server)),
75
);
76
78
- switch (server.type) {
79
- case ServerType.lmStudio:
80
- return _parseRunningOpenAICompatibleModels(response.data);
81
- case ServerType.ollama:
82
- return _parseRunningOllamaModels(response.data);
83
- case ServerType.openRouter:
84
- case ServerType.openAICompatible:
85
- case ServerType.onDevice:
86
- return {};
77
+ if (server.type == ServerType.lmStudio) {
78
+ return _parseRunningOpenAICompatibleModels(response.data);
79
}
80
+ return _parseRunningOllamaModels(response.data);
81
} catch (e) {
82
return {};
83
}