mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 03:17:00 +08:00
fixes
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'dart:convert';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:genai/models/available_models.dart';
|
||||
import 'package:genai/utils/model_manager.dart';
|
||||
@@ -11,12 +10,6 @@ void main() {
|
||||
});
|
||||
|
||||
test('fetchInstalledOllamaModels parses response', () async {
|
||||
final body = jsonEncode({
|
||||
"models": [
|
||||
{"model": "mistral", "name": "Mistral"},
|
||||
{"model": "llama2", "name": "LLaMA 2"},
|
||||
],
|
||||
});
|
||||
final result = await ModelManager.fetchInstalledOllamaModels();
|
||||
expect(result, isNotNull);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user