Merge branch 'preview' of https://github.com/continuedev/continue into preview

This commit is contained in:
Nate Sesti 2024-03-04 12:10:27 -08:00
commit 75ce843845
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ function cleanFragment(fragment: string | undefined): string | undefined {
}
// Remove all special characters except alphanumeric, hyphen, space, and underscore
fragment = fragment.replace(/[^\w\d-\s]/g, "").trim();
fragment = fragment.replace(/[^\w-\s]/g, "").trim();
// Convert to lowercase
fragment = fragment.toLowerCase();
@ -43,7 +43,7 @@ function cleanHeader(header: string | undefined): string | undefined {
}
// Remove all special characters except alphanumeric, hyphen, space, and underscore
header = header.replace(/[^\w\d-\s]/g, "").trim();
header = header.replace(/[^\w-\s]/g, "").trim();
return header;
}

View file

@ -4,7 +4,7 @@ import BaseEmbeddingsProvider from "./BaseEmbeddingsProvider";
class OpenAIEmbeddingsProvider extends BaseEmbeddingsProvider {
static defaultOptions: Partial<EmbedOptions> | undefined = {
apiBase: "https://api.openai.com/v1",
model: "text-embedding-3-large",
model: "text-embedding-3-small",
};
get id(): string {

View file

@ -98,7 +98,7 @@ We also support other methods of generating embeddings, which can be configured
OpenAI's [embeddings](https://platform.openai.com/docs/guides/embeddings) are high dimensional embeddings that give great performance on both text and code.
Configuration for text-embedding-3-small Model
Configuration for text-embedding-3-small Model. This is default.
The text-embedding-3-small model offers an outstanding balance between performance and efficiency, suitable for a versatile range of applications.
```json title="~/.continue/config.json"