From bb838f15468314ce3504e702cfb6894bc0edc208 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 13 Mar 2024 13:08:07 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20update=20config=20json=20schemas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/static/schemas/config.json | 25 ++++++++++++------- .../src/main/resources/config_schema.json | 25 ++++++++++++------- extensions/vscode/continue_rc_schema.json | 25 ++++++++++++------- 3 files changed, 48 insertions(+), 27 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 62102a4e8..7734d7cef 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -352,15 +352,22 @@ "then": { "properties": { "model": { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-0125-preview", - "gpt-4-turbo-preview", - "AUTODETECT" + "anyOf": [ + { + "enum": [ + "gpt-3.5-turbo", + "gpt-3.5-turbo-16k", + "gpt-4", + "gpt-3.5-turbo-0613", + "gpt-4-32k", + "gpt-4-0125-preview", + "gpt-4-turbo-preview", + "AUTODETECT" + ] + }, + { + "type": "string" + } ] } } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 62102a4e8..7734d7cef 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -352,15 +352,22 @@ "then": { "properties": { "model": { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-0125-preview", - "gpt-4-turbo-preview", - "AUTODETECT" + "anyOf": [ + { + "enum": [ + "gpt-3.5-turbo", + "gpt-3.5-turbo-16k", + "gpt-4", + "gpt-3.5-turbo-0613", + "gpt-4-32k", + "gpt-4-0125-preview", + "gpt-4-turbo-preview", + "AUTODETECT" + ] + }, + { + "type": "string" + } ] } } diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 556310fc0..996045153 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -380,15 +380,22 @@ "then": { "properties": { "model": { - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-0125-preview", - "gpt-4-turbo-preview", - "AUTODETECT" + "anyOf": [ + { + "enum": [ + "gpt-3.5-turbo", + "gpt-3.5-turbo-16k", + "gpt-4", + "gpt-3.5-turbo-0613", + "gpt-4-32k", + "gpt-4-0125-preview", + "gpt-4-turbo-preview", + "AUTODETECT" + ] + }, + { + "type": "string" + } ] } }