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:
Ankit Mahato
2025-08-27 02:08:36 +05:30
parent 36f58ba26a
commit 72fea1ba65
54 changed files with 2470 additions and 1736 deletions

View File

@@ -1,11 +1,4 @@
// Module Exports
export 'models/ai_request_model.dart';
export 'providers/providers.dart';
export 'generative_ai.dart';
export 'llm_config.dart';
export 'llm_input_payload.dart';
export 'llm_manager.dart';
export 'llm_model.dart';
export 'llm_provider.dart';
export 'llm_request.dart';
export 'llm_saveobject.dart';
export 'models/models.dart';
export 'interface/interface.dart';
export 'utils/utils.dart';
export 'widgets/widgets.dart';