diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index 32574e446..cb308d903 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -34,10 +34,26 @@ Type '@terminal' to reference the contents of your IDE's terminal. ### Open Files -Type '@open' to reference the contents of all of your open files. +Type '@open' to reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. ```json -{ "name": "open" } +{ "name": "open", "params": { "onlyPinned": true } } +``` + +### Codebase Retrieval + +Type '@codebase' to automatically retrieve the most relevant snippets from your codebase. Read more about indexing and retrieval [here](../walkthroughs/codebase-embeddings.md). + +```json +{ "name": "codebase" } +``` + +### Folders + +Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a single folder. + +```json +{ "name": "folder" } ``` ### Exact Search @@ -48,17 +64,6 @@ Type '@search' to reference the results of codebase search, just like the result { "name": "search" } ``` -### URLs - -Type '@url' and then enter the URL you want to include in the input prompt that appears. The text contents of the page will be fetched and used as context. - -```json -{ - "name": "url", - "params": { "presetUrls": ["https://continue.dev/docs/customization"] } -} -``` - ### File Tree Type '@tree' to reference the structure of your current workspace. The LLM will be able to see the nested directory structure of your project. diff --git a/docs/docs/customization/overview.md b/docs/docs/customization/overview.md index 76a5c2f53..f4eaf7b33 100644 --- a/docs/docs/customization/overview.md +++ b/docs/docs/customization/overview.md @@ -11,6 +11,6 @@ Continue can be deeply customized by editing `~/.continue/config.json` (`%userpr Currently, you can customize the following: - [Models](../model-setup/select-model.md) and [providers](../model-setup/select-provider.md) -- [Context Providers](./context-providers.md) - Just type '@' to easily add attachments to your prompt. Define which sources you want to easily reference, including GitHub Issues, terminal output, and preset URLs. +- [Context Providers](./context-providers.md) - Type '@' to easily add attachments to your prompt. Define which sources you want to reference, including GitHub Issues, terminal output, or automatically retrieved snippets from your codebase. - [Slash Commands](./slash-commands.md) - Call custom prompts or programs written with our SDK by typing `/`. - [Other Configuration](./other-configuration.md) - Configure other settings like the system message and temperature. diff --git a/docs/docs/customization/slash-commands.md b/docs/docs/customization/slash-commands.md index a046635a7..da8ac0d43 100644 --- a/docs/docs/customization/slash-commands.md +++ b/docs/docs/customization/slash-commands.md @@ -6,14 +6,112 @@ keywords: [slash command, custom commands, step] # Slash Commands -Slash commands are shortcuts that can be activated by prefacing your input with '/'. For example, the built-in '/edit' slash command let you stream edits directly into your editor. +Slash commands are shortcuts that can be activated by typing '/' and selecting from the dropdown. For example, the built-in '/edit' slash command let you stream edits directly into your editor. + +![slash-commands](/img/slash-commands.png) + +## Built-in Slash Commands + +To use any of the built-in slash commands, open `~/.continue/config.json` and add it to the `slashCommands` list. + +### `/edit` + +Select code with ctrl/cmd + M (VS Code) or ctrl/cmd + J (JetBrains), and then type "/edit", followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor. + +```json +{ + "name": "edit", + "description": "Edit highlighted code" +} +``` + +### `/comment` + +Comment works just like /edit, except it will automatically prompt the LLM to comment the code. + +```json +{ + "name": "comment", + "description": "Write comments for the highlighted code" +} +``` + +### `/share` + +Type "/share" to generate a shareable markdown transcript of your current chat history. + +```json +{ + "name": "share", + "description": "Download and share this session" +} +``` + +### `/cmd` + +Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal. + +```json +{ + "name": "cmd", + "description": "Generate a shell command" +} +``` + +### `/commit` + +Shows the LLM your current git diff and asks it to generate a commit message. + +```json +{ + "name": "commit", + "description": "Generate a commit message for the current changes" +} +``` + +### `/http` + +Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic [FastAPI example](https://github.com/continuedev/continue/blob/74002369a5e435735b83278fb965e004ae38a97d/core/context/providers/context_provider_server.py#L34-L45) for reference. + +```json +{ + "name": "http", + "description": "Does something custom", + "params": { "url": "" } +} +``` + +### `/issue` + +Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for. + +```json +{ + "name": "issue", + "description": "Generate a link to a drafted GitHub issue", + "params": { "repositoryUrl": "https://github.com/continuedev/continue" } +} +``` + +### `/so` + +The StackOverflow slash command will automatically pull results from StackOverflow to answer your question, quoting links along with its answer. + +```json +{ + "name": "so", + "description": "Reference StackOverflow to answer the question" +} +``` + +## Custom Slash Commands There are two ways to add custom slash commands: 1. With natural language prompts - this is simpler and only requires writing a string or string template. 2. With a custom function - this gives you full access to the Continue SDK and allows you to write arbitrary Typescript code. -## "Custom Commands" (Use Natural Language) +### "Custom Commands" (Use Natural Language) You can add custom slash commands by adding to the `customCommands` property in `config.json`. @@ -31,7 +129,7 @@ customCommands=[{ }] ``` -## Custom Slash Commands +### Custom Slash Commands If you want to go a step further than writing custom commands with natural language, you can write a custom function that returns the response. This requires using `config.ts` instead of `config.json`. diff --git a/docs/docs/model-setup/overview.md b/docs/docs/model-setup/overview.md index 8338da363..b1daabc6a 100644 --- a/docs/docs/model-setup/overview.md +++ b/docs/docs/model-setup/overview.md @@ -1,18 +1,20 @@ # Overview -Continue is the easiest way to code with any [Large Language Model (LLM)](https://www.youtube.com/watch?v=zjkBMFhNj_g). You can use it with commercial models like GPT-4 via the OpenAI API, open-source models running on your laptop with Ollama like Code Llama, and everything in between. You have the ability to configure what model you use, what provider you use, and how you use them. +Continue is the easiest way to code with any [Large Language Model (LLM)](https://www.youtube.com/watch?v=zjkBMFhNj_g). You can use it with commercial models like GPT-4 via the OpenAI API, open-source models like CodeLlama running on your laptop with Ollama, and everything in between. -When you first install Continue, you can try it out for free using a proxy server that securely makes calls with our API key to models like GPT-4, Gemini Pro, and Phind CodeLlama via OpenAI, Google, and Together respectively. +When you first install Continue, you can try it out for free using a proxy server that securely makes calls with our API keys to models like GPT-4, Gemini Pro, and Phind CodeLlama via OpenAI, Google, and Together respectively. Once you're ready to use your own API key or a different model / provider, press the `+` button in the bottom left to add a new model to your `config.json`. If you are unsure what model or provider to use, here is a rule of thumb: + - Use GPT-4 via OpenAI if you want the best possible model overall right now - Use X via Together if you want the best open-source model right now - Use X via Ollama if you want to run a model locally on Mac or Linux - Use X via LM Studio if you want to run a model locally on Windows Learn more: + - [Select a provider](select-provider.md) - [Select a model](select-model.md) -- [Configuration](configuration.md) \ No newline at end of file +- [Configuration](configuration.md) diff --git a/docs/docs/model-setup/select-model.md b/docs/docs/model-setup/select-model.md index 1501ffe28..db3ae9787 100644 --- a/docs/docs/model-setup/select-model.md +++ b/docs/docs/model-setup/select-model.md @@ -13,6 +13,7 @@ Continue makes it easy to swap out different LLMs. You can either click the "+" ## Open-source LLMs The default models available in the GUI: + - [Code Llama-Instruct-7B](https://github.com/continuedev/what-llm-to-use/blob/main/README.md#1-code-llama) - [Code Llama-Instruct-13B](https://github.com/continuedev/what-llm-to-use/blob/main/README.md#1-code-llama) - [Code Llama-Instruct-34B](https://github.com/continuedev/what-llm-to-use/blob/main/README.md#1-code-llama) @@ -32,15 +33,16 @@ The default models available in the GUI: - [Zephyr-7B](https://huggingface.co/huggingfaceh4/zephyr-7b-beta) - [Neural-Chat-7B](https://huggingface.co/Intel/neural-chat-7b-v3-3) -**You can also use other open-source models**, but you will need to manually add them to your `config.json`. +**You can also use other open-source models**, you just need to manually add them to your `config.json`. ## Commercial LLMs Models available for configuration in the GUI: + - [GPT-4](https://github.com/continuedev/what-llm-to-use/blob/main/README.md#1-gpt-4) - [GPT-4-Turbo](https://github.com/continuedev/what-llm-to-use/blob/main/README.md#2-gpt-4-turbo) - [GPT-3.5-Turbo](https://github.com/continuedev/what-llm-to-use/blob/main/README.md#3-gpt-35-turbo) - [Claude-2](https://github.com/continuedev/what-llm-to-use/blob/main/README.md#4-claude-2) - [Gemini Pro](https://github.com/continuedev/what-llm-to-use/blob/main/README.md#5-palm-2) -**You can also use other commercial models**, but you will need to manually add them to your `config.json`. \ No newline at end of file +**You can also use other commercial models**, you just need to manually add them to your `config.json`. diff --git a/docs/docs/model-setup/select-provider.md b/docs/docs/model-setup/select-provider.md index 98d9cc38d..85f166e1c 100644 --- a/docs/docs/model-setup/select-provider.md +++ b/docs/docs/model-setup/select-provider.md @@ -33,7 +33,7 @@ You can deploy a model in your [AWS](https://github.com/continuedev/deploy-os-co - [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot) - [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API) -If the API you use is OpenAI-compatible, you will be able to use the "openai" provider in `config.json` and change the `apiBase` to point to the server. Otherwise, you will need to wire up a new LLM object in `config.ts`. Learn how to do this [here](configuration.md#defining-a-custom-llm-provider) +If the API you use is OpenAI-compatible, you will be able to use the "openai" provider in `config.json` and change the `apiBase` to point to the server. Otherwise, you may need to wire up a new LLM object in `config.ts`. Learn how to do this [here](configuration.md#defining-a-custom-llm-provider) ## SaaS @@ -56,4 +56,4 @@ You can use commercial LLMs via APIs using: - [Anthrophic API](../reference/Model%20Providers/anthropicllm.md) - [Google PaLM API](../reference/Model%20Providers/googlepalmapi.md) - [OpenAI free trial](../reference/Model%20Providers/freetrial.md) -- [Mistral API](../reference/Model%20Providers/mistral.md) \ No newline at end of file +- [Mistral API](../reference/Model%20Providers/mistral.md) diff --git a/docs/docs/quickstart.md b/docs/docs/quickstart.md index cfcb4eb3a..b1c9f3728 100644 --- a/docs/docs/quickstart.md +++ b/docs/docs/quickstart.md @@ -6,12 +6,28 @@ keywords: [quickstart, start, install, vscode, jetbrains] # ⚡️ Quickstart +## VS Code + 1. Click `Install` on the **[Continue extension in the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)** 2. This will open the Continue extension page in VS Code, where you will need to click `Install` again -3. Once you do this, you will see the Continue logo show up on the left side bar. If you click it, then the Continue extension will then open up: +3. Once you do this, you will see the Continue logo show up on the left side bar. If you click it, the Continue extension will open up: -![vscode-install](/img/continue-screenshot.png) +> We strongly recommend moving Continue to VS Code's right sidebar. This helps keep the file explorer open while using Continue, and the sidebar can be toggled with a simple keyboard shortcut. ![move-to-right-sidebar](/img/move-to-right-sidebar.png) 4. If you have any problems, see the [troubleshooting guide](./troubleshooting.md) or ask for help in [our Discord](https://discord.gg/NWtdYexhMs). + +## JetBrains + +1. Open your JetBrains IDE and open settings using `cmd/ctrl + shift + ,`. + +2. Select **Plugins** on the sidebar. + +3. Search for "Continue" in the marketplace and click `Install`. Once installed you'll see Continue show up on the right toolbar: + +![jetbrains-quickstart](/img/jetbrains-quickstart.png) + +4. If you have any problems, see the [troubleshooting guide](./troubleshooting.md) or ask for help in [our Discord](https://discord.gg/NWtdYexhMs). + +> Alternatively, you can install from disk after downloading from the [JetBrains Extension Marketplace](https://plugins.jetbrains.com/plugin/22707-continue-extension). diff --git a/docs/docs/reference/Context Providers/diffcontextprovider.md b/docs/docs/reference/Context Providers/diffcontextprovider.md deleted file mode 100644 index c2f4f4328..000000000 --- a/docs/docs/reference/Context Providers/diffcontextprovider.md +++ /dev/null @@ -1,21 +0,0 @@ -import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; - -# DiffContextProvider - -Type '@diff' to reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. - -[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/plugins/context_providers/diff.py) - -## Properties - - - - -### Inherited Properties - - - - - - - diff --git a/docs/docs/reference/Context Providers/filecontextprovider.md b/docs/docs/reference/Context Providers/filecontextprovider.md deleted file mode 100644 index 289ad7b76..000000000 --- a/docs/docs/reference/Context Providers/filecontextprovider.md +++ /dev/null @@ -1,20 +0,0 @@ -import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; - -# FileContextProvider - -The FileContextProvider is a ContextProvider that allows you to search files in the open workspace. - -[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/plugins/context_providers/file.py) - -## Properties - - - -### Inherited Properties - - - - - - - diff --git a/docs/docs/reference/Context Providers/filetreecontextprovider.md b/docs/docs/reference/Context Providers/filetreecontextprovider.md deleted file mode 100644 index 97367dec1..000000000 --- a/docs/docs/reference/Context Providers/filetreecontextprovider.md +++ /dev/null @@ -1,21 +0,0 @@ -import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; - -# FileTreeContextProvider - -Type '@tree' to reference the contents of your current workspace. The LLM will be able to see the nested directory structure of your project. - -[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/plugins/context_providers/filetree.py) - -## Properties - - - - -### Inherited Properties - - - - - - - diff --git a/docs/docs/reference/Context Providers/githubissuescontextprovider.md b/docs/docs/reference/Context Providers/githubissuescontextprovider.md deleted file mode 100644 index c97f9f40a..000000000 --- a/docs/docs/reference/Context Providers/githubissuescontextprovider.md +++ /dev/null @@ -1,22 +0,0 @@ -import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; - -# GitHubIssuesContextProvider - -The GitHubIssuesContextProvider is a ContextProvider that allows you to search GitHub issues in a repo. Type '@issue' to reference the title and contents of an issue. - -[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/plugins/context_providers/github.py) - -## Properties - - - - - -### Inherited Properties - - - - - - - diff --git a/docs/docs/reference/Context Providers/googlecontextprovider.md b/docs/docs/reference/Context Providers/googlecontextprovider.md deleted file mode 100644 index 4299608a5..000000000 --- a/docs/docs/reference/Context Providers/googlecontextprovider.md +++ /dev/null @@ -1,21 +0,0 @@ -import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; - -# GoogleContextProvider - -Type '@google' to reference the results of a Google search. For example, type "@google python tutorial" if you want to search and discuss ways of learning Python. - -[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/plugins/context_providers/google.py) - -## Properties - - - - -### Inherited Properties - - - - - - - diff --git a/docs/docs/reference/Context Providers/searchcontextprovider.md b/docs/docs/reference/Context Providers/searchcontextprovider.md deleted file mode 100644 index 3c2f00685..000000000 --- a/docs/docs/reference/Context Providers/searchcontextprovider.md +++ /dev/null @@ -1,21 +0,0 @@ -import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; - -# SearchContextProvider - -Type '@search' to reference the results of codebase search, just like the results you would get from VS Code search. - -[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/plugins/context_providers/search.py) - -## Properties - - - - -### Inherited Properties - - - - - - - diff --git a/docs/docs/reference/Context Providers/terminalcontextprovider.md b/docs/docs/reference/Context Providers/terminalcontextprovider.md deleted file mode 100644 index 9909a0ad3..000000000 --- a/docs/docs/reference/Context Providers/terminalcontextprovider.md +++ /dev/null @@ -1,21 +0,0 @@ -import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; - -# TerminalContextProvider - -Type '@terminal' to reference the contents of your IDE's terminal. - -[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/plugins/context_providers/terminal.py) - -## Properties - - - - -### Inherited Properties - - - - - - - diff --git a/docs/docs/reference/Context Providers/urlcontextprovider.md b/docs/docs/reference/Context Providers/urlcontextprovider.md deleted file mode 100644 index d1af1e0e1..000000000 --- a/docs/docs/reference/Context Providers/urlcontextprovider.md +++ /dev/null @@ -1,22 +0,0 @@ -import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; - -# URLContextProvider - -Type '@url' to reference the contents of a URL. You can either reference preset URLs, or reference one dynamically by typing '@url https://example.com'. The text contents of the page will be fetched and used as context. - -[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/plugins/context_providers/url.py) - -## Properties - - - - - -### Inherited Properties - - - - - - - diff --git a/docs/docs/reference/config.md b/docs/docs/reference/config.md index ea3ab4627..664f93b90 100644 --- a/docs/docs/reference/config.md +++ b/docs/docs/reference/config.md @@ -5,18 +5,3 @@ import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; [View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/core/config.py) ## Properties - - - - - - - - - - - - - - - diff --git a/docs/docs/telemetry.md b/docs/docs/telemetry.md index f06694d79..b09d83479 100644 --- a/docs/docs/telemetry.md +++ b/docs/docs/telemetry.md @@ -8,16 +8,15 @@ keywords: [telemetry, anonymous, usage info, opt out] ## Overview -Continue collects and reports **anonymous** usage information. This data is essential to understanding how we should improve the library. You can opt out of it at any time. We use [Posthog](https://posthog.com/), an open source platform for product analytics, to collect and store the data. You can review the code [here](https://github.com/continuedev/continue/tree/main/server/continuedev/libs/util/telemetry.py). +Continue collects and reports **anonymous** usage information. This data is essential to understanding how we should improve the product. You can opt out of it at any time. We use [Posthog](https://posthog.com/), an open source platform for product analytics, to collect and store the data. You can review the code [here](https://github.com/continuedev/continue/blob/main/gui/src/hooks/CustomPostHogProvider.tsx). ## What we track We track -- the steps that are run and their parameters - whether you accept or reject suggestions (not the code itself) -- the traceback when an error occurs -- the name of your OS +- the name of slash commands that are run +- the name of your OS and IDE - the name of the default model you configured All data is anonymous and cleaned of PII before being sent to PostHog. @@ -33,4 +32,4 @@ The `~/.continue` directory contains a `config.json` file that looks like this: } ``` -You can turn off anonymous telemetry by changing the value of `allowAnonymousTelemetry` to `false`. +You can turn off anonymous telemetry by changing the value of `allowAnonymousTelemetry` to `false`. Alternatively, you can uncheck the "Continue: Telemetry Enabled" box in VS Code settings. diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index b5bbeda53..02c3f46a1 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -18,13 +18,17 @@ To solve many problems, the first step is reading the logs to find the relevant 4. Select the `Console` tab 5. Read the console logs -## Download a Newer Version (VS Code) +## Download a Newer Version If you are using an older version of the Continue extension, particularly one which depends on the separate Python server, we would recommend downloading the latest version of the extension, as we are constantly making bug fixes and are likely to have solved any major issues. -## Download an Older Version (VS Code) +## Download an Older Version -If you've tried everything, reported an error, know that a previous version was working for you, and are waiting to hear back, you can try downloading an older version of the extension. All versions are hosted on the Open VSX Registry [here](https://open-vsx.org/extension/Continue/continue). Once you've downloaded the extension, which will be a .vsix file, you can install it manually by following the instructions [here](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix). +If you've tried everything, reported an error, know that a previous version was working for you, and are waiting to hear back, you can try downloading an older version of the extension. + +For VS Code, All versions are hosted on the Open VSX Registry [here](https://open-vsx.org/extension/Continue/continue). Once you've downloaded the extension, which will be a .vsix file, you can install it manually by following the instructions [here](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix). + +You can find older versions of the JetBrains extension on their [marketplace](https://plugins.jetbrains.com/plugin/22707-continue), which will walk you through installing from disk. ## Still having trouble? diff --git a/docs/docs/walkthroughs/codebase-embeddings.md b/docs/docs/walkthroughs/codebase-embeddings.md index 2eec7e8a2..78ddc089c 100644 --- a/docs/docs/walkthroughs/codebase-embeddings.md +++ b/docs/docs/walkthroughs/codebase-embeddings.md @@ -73,6 +73,8 @@ We also support other methods of generating embeddings, which can be configured ### OpenAI +OpenAI's [ada-002 embeddings](https://platform.openai.com/docs/guides/embeddings) are high dimensional embeddings that give great performance on both text and code. + ```json title="~/.continue/config.json" { "embeddingsProvider": { diff --git a/docs/docs/walkthroughs/config-file-migration.md b/docs/docs/walkthroughs/config-file-migration.md index 2b9f24598..9aea69edd 100644 --- a/docs/docs/walkthroughs/config-file-migration.md +++ b/docs/docs/walkthroughs/config-file-migration.md @@ -16,29 +16,28 @@ If you need any help migrating, please reach out to us on Discord. > Continue has moved to using Typescript configuration. To learn about this, please see [Configuration as Code](../customization/code-config.md). -For configuration that requires code, we now provide a simpler interface that works alongside config.json. In the same folder, `~/.continue`, create a file named `config.py` (the same name as before) and add a function called `modify_config`. This function should take a [`ContinueConfig`](https://github.com/continuedev/continue/blob/main/server/continuedev/core/config.py) object as its only argument, and return a `ContinueConfig` object. This object is essentially the same as the one that was previously defined in `config.py`. This allows you to modify the initial configuration object defined in your `config.json`. Here's an example that cuts the temperature in half: +For configuration that requires code, we now provide a simpler interface that works alongside config.json. In the same folder, `~/.continue`, create a file named `config.ts` and add a function called `modifyConfig`. This function should take a `Config` object as its only argument, and return a `Config` object. This object is essentially the same as the one that was previously defined in `config.py`. This allows you to modify the initial configuration object defined in your `config.json`. Here's an example that cuts the temperature in half: -```python -from continuedev.core.config import ContinueConfig - -def modify_config(config: ContinueConfig) -> ContinueConfig: - config.completion_options.temperature /= 2 - return config +```typescript +function modifyConfig(config: Config): Config { + config.completionOptions.temperature /= 2; + return config; +} ``` To summarize, these are the steps taken to load your configuration: 1. Load `~/.continue/config.json` -2. Convert this into a `ContinueConfig` object -3. If `~/.continue/config.py` exists and has defined `modify_config` correctly, call `modify_config` with the `ContinueConfig` object to generate the final configuration +2. Convert this into a `Config` object +3. If `~/.continue/config.ts` exists and has defined `modifyConfig` correctly, call `modifyConfig` with the `Config` object to generate the final configuration ## List of Changes -### `completion_options` +### `completionOptions` -The properties `top_p`, `top_k`, `temperature`, `presence_penalty`, and `frequency_penalty` have been moved into a single object called `completion_options`. It can be specified at the top level of the config or within a `models` object. +The properties `topP`, `topK`, `temperature`, `presencePenalty`, and `frequencyPenalty` have been moved into a single object called `completionOptions`. It can be specified at the top level of the config or within a `models` object. -### `request_options` +### `requestOptions` The properties `timeout`, `verify_ssl`, `ca_bundle_path`, `proxy`, and `headers` have been moved into a single object called `request_options`, which can be specified for each `models` object. diff --git a/docs/docs/walkthroughs/running-continue-without-internet.md b/docs/docs/walkthroughs/running-continue-without-internet.md index 7843973bd..d460e6700 100644 --- a/docs/docs/walkthroughs/running-continue-without-internet.md +++ b/docs/docs/walkthroughs/running-continue-without-internet.md @@ -6,7 +6,7 @@ keywords: [no internet, air-gapped, local model] # Running Continue without Internet -Continue can be run even on an air-gapped computer if you use a local model. You'll have to make a few adjustments for this to work. +Continue can be run even on an air-gapped computer if you use a local model. Only a few adjustments are required for this to work. 1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix). 2. Open `~/.continue/config.json` and set `"allowAnonymousTelemetry": false`. This will stop Continue from attempting requests to PostHog. diff --git a/docs/sidebars.js b/docs/sidebars.js index cf5d41e84..a03ec5ad4 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -47,10 +47,10 @@ const sidebars = { collapsible: true, collapsed: true, items: [ - "walkthroughs/codellama", + // "walkthroughs/codellama", "walkthroughs/running-continue-without-internet", "walkthroughs/codebase-embeddings", - "walkthroughs/config-file-migration", + // "walkthroughs/config-file-migration", ], }, "development-data", diff --git a/docs/static/img/jetbrains-quickstart.png b/docs/static/img/jetbrains-quickstart.png new file mode 100644 index 000000000..bc82d5e33 Binary files /dev/null and b/docs/static/img/jetbrains-quickstart.png differ diff --git a/docs/static/img/move-to-right-sidebar.png b/docs/static/img/move-to-right-sidebar.png new file mode 100644 index 000000000..c5ef6c440 Binary files /dev/null and b/docs/static/img/move-to-right-sidebar.png differ diff --git a/docs/static/img/slash-commands.png b/docs/static/img/slash-commands.png new file mode 100644 index 000000000..400f3d9fa Binary files /dev/null and b/docs/static/img/slash-commands.png differ diff --git a/gui/src/hooks/useChatHandler.ts b/gui/src/hooks/useChatHandler.ts index c8981437d..d9e4b1195 100644 --- a/gui/src/hooks/useChatHandler.ts +++ b/gui/src/hooks/useChatHandler.ts @@ -203,6 +203,12 @@ function useChatHandler(dispatch: Dispatch) { await _streamNormalInput(messages); } else { const [slashCommand, commandInput] = commandAndInput; + posthog.capture("step run", { + step_name: slashCommand.name, + params: { + user_input: commandInput, + }, + }); await _streamSlashCommand(messages, slashCommand, commandInput); } } catch (e) {