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

@@ -2,6 +2,7 @@ import 'dart:convert';
enum APIType {
rest("HTTP", "HTTP"),
ai("AI", "AI"),
graphql("GraphQL", "GQL");
const APIType(this.label, this.abbr);

View File

@@ -93,6 +93,7 @@ String? getRequestBody(APIType type, HttpRequestModel httpRequestModel) {
? httpRequestModel.body
: null,
APIType.graphql => getGraphQLBody(httpRequestModel),
APIType.ai => null, //TODO: TAKE A LOOK
};
}