From e3a41ae71c3edfbbfc2b613dedbb1edbd14f41c1 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Dec 2023 10:35:13 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20don't=20falsely=20show=20errors?= =?UTF-8?q?=20in=20config.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/config_schema.json | 207 ++++++++++++++------------- 1 file changed, 107 insertions(+), 100 deletions(-) diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 082bc9fee..f42ac71af 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -218,31 +218,7 @@ "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-1106-preview", - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-1b", - "deepseek-7b", - "deepseek-33b", - "gemini-pro" - ] + "description": "Choose a provider first, then model options will be shown here." } } } @@ -339,14 +315,20 @@ "then": { "properties": { "model": { - "enum": [ - "codellama-7b", - "codellama-13b", - "codellama-34b", - "llama2-7b", - "llama2-13b" + "anyOf": [ + { + "enum": [ + "codellama-7b", + "codellama-13b", + "codellama-34b", + "llama2-7b", + "llama2-13b" + ] + }, + { "type": "string" } ] - } + }, + "description": "Select a pre-defined option, or find an exact model ID from Replicate [here](https://replicate.com/collections/streaming-language-models)." } } }, @@ -384,29 +366,34 @@ "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-1106-preview", - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-1b", - "deepseek-7b", - "deepseek-33b" + "anyOf": [ + { + "enum": [ + "gpt-3.5-turbo", + "gpt-3.5-turbo-16k", + "gpt-4", + "gpt-3.5-turbo-0613", + "gpt-4-32k", + "gpt-4-1106-preview", + "mistral-7b", + "mistral-8x7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-1b", + "deepseek-7b", + "deepseek-33b" + ] + }, + { "type": "string" } ] } } @@ -424,7 +411,10 @@ "then": { "properties": { "model": { - "enum": ["claude-2"] + "anyOf": [ + { "enum": ["claude-2", "claude-instant-1"] }, + { "type": "string" } + ] } } } @@ -458,16 +448,22 @@ "then": { "properties": { "model": { - "enum": [ - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "phind-codellama-34b" - ] + "anyOf": [ + { + "enum": [ + "mistral-7b", + "mistral-8x7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "phind-codellama-34b" + ] + }, + { "type": "string" } + ], + "description": "Select a pre-defined option, or find an exact model string from Together AI [here](https://docs.together.ai/docs/inference-models)." } } } @@ -490,23 +486,28 @@ "then": { "properties": { "model": { - "enum": [ - "mistral-7b", - "mistral-8x7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-1b", - "deepseek-7b", - "deepseek-33b" + "anyOf": [ + { + "enum": [ + "mistral-7b", + "mistral-8x7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-1b", + "deepseek-7b", + "deepseek-33b" + ] + }, + { "type": "string" } ] } } @@ -524,23 +525,29 @@ "then": { "properties": { "model": { - "enum": [ - "mistral-7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-1b", - "deepseek-7b", - "deepseek-33b" - ] + "anyOf": [ + { + "enum": [ + "mistral-7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-1b", + "deepseek-7b", + "deepseek-33b" + ] + }, + { "type": "string" } + ], + "description": "Select a pre-defined option, or find the exact model tag for an Ollama model [here](https://ollama.ai/library)." } } }