AIProviderSelector Impl & AI Models added to RequestModel

This commit is contained in:
Manas Hejmadi
2025-07-09 15:08:06 +05:30
parent 90b4b99135
commit d923996dc8
10 changed files with 159 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
import 'package:apidash_core/apidash_core.dart';
import 'package:genai/genai.dart';
part 'request_model.freezed.dart';
@@ -25,6 +26,8 @@ class RequestModel with _$RequestModel {
@JsonKey(includeToJson: false) @Default(false) bool isStreaming,
String? preRequestScript,
String? postRequestScript,
AIRequestModel? aiRequestModel,
AIResponseModel? aiResponseModel,
}) = _RequestModel;
factory RequestModel.fromJson(Map<String, Object?> json) =>