mirror of
https://github.com/foss42/apidash.git
synced 2025-12-04 20:13:56 +08:00
Reorganized the genai package by removing legacy LLM-related files and introducing a new modular interface under the 'interface' directory. Added provider-specific model classes, centralized constants, and updated the example to use the new API and data structures. Updated exports in genai.dart and improved dependency management.
14 lines
362 B
Dart
14 lines
362 B
Dart
import '../../models/models.dart';
|
|
import '../consts.dart';
|
|
import 'openai.dart';
|
|
|
|
class OllamaModel extends OpenAIModel {
|
|
static final instance = OllamaModel();
|
|
|
|
@override
|
|
ModelRequestData get defaultRequestData => kDefaultModelRequestData.copyWith(
|
|
url: kOllamaUrl,
|
|
modelConfigs: [kDefaultModelConfigTemperature, kDefaultModelConfigTopP],
|
|
);
|
|
}
|