From 31a95fab2a6b56b1db71231483f599567a67a1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Bub=C3=A1n?= <43829749+Mahrkeenerh@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:42:09 +0200 Subject: [PATCH 01/11] Fix install link --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1496503b1..597256325 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ ## Getting Started -Learn about how to install and use Continue in the docs [here](https://continue.dev/docs/getting-started) +Learn about how to install and use Continue in the docs [here](https://continue.dev/docs/getting-started/install) ## Contributing @@ -62,4 +62,4 @@ Check out the [contribution ideas board](https://github.com/orgs/continuedev/pro ## License -[Apache 2.0 © 2023 Continue Dev, Inc.](./LICENSE) \ No newline at end of file +[Apache 2.0 © 2023 Continue Dev, Inc.](./LICENSE) From 0529ae8e1e4f61d83f2a4c43c9b9d23a84192ec9 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 16:08:52 -0700 Subject: [PATCH 02/11] fix: broken schema config --- docs/static/schemas/config.json | 15 ++++++--------- .../src/main/resources/config_schema.json | 15 ++++++--------- extensions/vscode/config_schema.json | 15 ++++++--------- extensions/vscode/continue_rc_schema.json | 15 ++++++--------- 4 files changed, 24 insertions(+), 36 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index cbf47d4b4..911278ebb 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -2476,13 +2476,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2545,12 +2548,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index cbf47d4b4..911278ebb 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -2476,13 +2476,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2545,12 +2548,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index cbf47d4b4..911278ebb 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -2476,13 +2476,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2545,12 +2548,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 58453fc5c..101296fe6 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -2782,13 +2782,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2864,12 +2867,6 @@ "markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json." } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } \ No newline at end of file From 7e5cd9d69f5f33e562d31b51868e9d929872be2f Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 14:49:55 -0700 Subject: [PATCH 03/11] Create auto-assign.yaml --- .github/workflows/auto-assign.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/auto-assign.yaml diff --git a/.github/workflows/auto-assign.yaml b/.github/workflows/auto-assign.yaml new file mode 100644 index 000000000..d252f52a2 --- /dev/null +++ b/.github/workflows/auto-assign.yaml @@ -0,0 +1,19 @@ +name: Issue assignment + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + auto-assign: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: "Auto-assign issue" + uses: pozil/auto-assign-issue@v2 + with: + assignees: sestinj,Patrick-Erichsen + numOfAssignee: 1 From 7705833adea0792d40dbe181dc22fc37d5ae72a1 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 14:53:41 -0700 Subject: [PATCH 04/11] Update auto-assign.yaml --- .github/workflows/auto-assign.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/auto-assign.yaml b/.github/workflows/auto-assign.yaml index d252f52a2..1dd452dae 100644 --- a/.github/workflows/auto-assign.yaml +++ b/.github/workflows/auto-assign.yaml @@ -15,5 +15,6 @@ jobs: - name: "Auto-assign issue" uses: pozil/auto-assign-issue@v2 with: + repo-token: ${{ secrets.CI_GITHUB_TOKEN }} assignees: sestinj,Patrick-Erichsen numOfAssignee: 1 From bccb178c8f84b4078e60c5c871d492802b6868cf Mon Sep 17 00:00:00 2001 From: Steve Rhoades Date: Sun, 22 Sep 2024 17:34:17 -0700 Subject: [PATCH 05/11] Fixes #2349 custom code rag instructions --- docs/docs/customize/tutorials/custom-code-rag.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/customize/tutorials/custom-code-rag.md b/docs/docs/customize/tutorials/custom-code-rag.md index 5ae55ebd4..993da23be 100644 --- a/docs/docs/customize/tutorials/custom-code-rag.md +++ b/docs/docs/customize/tutorials/custom-code-rag.md @@ -37,6 +37,7 @@ With LanceDB, we can do steps 2 and 3 simultaneously, as demonstrated [in their ```python from lancedb.pydantic import LanceModel, Vector from lancedb.embeddings import get_registry +from typing import List db = lancedb.connect("/tmp/db") func = get_registry().get("openai").create( @@ -48,7 +49,7 @@ func = get_registry().get("openai").create( class CodeChunks(LanceModel): filename: str text: str = func.SourceField() - vector: Vector(func.ndims()) = func.VectorField() + vector: List[float] = func.VectorField() table = db.create_table("code_chunks", schema=CodeChunks, mode="overwrite") table.add([ From 0387721222475af4aaf38ad329fad3fd43a76229 Mon Sep 17 00:00:00 2001 From: Steve Rhoades Date: Sun, 22 Sep 2024 17:34:17 -0700 Subject: [PATCH 06/11] Fixes #2349 correct documentation --- docs/docs/customize/tutorials/custom-code-rag.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/customize/tutorials/custom-code-rag.md b/docs/docs/customize/tutorials/custom-code-rag.md index 993da23be..6793a8277 100644 --- a/docs/docs/customize/tutorials/custom-code-rag.md +++ b/docs/docs/customize/tutorials/custom-code-rag.md @@ -37,7 +37,6 @@ With LanceDB, we can do steps 2 and 3 simultaneously, as demonstrated [in their ```python from lancedb.pydantic import LanceModel, Vector from lancedb.embeddings import get_registry -from typing import List db = lancedb.connect("/tmp/db") func = get_registry().get("openai").create( @@ -49,7 +48,8 @@ func = get_registry().get("openai").create( class CodeChunks(LanceModel): filename: str text: str = func.SourceField() - vector: List[float] = func.VectorField() + # 1536 is the embedding dimension of the `voyage-code-2` model. + vector: Vector(1536) = func.VectorField() table = db.create_table("code_chunks", schema=CodeChunks, mode="overwrite") table.add([ From 1a6670691aeda7edd71a34c6136ad4fb35ba8caa Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 29 Sep 2024 13:04:44 -0700 Subject: [PATCH 07/11] bump vscode version --- extensions/vscode/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 1118d1b4b..b9765f2a8 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.8.52", + "version": "0.8.53", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 588d38f96627ead4aa89635e1e8694cb92aeb1e5 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 6 Oct 2024 14:29:23 -0700 Subject: [PATCH 08/11] update control plane proxy URL --- core/control-plane/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/control-plane/client.ts b/core/control-plane/client.ts index 25ae3e962..acfe82cc9 100644 --- a/core/control-plane/client.ts +++ b/core/control-plane/client.ts @@ -21,7 +21,8 @@ export interface ControlPlaneModelDescription extends ModelDescription {} export const DEFAULT_CONTROL_PLANE_PROXY_URL = process.env.CONTROL_PLANE_ENV === "local" ? "http://localhost:3001/" - : "https://control-plane-proxy.continue.dev/"; + : "https://control-plane-api-service-i3dqylpbqa-uc.a.run.app/"; +// : "https://control-plane-proxy.continue.dev/"; export const CONTROL_PLANE_URL = process.env.CONTROL_PLANE_ENV === "local" From fda992366cad53726501c8ca837ffeb6e5205da5 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 3 Oct 2024 17:55:16 +0200 Subject: [PATCH 09/11] fix ollama fim --- core/llm/llms/Ollama.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index 3b16d0456..f9f3ccd72 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -15,6 +15,8 @@ class Ollama extends BaseLLM { model: "codellama-7b", }; + private fimSupported: boolean = false; + constructor(options: LLMOptions) { super(options); @@ -70,6 +72,13 @@ class Ollama extends BaseLLM { } } } + + /** + * There is no API to get the model's FIM capabilities, so we have to + * make an educated guess. If a ".Suffix" variable appears in the template + * it's a good indication the model supports FIM. + */ + this.fimSupported = !!body?.template?.includes(".Suffix"); }) .catch((e) => { // console.warn("Error calling the Ollama /api/show endpoint: ", e); @@ -251,7 +260,7 @@ class Ollama extends BaseLLM { } supportsFim(): boolean { - return true; + return this.fimSupported; } protected async *_streamFim( From 5730b84b639f40eec2935c9e806bff2022947c84 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 6 Oct 2024 14:31:55 -0700 Subject: [PATCH 10/11] fix typo in context-providers.md --- docs/docs/customize/context-providers.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index 2b3224543..2b8779661 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -6,7 +6,7 @@ keywords: [context, "@", provider, LLM] Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider. -As an example, say you are working on solving a new GitHub Issue. You type '@Isse' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input. +As an example, say you are working on solving a new GitHub Issue. You type '@Issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input. ![Context Items](/img/context-provider-example.png) @@ -200,7 +200,7 @@ For example, type "@Google python tutorial" if you want to search and discuss wa Note: You can get an API key for free at [serper.dev](https://serper.dev). -### `@Isse` +### `@Issue` Reference the conversation in a GitHub issue. @@ -451,7 +451,7 @@ The HttpContextProvider makes a POST request to the url passed in the configurat { "name": "http", "params": { - "url": "https://api.example.com/v1/users", + "url": "https://api.example.com/v1/users" } } ] @@ -459,6 +459,7 @@ The HttpContextProvider makes a POST request to the url passed in the configurat ``` The receiving URL should expect to receive the following parameters: + ```json title="POST parameters" { query: string, @@ -467,6 +468,7 @@ The receiving URL should expect to receive the following parameters: ``` The response 200 OK should be a JSON object with the following structure: + ```json title="Response" [ { From 592b8fe9a3fac1b3810b30daab4cf51581c4398f Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 6 Oct 2024 14:40:55 -0700 Subject: [PATCH 11/11] fix toolbar --- gui/src/components/markdown/CodeBlockToolbar.tsx | 5 ++++- gui/src/components/markdown/PreWithToolbar.tsx | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index d740a8cab..aecaa1b84 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -245,7 +245,10 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { return ( -
+
{getBasename(props.filepath)}
diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index 3f650740d..ec9297d54 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -2,7 +2,7 @@ import { debounce } from "lodash"; import { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import styled from "styled-components"; -import { defaultBorderRadius } from ".."; +import { defaultBorderRadius, vscEditorBackground } from ".."; import useUIConfig from "../../hooks/useUIConfig"; import { RootState } from "../../redux/store"; import CodeBlockToolBar from "./CodeBlockToolbar"; @@ -12,6 +12,7 @@ const TopDiv = styled.div` outline-offset: -0.5px; border-radius: ${defaultBorderRadius}; margin-bottom: 8px; + background-color: ${vscEditorBackground}; `; function childToText(child: any) {