From e24e67e374fb353bec6a4f06aa5502f7714c849f Mon Sep 17 00:00:00 2001 From: Mipam Guillot Date: Thu, 15 Aug 2024 18:04:18 +0200 Subject: [PATCH] fix(typo): typo in responseFormat for NodeJs --- docs/capabilities/json-mode.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/capabilities/json-mode.mdx b/docs/capabilities/json-mode.mdx index 45d6652..b4f72a1 100644 --- a/docs/capabilities/json-mode.mdx +++ b/docs/capabilities/json-mode.mdx @@ -63,7 +63,7 @@ const mistral = new Mistral({apiKey: apiKey}); const chatResponse = await mistral.chat.complete({ model: "mistral-large-latest", messages: [{role: 'user', content: 'What is the best French meal? Return the name and the ingredients in JSON format.'}], - response_format: {type: 'json_object'}, + responseFormat: {type: 'json_object'}, } );