Skip to content

Commit d48819b

Browse files
committed
feat: add support for env vars
1 parent 285717d commit d48819b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/providers/collection_providers.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,8 @@ class CollectionStateNotifier
353353
final terminal = ref.read(terminalStateProvider.notifier);
354354
final logId = terminal.startNetwork(
355355
apiType: executionRequestModel.apiType,
356-
method: (executionRequestModel.apiType == APIType.ai)
357-
? executionRequestModel.aiRequestModel!.httpRequestModel!.method
358-
: executionRequestModel.httpRequestModel!.method,
359-
url: (executionRequestModel.apiType == APIType.ai)
360-
? executionRequestModel.aiRequestModel!.httpRequestModel!.url
361-
: executionRequestModel.httpRequestModel!.url,
356+
method: substitutedHttpRequestModel.method,
357+
url: substitutedHttpRequestModel.url,
362358
requestId: requestId,
363359
requestHeaders: substitutedHttpRequestModel.enabledHeadersMap,
364360
requestBodyPreview: substitutedHttpRequestModel.body,

0 commit comments

Comments
 (0)