From d48819b78732a4b441005f039b26c0fc852f0e5e Mon Sep 17 00:00:00 2001 From: Udhay-Adithya Date: Sun, 21 Sep 2025 16:30:12 +0530 Subject: [PATCH] feat: add support for env vars --- lib/providers/collection_providers.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/providers/collection_providers.dart b/lib/providers/collection_providers.dart index 39d58828..83f97560 100644 --- a/lib/providers/collection_providers.dart +++ b/lib/providers/collection_providers.dart @@ -353,12 +353,8 @@ class CollectionStateNotifier final terminal = ref.read(terminalStateProvider.notifier); final logId = terminal.startNetwork( apiType: executionRequestModel.apiType, - method: (executionRequestModel.apiType == APIType.ai) - ? executionRequestModel.aiRequestModel!.httpRequestModel!.method - : executionRequestModel.httpRequestModel!.method, - url: (executionRequestModel.apiType == APIType.ai) - ? executionRequestModel.aiRequestModel!.httpRequestModel!.url - : executionRequestModel.httpRequestModel!.url, + method: substitutedHttpRequestModel.method, + url: substitutedHttpRequestModel.url, requestId: requestId, requestHeaders: substitutedHttpRequestModel.enabledHeadersMap, requestBodyPreview: substitutedHttpRequestModel.body,