diff --git a/source/library/services/Xai/XaiRequest.js b/source/library/services/Xai/XaiRequest.js index ea9b8722..710aba18 100644 --- a/source/library/services/Xai/XaiRequest.js +++ b/source/library/services/Xai/XaiRequest.js @@ -76,6 +76,7 @@ curl https://api.x.ai/v1/chat/completions \ init () { super.init(); this.setIsDebugging(true); + this.setIsStreaming(true); } /** diff --git a/source/library/services/Xai/XaiService.js b/source/library/services/Xai/XaiService.js index bb556c9b..9d222488 100644 --- a/source/library/services/Xai/XaiService.js +++ b/source/library/services/Xai/XaiService.js @@ -95,6 +95,7 @@ * @category Request Handling */ prepareToSendRequest (aRequest) { + /* const bodyJson = aRequest.bodyJson(); let messages = bodyJson.messages; @@ -139,6 +140,7 @@ if (mergedMessageCount) { //console.log("XaiService.prepareToSendRequest() merged " + mergedMessageCount + " messages"); } + */ return this; }