mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 10:17:47 +08:00
Streaming Option added to AI Request Configurations
This commit is contained in:
@@ -339,7 +339,12 @@ class CollectionStateNotifier
|
||||
|
||||
if (apiType == APIType.ai) {
|
||||
aiRequestModel = requestModel.aiRequestModel!;
|
||||
final genAIRequest = aiRequestModel.createRequest();
|
||||
|
||||
final streamingMode = aiRequestModel.payload
|
||||
.configMap[LLMConfigName.stream.name]?.configValue.value ??
|
||||
false;
|
||||
|
||||
final genAIRequest = aiRequestModel.createRequest(stream: streamingMode);
|
||||
substitutedHttpRequestModel = getSubstitutedHttpRequestModel(
|
||||
HttpRequestModel(
|
||||
method: HTTPVerb.post,
|
||||
|
||||
Reference in New Issue
Block a user