Implemented AnswerTab for AI Output

This commit is contained in:
Manas Hejmadi
2025-06-10 01:00:26 +05:30
parent 452020f720
commit 2c756df2c4
5 changed files with 47 additions and 10 deletions

View File

@@ -141,6 +141,7 @@ class CollectionStateNotifier
final rId = id ?? ref.read(selectedIdStateProvider);
if (rId == null || state?[rId] == null) return;
var currentModel = state![rId]!;
final newModel = currentModel.copyWith(
responseStatus: null,
message: null,
@@ -328,7 +329,7 @@ class CollectionStateNotifier
method: HTTPVerb.post,
headers: [
...genAIRequest.headers.entries.map(
(x) => NameValueModel.fromJson({x.key: x.value}),
(x) => NameValueModel(name: x.key, value: x.value),
),
],
url: genAIRequest.endpoint,