mirror of
https://github.com/foss42/apidash.git
synced 2025-12-05 12:34:26 +08:00
Refactor genai package to new modular interface
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.
This commit is contained in:
18
packages/genai/lib/models/model_provider.dart
Normal file
18
packages/genai/lib/models/model_provider.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:better_networking/better_networking.dart';
|
||||
import '../models/models.dart';
|
||||
|
||||
abstract class ModelProvider {
|
||||
ModelRequestData get defaultRequestData => throw UnimplementedError();
|
||||
|
||||
HttpRequestModel? createRequest(ModelRequestData? requestData) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
String? outputFormatter(Map x) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
String? streamOutputFormatter(Map x) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user