From d050b6c2cd1498dd66405bbfe7ef6c8a78ae785d Mon Sep 17 00:00:00 2001 From: lt Date: Tue, 17 Dec 2024 12:38:12 +0800 Subject: [PATCH] Update how-to-customize.md How to: Using New OpenAI Models (o1, o1-mini) --- docs/docs/edit/how-to-customize.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/docs/edit/how-to-customize.md b/docs/docs/edit/how-to-customize.md index aa9d464c71..5b05fcaf92 100644 --- a/docs/docs/edit/how-to-customize.md +++ b/docs/docs/edit/how-to-customize.md @@ -13,4 +13,22 @@ You can configure a particular model to be used for Edit using the `inlineEdit` "inlineEdit": "MODEL_TITLE", } } -``` \ No newline at end of file +``` + +Using New OpenAI Models (o1, o1-mini) +When you want to use OpenAI's new models such as o1 or o1-mini, you will need to adjust your config.json file. These new models do not support the old request parameters, which can lead to them being unusable if not properly configured. To ensure compatibility, please modify your config.json as follows: + +Original Configuration: +```json title="config.json" +"completionOptions": { + "temperature": 0, + "maTokens": 4096 +}, +``` +Updated Configuration: +```json title="config.json" +"completionOptions": { + "temperature": 1, + "maxCompletionTokens": 4096 +}, +```