Merge branch 'preview'
This commit is contained in:
commit
5cd12844f8
9 changed files with 32 additions and 60 deletions
20
.github/workflows/main.yaml
vendored
20
.github/workflows/main.yaml
vendored
|
|
@ -276,17 +276,17 @@ jobs:
|
|||
npx ovsx publish -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-ia32/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix
|
||||
|
||||
# 3.5 Update the changelog
|
||||
- name: Batch a new patch version
|
||||
uses: miniscruff/changie-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: batch patch
|
||||
# - name: Batch a new patch version
|
||||
# uses: miniscruff/changie-action@v2
|
||||
# with:
|
||||
# version: latest
|
||||
# args: batch patch
|
||||
|
||||
- name: Merge changelog
|
||||
uses: miniscruff/changie-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: merge
|
||||
# - name: Merge changelog
|
||||
# uses: miniscruff/changie-action@v2
|
||||
# with:
|
||||
# version: latest
|
||||
# args: merge
|
||||
|
||||
# 4. Update the package.json version and push changes
|
||||
- name: Update version in package.json
|
||||
|
|
|
|||
41
.github/workflows/preview.yaml
vendored
41
.github/workflows/preview.yaml
vendored
|
|
@ -322,44 +322,3 @@ jobs:
|
|||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
|
||||
# 5. Download binaries and upload to S3
|
||||
- name: Download Linux build
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: LinuxBinary
|
||||
path: exe/linux
|
||||
|
||||
- name: Download macOS build
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: macOSBinary
|
||||
path: exe/mac
|
||||
|
||||
- name: Download Windows build
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: WindowsBinary
|
||||
path: exe/windows
|
||||
|
||||
- name: Upload binaries to S3 (s3.continue.dev)
|
||||
uses: jakejarvis/s3-sync-action@master
|
||||
with:
|
||||
args: --acl public-read --follow-symlinks
|
||||
env:
|
||||
AWS_S3_BUCKET: s3.continue.dev
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_REGION: "us-west-1"
|
||||
SOURCE_DIR: "exe"
|
||||
|
||||
- name: Upload binaries to S3 (continue-server-binaries)
|
||||
uses: jakejarvis/s3-sync-action@master
|
||||
with:
|
||||
args: --acl public-read --follow-symlinks
|
||||
env:
|
||||
AWS_S3_BUCKET: continue-server-binaries
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_REGION: "us-west-1"
|
||||
SOURCE_DIR: "exe"
|
||||
|
|
|
|||
4
extensions/vscode/package-lock.json
generated
4
extensions/vscode/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.6.1",
|
||||
"version": "0.7.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.6.1",
|
||||
"version": "0.7.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@electron/rebuild": "^3.2.10",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"icon": "media/icon.png",
|
||||
"version": "0.6.1",
|
||||
"version": "0.7.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/continuedev/continue"
|
||||
|
|
@ -170,7 +170,8 @@
|
|||
{
|
||||
"command": "continue.toggleFullScreen",
|
||||
"mac": "cmd+k cmd+m",
|
||||
"key": "ctrl+k ctrl+m"
|
||||
"key": "ctrl+k ctrl+m",
|
||||
"when": "!terminalFocus"
|
||||
}
|
||||
],
|
||||
"submenus": [
|
||||
|
|
|
|||
|
|
@ -110,6 +110,11 @@ const vscodeShortcuts: KeyboardShortcutProps[] = [
|
|||
windows: "Tab",
|
||||
description: "Toggle between context items",
|
||||
},
|
||||
{
|
||||
mac: "⌘ K ⌘ M",
|
||||
windows: "⌃ K ⌃ M",
|
||||
description: "Toggle Full Screen",
|
||||
},
|
||||
];
|
||||
|
||||
const jetbrainsShortcuts: KeyboardShortcutProps[] = [
|
||||
|
|
|
|||
|
|
@ -586,7 +586,7 @@ function GUI(props: GUIProps) {
|
|||
onClick={() => {
|
||||
postToIde("toggleFullScreen", {});
|
||||
}}
|
||||
text={`Toggle Full Screen (${getMetaKeyLabel()}K M)`}
|
||||
text={`Toggle Full Screen (${getMetaKeyLabel()}K ${getMetaKeyLabel()}M)`}
|
||||
>
|
||||
{(window as any).isFullScreen ? (
|
||||
<ArrowsPointingInIcon width="1.4em" height="1.4em" />
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ enum EditPromptTemplates {
|
|||
enum ChatTemplates {
|
||||
"alpaca" = "template_alpaca_messages",
|
||||
"llama2" = "llama2_template_messages",
|
||||
"phind" = "phind_template_messages",
|
||||
"sqlcoder" = "sqlcoder_template_messages",
|
||||
"None" = "None",
|
||||
}
|
||||
|
|
@ -282,7 +283,7 @@ const phindCodeLlama: ModelPackage = {
|
|||
title: "Phind CodeLlama",
|
||||
model: "phind-codellama",
|
||||
context_length: 2048,
|
||||
template_messages: ChatTemplates.llama2,
|
||||
template_messages: ChatTemplates.phind,
|
||||
prompt_templates: {
|
||||
edit: EditPromptTemplates.codellama,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -82,6 +82,9 @@ class LLM(ContinueBaseModel):
|
|||
2048,
|
||||
description="The maximum context length of the LLM in tokens, as counted by count_tokens.",
|
||||
)
|
||||
max_tokens: int = Field(
|
||||
DEFAULT_MAX_TOKENS, description="The maximum number of tokens to generate."
|
||||
)
|
||||
|
||||
stop_tokens: Optional[List[str]] = Field(
|
||||
None, description="Tokens that will stop the completion."
|
||||
|
|
@ -148,6 +151,7 @@ class LLM(ContinueBaseModel):
|
|||
"context_length": {
|
||||
"description": "The maximum context length of the LLM in tokens, as counted by count_tokens."
|
||||
},
|
||||
"max_tokens": {"description": "The maximum number of tokens to generate."},
|
||||
"unique_id": {"description": "The unique ID of the user."},
|
||||
"model": {
|
||||
"description": "The name of the model to be used (e.g. gpt-4, codellama)"
|
||||
|
|
@ -345,7 +349,7 @@ Settings:
|
|||
presence_penalty=presence_penalty or self.presence_penalty,
|
||||
frequency_penalty=frequency_penalty or self.frequency_penalty,
|
||||
stop=stop or self.stop_tokens,
|
||||
max_tokens=max_tokens,
|
||||
max_tokens=max_tokens or self.max_tokens,
|
||||
functions=functions,
|
||||
)
|
||||
|
||||
|
|
@ -393,7 +397,7 @@ Settings:
|
|||
presence_penalty=presence_penalty or self.presence_penalty,
|
||||
frequency_penalty=frequency_penalty or self.frequency_penalty,
|
||||
stop=stop or self.stop_tokens,
|
||||
max_tokens=max_tokens,
|
||||
max_tokens=max_tokens or self.max_tokens,
|
||||
functions=functions,
|
||||
)
|
||||
|
||||
|
|
@ -439,7 +443,7 @@ Settings:
|
|||
presence_penalty=presence_penalty or self.presence_penalty,
|
||||
frequency_penalty=frequency_penalty or self.frequency_penalty,
|
||||
stop=stop or self.stop_tokens,
|
||||
max_tokens=max_tokens,
|
||||
max_tokens=max_tokens or self.max_tokens,
|
||||
functions=functions,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ from ...libs.llm.prompts.chat import (
|
|||
llama2_template_messages,
|
||||
sqlcoder_template_messages,
|
||||
template_alpaca_messages,
|
||||
phind_template_messages
|
||||
)
|
||||
from ...libs.llm.prompts.edit import codellama_edit_prompt, alpaca_edit_prompt
|
||||
from ...libs.util.create_async_task import create_async_task
|
||||
|
|
@ -234,6 +235,7 @@ class GUIProtocolServer:
|
|||
model["template_messages"] = {
|
||||
"llama2_template_messages": llama2_template_messages,
|
||||
"template_alpaca_messages": template_alpaca_messages,
|
||||
"phind_template_messages": phind_template_messages,
|
||||
"sqlcoder_template_messages": sqtm,
|
||||
"None": None,
|
||||
}[model["template_messages"]]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue