mirror of
https://github.com/foss42/apidash.git
synced 2025-12-09 14:40:20 +08:00
AIProviderSelector Impl & AI Models added to RequestModel
This commit is contained in:
@@ -2,6 +2,7 @@ import 'dart:convert';
|
||||
|
||||
enum APIType {
|
||||
rest("HTTP", "HTTP"),
|
||||
ai("AI", "AI"),
|
||||
graphql("GraphQL", "GQL");
|
||||
|
||||
const APIType(this.label, this.abbr);
|
||||
|
||||
@@ -93,6 +93,7 @@ String? getRequestBody(APIType type, HttpRequestModel httpRequestModel) {
|
||||
? httpRequestModel.body
|
||||
: null,
|
||||
APIType.graphql => getGraphQLBody(httpRequestModel),
|
||||
APIType.ai => null, //TODO: TAKE A LOOK
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user