Merge branch 'main' into pr/867

This commit is contained in:
Ankit Mahato
2025-09-24 00:40:51 +05:30
177 changed files with 9788 additions and 229 deletions

View File

@@ -57,6 +57,7 @@ final Map<String, dynamic> historyRequestModelJson1 = {
"historyId": "historyId1",
"metaData": historyMetaModelJson1,
"httpRequestModel": httpRequestModelGet4Json,
'aiRequestModel': null,
"httpResponseModel": responseModelJson,
'preRequestScript': null,
'postRequestScript': null,

View File

@@ -218,7 +218,8 @@ Map<String, dynamic> requestModelJson = {
'message': null,
'httpResponseModel': responseModelJson,
'preRequestScript': null,
'postRequestScript': null
'postRequestScript': null,
'aiRequestModel': null
};
/// Basic GET request model for apidash.dev

View File

@@ -19,6 +19,7 @@ void main() {
workspaceFolderPath: null,
isSSLDisabled: true,
isDashBotEnabled: true,
defaultAIModel: {"model": "llama"},
);
test('Testing toJson()', () {
@@ -38,6 +39,7 @@ void main() {
"workspaceFolderPath": null,
"isSSLDisabled": true,
"isDashBotEnabled": true,
"defaultAIModel": {"model": "llama"}
};
expect(sm.toJson(), expectedResult);
});
@@ -59,6 +61,7 @@ void main() {
"workspaceFolderPath": null,
"isSSLDisabled": true,
"isDashBotEnabled": true,
"defaultAIModel": {"model": "llama"}
};
expect(SettingsModel.fromJson(input), sm);
});
@@ -77,6 +80,7 @@ void main() {
historyRetentionPeriod: HistoryRetentionPeriod.oneWeek,
isSSLDisabled: false,
isDashBotEnabled: false,
defaultAIModel: {"model": "llama"},
);
expect(
sm.copyWith(
@@ -104,7 +108,10 @@ void main() {
"historyRetentionPeriod": "oneWeek",
"workspaceFolderPath": null,
"isSSLDisabled": true,
"isDashBotEnabled": true
"isDashBotEnabled": true,
"defaultAIModel": {
"model": "llama"
}
}''';
expect(sm.toString(), expectedResult);
});