From 9a9b7baf15672ee03bbd5d153ce0591785d04bbb Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 16 May 2024 21:18:31 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20update=20free=20trial=20models?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/config/default.ts | 60 ++++++++++--------- core/config/onboarding.ts | 27 ++++----- core/llm/llms/FreeTrial.ts | 2 + docs/static/schemas/config.json | 6 +- .../src/main/resources/config_schema.json | 6 +- extensions/vscode/config_schema.json | 6 +- extensions/vscode/continue_rc_schema.json | 6 +- gui/src/util/modelData.ts | 3 +- 8 files changed, 60 insertions(+), 56 deletions(-) diff --git a/core/config/default.ts b/core/config/default.ts index 250be64ca..48aef4656 100644 --- a/core/config/default.ts +++ b/core/config/default.ts @@ -5,31 +5,32 @@ import { export const defaultConfig: SerializedContinueConfig = { models: [ + { + title: "GPT-4-Turbo (Free Trial)", + provider: "free-trial", + model: "gpt-4-turbo", + systemMessage: + "You are an expert software developer. You give helpful and concise responses.", + }, + { + title: "Llama3 70b (Free Trial)", + provider: "free-trial", + model: "llama3-70b", + systemMessage: + "You are an expert software developer. You give helpful and concise responses. Whenever you write a code block you include the language after the opening ticks.", + }, { title: "GPT-4o (Free Trial)", provider: "free-trial", model: "gpt-4o", + systemMessage: + "You are an expert software developer. You give helpful and concise responses.", }, { title: "Claude 3 Sonnet (Free Trial)", provider: "free-trial", model: "claude-3-sonnet-20240229", }, - { - title: "GPT-3.5-Turbo (Free Trial)", - provider: "free-trial", - model: "gpt-3.5-turbo", - }, - { - title: "Gemini Pro (Free Trial)", - provider: "free-trial", - model: "gemini-pro", - }, - { - title: "Mixtral (Free Trial)", - provider: "free-trial", - model: "mistral-8x7b", - }, ], customCommands: [ { @@ -49,29 +50,30 @@ export const defaultConfig: SerializedContinueConfig = { export const defaultConfigJetBrains: SerializedContinueConfig = { models: [ { - title: "Claude 3 Sonnet (Free Trial)", + title: "GPT-4-Turbo (Free Trial)", provider: "free-trial", - model: "claude-3-sonnet-20240229", + model: "gpt-4-turbo", + systemMessage: + "You are an expert software developer. You give helpful and concise responses.", + }, + { + title: "Llama3 70b (Free Trial)", + provider: "free-trial", + model: "llama3-70b", + systemMessage: + "You are an expert software developer. You give helpful and concise responses. Whenever you write a code block you include the language after the opening ticks.", }, { title: "GPT-4o (Free Trial)", provider: "free-trial", model: "gpt-4o", + systemMessage: + "You are an expert software developer. You give helpful and concise responses.", }, { - title: "GPT-3.5-Turbo (Free Trial)", + title: "Claude 3 Sonnet (Free Trial)", provider: "free-trial", - model: "gpt-3.5-turbo", - }, - { - title: "Gemini Pro (Free Trial)", - provider: "free-trial", - model: "gemini-pro", - }, - { - title: "Mixtral (Free Trial)", - provider: "free-trial", - model: "mistral-8x7b", + model: "claude-3-sonnet-20240229", }, ], customCommands: [ diff --git a/core/config/onboarding.ts b/core/config/onboarding.ts index eb6a7cc45..f709d4d9c 100644 --- a/core/config/onboarding.ts +++ b/core/config/onboarding.ts @@ -7,9 +7,18 @@ export function setupOptimizedMode( ...config, models: [ { - title: "Claude 3 Sonnet (Free Trial)", + title: "GPT-4-Turbo (Free Trial)", provider: "free-trial", - model: "claude-3-sonnet-20240229", + model: "gpt-4-turbo", + systemMessage: + "You are an expert software developer. You give helpful and concise responses.", + }, + { + title: "Llama3 70b (Free Trial)", + provider: "free-trial", + model: "llama3-70b", + systemMessage: + "You are an expert software developer. You give helpful and concise responses. Whenever you write a code block you include the language after the opening ticks.", }, { title: "GPT-4o (Free Trial)", @@ -19,19 +28,9 @@ export function setupOptimizedMode( "You are an expert software developer. You give helpful and concise responses.", }, { - title: "GPT-3.5-Turbo (Free Trial)", + title: "Claude 3 Sonnet (Free Trial)", provider: "free-trial", - model: "gpt-3.5-turbo", - }, - { - title: "Gemini Pro (Free Trial)", - provider: "free-trial", - model: "gemini-pro", - }, - { - title: "Mixtral (Free Trial)", - provider: "free-trial", - model: "mistral-8x7b", + model: "claude-3-sonnet-20240229", }, ], tabAutocompleteModel: { diff --git a/core/llm/llms/FreeTrial.ts b/core/llm/llms/FreeTrial.ts index edaf7b6f1..683a873c3 100644 --- a/core/llm/llms/FreeTrial.ts +++ b/core/llm/llms/FreeTrial.ts @@ -93,8 +93,10 @@ class FreeTrial extends BaseLLM { async listModels(): Promise { return [ + "llama3-70b", "gpt-3.5-turbo", "gpt-4o", + "gpt-4-turbo", "gemini-1.5-pro-latest", "claude-3-opus-20240229", "claude-3-sonnet-20240229", diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 79de0a453..ba1c66c5c 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -438,12 +438,12 @@ "properties": { "model": { "enum": [ + "gpt-4-turbo", + "gpt-4o", + "llama3-70b", "gpt-3.5-turbo", - "gpt-4", "phind-codellama-34b", "gemini-pro", - "gpt-4-vision-preview", - "codellama-70b", "mistral-8x7b", "claude-3-opus-20240229", "claude-3-sonnet-20240229", diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 79de0a453..ba1c66c5c 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -438,12 +438,12 @@ "properties": { "model": { "enum": [ + "gpt-4-turbo", + "gpt-4o", + "llama3-70b", "gpt-3.5-turbo", - "gpt-4", "phind-codellama-34b", "gemini-pro", - "gpt-4-vision-preview", - "codellama-70b", "mistral-8x7b", "claude-3-opus-20240229", "claude-3-sonnet-20240229", diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 79de0a453..ba1c66c5c 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -438,12 +438,12 @@ "properties": { "model": { "enum": [ + "gpt-4-turbo", + "gpt-4o", + "llama3-70b", "gpt-3.5-turbo", - "gpt-4", "phind-codellama-34b", "gemini-pro", - "gpt-4-vision-preview", - "codellama-70b", "mistral-8x7b", "claude-3-opus-20240229", "claude-3-sonnet-20240229", diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index a7aa8150e..e26669615 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -474,12 +474,12 @@ "properties": { "model": { "enum": [ + "gpt-4-turbo", + "gpt-4o", + "llama3-70b", "gpt-3.5-turbo", - "gpt-4", "phind-codellama-34b", "gemini-pro", - "gpt-4-vision-preview", - "codellama-70b", "mistral-8x7b", "claude-3-opus-20240229", "claude-3-sonnet-20240229", diff --git a/gui/src/util/modelData.ts b/gui/src/util/modelData.ts index a7797bec7..a554a715e 100644 --- a/gui/src/util/modelData.ts +++ b/gui/src/util/modelData.ts @@ -546,7 +546,7 @@ const gpt4turbo: ModelPackage = { contextLength: 128_000, title: "GPT-4 Turbo", }, - providerOptions: ["openai"], + providerOptions: ["openai", "freetrial"], icon: "openai.png", }; @@ -1039,6 +1039,7 @@ After it's up and running, you can start using Continue.`, { ...claude3Haiku, title: "Claude 3 Haiku (trial)" }, { ...gemini15Pro, title: "Gemini 1.5 Pro (trial)" }, { ...gpt4o, title: "GPT-4o (trial)" }, + { ...gpt4turbo, title: "GPT-4-Turbo (trial)" }, { ...gpt35turbo, title: "GPT-3.5-Turbo (trial)" }, { ...AUTODETECT,