From d1421194c1c36690700ef854c9383d37457b0cec Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 24 Feb 2025 10:02:07 -0800 Subject: [PATCH 1/4] remove debuggers --- gui/src/components/mainInput/handleMetaKeyIssues.ts | 1 - gui/src/redux/thunks/streamResponseAfterToolCall.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/gui/src/components/mainInput/handleMetaKeyIssues.ts b/gui/src/components/mainInput/handleMetaKeyIssues.ts index 2958f43fc..1adf5593a 100644 --- a/gui/src/components/mainInput/handleMetaKeyIssues.ts +++ b/gui/src/components/mainInput/handleMetaKeyIssues.ts @@ -37,7 +37,6 @@ export const handleJetBrainsOSRMetaKeyIssues = ( if (e.key in handlers) { e.stopPropagation(); - debugger; e.preventDefault(); handlers[e.key](); } diff --git a/gui/src/redux/thunks/streamResponseAfterToolCall.ts b/gui/src/redux/thunks/streamResponseAfterToolCall.ts index c6435382a..3eb11b249 100644 --- a/gui/src/redux/thunks/streamResponseAfterToolCall.ts +++ b/gui/src/redux/thunks/streamResponseAfterToolCall.ts @@ -43,7 +43,6 @@ export const streamResponseAfterToolCall = createAsyncThunk< content: renderContextItems(toolOutput), toolCallId, }; - debugger; dispatch(streamUpdate([newMessage])); dispatch( addContextItemsAtIndex({ From 198529aa9bef4d6aa39ac631779f5fd6b0c4b87c Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 25 Feb 2025 08:57:08 -0800 Subject: [PATCH 2/4] Give message to user instead of sending request if Anthropic API key not set --- core/llm/llms/Anthropic.ts | 6 ++++++ extensions/vscode/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index df527d579..dcd13d38e 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -145,6 +145,12 @@ class Anthropic extends BaseLLM { signal: AbortSignal, options: CompletionOptions, ): AsyncGenerator { + if (!this.apiKey || this.apiKey === "") { + throw new Error( + "Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.", + ); + } + const shouldCacheSystemMessage = !!this.systemMessage && this.cacheBehavior?.cacheSystemMessage; const systemMessage: string = stripImages( diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index f47393c21..4c87ea033 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.271", + "version": "0.9.272", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 75e0040738a1b2c5356cedb24e28cc3d0804337e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 25 Feb 2025 23:03:50 -0800 Subject: [PATCH 3/4] replace gemini 1.5 with 2.0 --- docs/docs/chat/model-setup.mdx | 2 +- .../customize/model-providers/top-level/gemini.mdx | 10 +++++----- docs/docs/customize/model-roles/chat.mdx | 14 +++++++------- .../current/chat/model-setup.mdx | 8 ++++---- .../current/customize/model-roles/chat.md | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/docs/chat/model-setup.mdx b/docs/docs/chat/model-setup.mdx index b0febe3a9..8608f5e1d 100644 --- a/docs/docs/chat/model-setup.mdx +++ b/docs/docs/chat/model-setup.mdx @@ -16,7 +16,7 @@ Other recommended chat models include: - [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o) - [Grok-2 from xAI](https://hub.continue.dev/xai/grok-2) -- [Gemini 1.5 Pro from Google](https://hub.continue.dev/google/gemini-1.5-pro) +- [Gemini 2.0 Flash from Google](https://hub.continue.dev/google/gemini-2.0-flash) - [Llama 3.1 8b from Meta on Ollama](https://hub.continue.dev/ollama/llama3.1-8b) for a fully local experience {/* HUB_TODO nonexistent blocks */} {/* - Deepseek Coder 2 from deepseek on [Ollama](https://hub.continue.dev/explore/models) or [LM Studio](https://hub.continue.dev/explore/models) */} diff --git a/docs/docs/customize/model-providers/top-level/gemini.mdx b/docs/docs/customize/model-providers/top-level/gemini.mdx index 2ccebf85d..5bde15a79 100644 --- a/docs/docs/customize/model-providers/top-level/gemini.mdx +++ b/docs/docs/customize/model-providers/top-level/gemini.mdx @@ -12,15 +12,15 @@ You can get an API key from the [Google AI Studio](https://aistudio.google.com/) ## Chat model -We recommend configuring **Gemini 1.5 Pro** as your chat model. +We recommend configuring **Gemini 2.0 Flash** as your chat model. ```yaml title="config.yaml" models: - - name: Gemini 1.5 Pro + - name: Gemini 2.0 Flash provider: gemini - model: gemini-1.5-pro-latest + model: gemini-2.0-flash apiKey: ``` @@ -29,9 +29,9 @@ We recommend configuring **Gemini 1.5 Pro** as your chat model. { "models": [ { - "title": "Gemini 1.5 Pro", + "title": "Gemini 2.0 Flash", "provider": "gemini", - "model": "gemini-1.5-pro-latest", + "model": "gemini-2.0-flash", "apiKey": "" } ] diff --git a/docs/docs/customize/model-roles/chat.mdx b/docs/docs/customize/model-roles/chat.mdx index 7e722f579..bccd10ef6 100644 --- a/docs/docs/customize/model-roles/chat.mdx +++ b/docs/docs/customize/model-roles/chat.mdx @@ -237,20 +237,20 @@ If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), t -### Gemini 1.5 Pro from Google +### Gemini 2.0 Flash from Google -If you prefer to use a model from [Google](../model-providers/top-level/gemini.mdx), then we recommend Gemini 1.5 Pro. +If you prefer to use a model from [Google](../model-providers/top-level/gemini.mdx), then we recommend Gemini 2.0 Flash. - Add the [Gemini 1.5 Pro block](https://hub.continue.dev/google/gemini-1.5-pro) from the hub + Add the [Gemini 2.0 Flash block](https://hub.continue.dev/google/gemini-2.0-flash) from the hub ```yaml title="config.yaml" models: - - name: Gemini 1.5 Pro + - name: Gemini 2.0 Flash provider: gemini - model: gemini-1.5-pro-latest + model: gemini-2.0-flash apiKey: ``` @@ -259,9 +259,9 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini.m { "models": [ { - "title": "Gemini 1.5 Pro", + "title": "Gemini 2.0 Flash", "provider": "gemini", - "model": "gemini-1.5-pro-latest", + "model": "gemini-2.0-flash", "apiKey": "" } ] diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/chat/model-setup.mdx b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/chat/model-setup.mdx index f4e844f5e..db863bf1c 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/chat/model-setup.mdx +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/chat/model-setup.mdx @@ -111,16 +111,16 @@ import Tabs from "@theme/Tabs"; ] ``` -### 来自 Google 的 Gemini 1.5 Pro +### 来自 Google 的 Gemini 2.0 Flash -如果你倾向于使用来自 [Google](../customize/model-providers/top-level/gemini.md) 的模型,那么我们推荐 Gemini 1.5 Pro 。 +如果你倾向于使用来自 [Google](../customize/model-providers/top-level/gemini.md) 的模型,那么我们推荐 Gemini 2.0 Flash。 ```json title="config.json" "models": [ { - "title": "Gemini 1.5 Pro", + "title": "Gemini 2.0 Flash", "provider": "gemini", - "model": "gemini-1.5-pro-latest", + "model": "gemini-2.0-flash", "apiKey": "[GEMINI_API_KEY]" } ] diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/chat.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/chat.md index c49051360..a294cfaa1 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/chat.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/chat.md @@ -14,5 +14,5 @@ sidebar_position: 2 否则,以下是一些最好的选择: - [GPT-4o](../model-providers/top-level/openai.md) -- [Gemini 1.5 Pro](../model-providers/top-level/gemini.md) +- [Gemini 2.0 Flash](../model-providers/top-level/gemini.md) - [Llama3.1 405B](../tutorials/llama3.1.md) From c7b3cf86995b2f76895d8382465a201daff9ba5a Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 25 Feb 2025 23:08:24 -0800 Subject: [PATCH 4/4] minor --- docs/docs/customize/model-roles/chat.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/customize/model-roles/chat.mdx b/docs/docs/customize/model-roles/chat.mdx index bccd10ef6..90b97e17c 100644 --- a/docs/docs/customize/model-roles/chat.mdx +++ b/docs/docs/customize/model-roles/chat.mdx @@ -20,7 +20,7 @@ For the best overall Chat experience, you will want to use a 400B+ parameter mod ### Claude Sonnet 3.5 from Anthropic -Our current top recommendation is Claude Sonnet 3.7 from [Anthropic](../model-providers/top-level/anthropic.mdx). +Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-providers/top-level/anthropic.mdx). @@ -29,9 +29,9 @@ Our current top recommendation is Claude Sonnet 3.7 from [Anthropic](../model-pr ```yaml title="config.yaml" models: - - name: Claude 3.5 Sonnet + - name: Claude 3.7 Sonnet provider: anthropic - model: claude-3-5-sonnet-latest + model: claude-3-7-sonnet-latest apiKey: ```