From c9afae5bd7280be0b8242421021e39d8b452637a Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Mon, 6 May 2024 08:31:02 +0700 Subject: [PATCH] fix: set default option --- src/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.js b/src/client.js index 514a8df..d429d54 100644 --- a/src/client.js +++ b/src/client.js @@ -271,7 +271,7 @@ class MistralClient { safePrompt, toolChoice, responseFormat, - }, {signal}) { + }, {signal} = {}) { const request = this._makeChatCompletionRequest( model, messages, @@ -334,7 +334,7 @@ class MistralClient { safePrompt, toolChoice, responseFormat, - }, {signal}) { + }, {signal} = {}) { const request = this._makeChatCompletionRequest( model, messages,