Merge branch 'continuedev:main' into bedrock-cohere-embeddings
This commit is contained in:
commit
fd7326f5e0
22 changed files with 55 additions and 78 deletions
12
.changes/extensions/vscode/0.8.53.md
Normal file
12
.changes/extensions/vscode/0.8.53.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
## 0.8.53 - 2024-10-11
|
||||
### Added
|
||||
* Improved loading/accept/reject UI for apply
|
||||
* Polished chat sidebar, especially context dropdown
|
||||
* Further prompt caching with Anthropic
|
||||
### Changed
|
||||
* Updated tutorial file
|
||||
* Improved styling on "More" page
|
||||
### Fixed
|
||||
* Continue for teams auth bug fix
|
||||
* Fixed a number of apply bugs
|
||||
* Fixed autoscrolling behavior
|
||||
3
.changes/extensions/vscode/0.8.54.md
Normal file
3
.changes/extensions/vscode/0.8.54.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
## 0.8.54 - 2024-10-15
|
||||
### Fixed
|
||||
* Hotfix: throttle transformers.js embeddings provider
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
## 0.9.210 - 2024-09-15
|
||||
|
||||
### Added
|
||||
|
||||
- NVIDIA NIMs embeddings provider
|
||||
- SambaNova LLM Provider
|
||||
- Support for OpenAI's new o1-preview and o1-mini models
|
||||
|
||||
### Changed
|
||||
|
||||
- Use Chromium only as a fallback after asking user
|
||||
|
||||
### Fixed
|
||||
|
||||
- Increased default maxTokens, and autodetect for common models
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Added
|
||||
body: Improved loading/accept/reject UI for apply
|
||||
time: 2024-09-27T14:29:40.283176-07:00
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Added
|
||||
body: Polished chat sidebar, especially context dropdown
|
||||
time: 2024-09-27T14:30:05.576347-07:00
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Added
|
||||
body: Further prompt caching with Anthropic
|
||||
time: 2024-09-29T09:56:27.946259-07:00
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Changed
|
||||
body: Updated tutorial file
|
||||
time: 2024-09-23T16:03:02.944462-07:00
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Changed
|
||||
body: Improved styling on "More" page
|
||||
time: 2024-09-29T09:54:07.999324-07:00
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Fixed
|
||||
body: Continue for teams auth bug fix
|
||||
time: 2024-09-19T21:11:12.997946-07:00
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Fixed
|
||||
body: Fixed a number of apply bugs
|
||||
time: 2024-09-27T14:29:24.69568-07:00
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Fixed
|
||||
body: Fixed autoscrolling behavior
|
||||
time: 2024-09-29T09:55:25.835696-07:00
|
||||
|
|
@ -62,4 +62,4 @@ Check out the [contribution ideas board](https://github.com/orgs/continuedev/pro
|
|||
|
||||
## License
|
||||
|
||||
[Apache 2.0 © 2023-2024 Continue Dev, Inc.](./LICENSE)
|
||||
[Apache 2.0 © 2023 Continue Dev, Inc.](./LICENSE)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class EmbeddingsPipeline {
|
|||
|
||||
export class TransformersJsEmbeddingsProvider extends BaseEmbeddingsProvider {
|
||||
static providerName: EmbeddingsProviderName = "transformers.js";
|
||||
static maxGroupSize: number = 4;
|
||||
static maxGroupSize: number = 1;
|
||||
static model: string = "all-MiniLM-L6-v2";
|
||||
static mockVector: number[] = Array.from({ length: 384 }).fill(2) as number[];
|
||||
|
||||
|
|
@ -79,6 +79,8 @@ export class TransformersJsEmbeddingsProvider extends BaseEmbeddingsProvider {
|
|||
pooling: "mean",
|
||||
normalize: true,
|
||||
});
|
||||
// To avoid causing the extension host to go unresponsive
|
||||
await new Promise((resolve) => setTimeout(resolve, 10));
|
||||
outputs.push(...output.tolist());
|
||||
}
|
||||
return outputs;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = {
|
|||
recentLinePrefixMatchMinLength: 7,
|
||||
disableInFiles: undefined,
|
||||
useImports: true,
|
||||
useRootPathContext: true,
|
||||
useRootPathContext: false,
|
||||
};
|
||||
|
||||
export const COUNT_COMPLETION_REJECTED_AFTER = 10_000;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||

|
||||
|
||||
|
|
@ -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"
|
||||
[
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ In Continue, reranking is used by [@Codebase](../deep-dives/codebase.md) in orde
|
|||
|
||||
## Recommended reranking models
|
||||
|
||||
If you have the ability to use any model, we recommend `rerank-1` by Voyage AI, which is listed below along with the rest of the options for rerankers.
|
||||
If you have the ability to use any model, we recommend `rerank-2` by Voyage AI, which is listed below along with the rest of the options for rerankers.
|
||||
|
||||
### Voyage AI
|
||||
|
||||
Voyage AI offers the best reranking model for code with their `rerank-1` model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this:
|
||||
Voyage AI offers the best reranking model for code with their `rerank-2` model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
|
|
|
|||
|
|
@ -40,7 +40,9 @@ If you're getting a response from the LLM that doesn't seem to make sense, you c
|
|||
|
||||
### JetBrains
|
||||
|
||||
Open `~/.continue/logs/core.log`. The most recent logs are found at the bottom of the file.
|
||||
Open `~/.continue/logs/core.log` to view the logs for the Continue plugin. The most recent logs are found at the bottom of the file.
|
||||
|
||||
Some JetBrains-related logs may also be found by clicking "Help" > "Show Log in Explorer/Finder".
|
||||
|
||||
## Download the latest pre-release
|
||||
|
||||
|
|
@ -124,7 +126,7 @@ This can be accomplished using the following command: `Continue: Rebuild codebas
|
|||
|
||||
### Android Studio - "Nothing to show" in Chat
|
||||
|
||||
This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/2280#issuecomment-2365231567) for details.
|
||||
This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/596#issuecomment-1789327178) for details.
|
||||
|
||||
## Still having trouble?
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,11 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
|||
and is generated by [Changie](https://github.com/miniscruff/changie).
|
||||
|
||||
|
||||
Pre-release Changes
|
||||
## 0.8.54 - 2024-10-15
|
||||
### Fixed
|
||||
* Hotfix: throttle transformers.js embeddings provider
|
||||
|
||||
## 0.8.53 - 2024-10-11
|
||||
### Added
|
||||
* Improved loading/accept/reject UI for apply
|
||||
* Polished chat sidebar, especially context dropdown
|
||||
|
|
@ -18,22 +22,6 @@ Pre-release Changes
|
|||
* Fixed a number of apply bugs
|
||||
* Fixed autoscrolling behavior
|
||||
|
||||
## 0.9.210 - 2024-09-15
|
||||
|
||||
### Added
|
||||
|
||||
- NVIDIA NIMs embeddings provider
|
||||
- SambaNova LLM Provider
|
||||
- Support for OpenAI's new o1-preview and o1-mini models
|
||||
|
||||
### Changed
|
||||
|
||||
- Use Chromium only as a fallback after asking user
|
||||
|
||||
### Fixed
|
||||
|
||||
- Increased default maxTokens, and autodetect for common models
|
||||
|
||||
## 0.8.52 - 2024-09-16
|
||||
### Changed
|
||||
* Use Chromium only as a fallback after asking user
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "continue",
|
||||
"icon": "media/icon.png",
|
||||
"author": "Continue Dev, Inc",
|
||||
"version": "0.9.214",
|
||||
"version": "0.8.54",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/continuedev/continue"
|
||||
|
|
|
|||
|
|
@ -167,8 +167,19 @@ function TipTapEditor(props: TipTapEditorProps) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Find the position of the last @ character
|
||||
// We do this because editor.getText() isn't a correct representation including node views
|
||||
let startPos = editor.state.selection.anchor;
|
||||
while (
|
||||
startPos > 0 &&
|
||||
editor.state.doc.textBetween(startPos, startPos + 1) !== "@"
|
||||
) {
|
||||
startPos--;
|
||||
}
|
||||
startPos++;
|
||||
|
||||
editor.commands.deleteRange({
|
||||
from: indexOfAt + 2,
|
||||
from: startPos,
|
||||
to: editor.state.selection.anchor,
|
||||
});
|
||||
inSubmenuRef.current = providerId;
|
||||
|
|
|
|||
|
|
@ -245,7 +245,10 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) {
|
|||
|
||||
return (
|
||||
<ToolbarDiv>
|
||||
<div className="flex items-center gap-1 cursor-pointer max-w-[50%]">
|
||||
<div
|
||||
className="flex items-center gap-1 cursor-pointer max-w-[50%]"
|
||||
onClick={onClickHeader}
|
||||
>
|
||||
<FileIcon height="20px" width="20px" filename={props.filepath} />
|
||||
<span className="truncate">{getBasename(props.filepath)}</span>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue