mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 18:57:05 +08:00
Streaming Option added to AI Request Configurations
This commit is contained in:
@@ -30,9 +30,9 @@ class AIRequestModel with _$AIRequestModel {
|
||||
return AIRequestModel(payload: p, model: model, provider: provider);
|
||||
}
|
||||
|
||||
LLMRequestDetails createRequest() {
|
||||
LLMRequestDetails createRequest({bool stream = false}) {
|
||||
final controller = model.provider.modelController;
|
||||
return controller.createRequest(model, payload, stream: true);
|
||||
return controller.createRequest(model, payload, stream: stream);
|
||||
}
|
||||
|
||||
factory AIRequestModel.fromDefaultSaveObject(LLMSaveObject? defaultLLMSO) {
|
||||
|
||||
Reference in New Issue
Block a user