diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 20492a1b4..38b5eed95 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 8ffc49eed..1f60031b6 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -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" diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index b36379a0e..6181c602b 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -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", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index c28581ad6..2ad9dc2a3 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -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": [ diff --git a/gui/src/components/dialogs/KeyboardShortcuts.tsx b/gui/src/components/dialogs/KeyboardShortcuts.tsx index b7a2ae0d2..243ae2fce 100644 --- a/gui/src/components/dialogs/KeyboardShortcuts.tsx +++ b/gui/src/components/dialogs/KeyboardShortcuts.tsx @@ -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[] = [ diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index 620a95e0c..a78da4b6b 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -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 ? ( diff --git a/gui/src/util/modelData.ts b/gui/src/util/modelData.ts index bda3cfc3d..02f802ee6 100644 --- a/gui/src/util/modelData.ts +++ b/gui/src/util/modelData.ts @@ -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, }, diff --git a/server/continuedev/libs/llm/base.py b/server/continuedev/libs/llm/base.py index 854efc403..c72d8052f 100644 --- a/server/continuedev/libs/llm/base.py +++ b/server/continuedev/libs/llm/base.py @@ -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, ) diff --git a/server/continuedev/server/protocols/gui.py b/server/continuedev/server/protocols/gui.py index 6d8f73fcb..6ca543bcd 100644 --- a/server/continuedev/server/protocols/gui.py +++ b/server/continuedev/server/protocols/gui.py @@ -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"]]