Commit graph

1011 commits

Author SHA1 Message Date
maxxrdrgz
a3b5146374
Bugfix for /comment slash command which does nothing. (#1512)
* - fixed a bug where /comment doesn't actually do anything unless prompted to.
- if the user doesn't provide input after /comment, replace it with default /comment input found in comment.ts

* added comment for clarity
2024-06-18 18:43:20 -07:00
Peter Zaback
0e605857cd
Feat/gemini error handling (#1511)
* Verify response content exists before parsing

* Streamline response validation logic
2024-06-18 18:40:33 -07:00
Nate Sesti
4f8e907d05
Improved code linking (#1500)
* allow setting apiBase for bedrock provider

* ⚡️ better linking

* ✨ new prompt file action

* ⚡️ strip <COMPLETION> from GPT-4 completion
2024-06-16 19:54:32 -07:00
Ruben Kostandyan
53aab1e6fd
feat(core): add support for Llama models on Bedrock (#1499)
This commit adds support for streaming completions from Llama models alongside with Anthropic's Claude on Bedrock. Key changes:

- Introduce a `BedrockModelToolkit` interface to encapsulate model-specific logic for generating commands and unwrapping response chunks
- Implement `AnthropicClaude3Toolkit` for Claude model
- Implement `Llama3Toolkit` for Llama models
- Refactor `_streamChat` method to use the appropriate toolkit based on the selected model
- Clean up code formatting and remove unused imports

Co-authored-by: Ruben Kostandyan <kostard@amazon.com>
2024-06-16 15:09:59 -07:00
Ruben Kostandyan
38b1f54b0d
Bedrock client refactoring and move to @aws-sdk/credential-providers (#1491)
* Refactor Bedrock LLM client

- Removed unused AWS auth logic
- Simplified message/content conversion

* Improve AWS credentials handling for Bedrock models
- Using @aws-sdk/credential-providers to support wider range of credential provider options
- Removing custom logic of parsing aws credentials file

---------

Co-authored-by: Ruben Kostandyan <kostard@amazon.com>
2024-06-16 10:35:02 -07:00
Scott Schluer
78d6ee815b
CON-240: Updated FileContextProvider, FolderContextProvider and useSubmenuContextProvider to increment display of path parts to ensure unique displays when duplicates exist in the items list (#1494) 2024-06-16 10:31:26 -07:00
Reo
09d256ad56
fix(core): use TextDecoderStream for stream response (#1498) 2024-06-16 10:27:37 -07:00
John Wang
791a75f7a3
Handle binary blobs (#1493) 2024-06-16 10:25:34 -07:00
Peter Zaback
f3d200afe4
Jupiter is not the 9th planet 😉 (#1475)
If the reference to "after Mars," is
desired for some reason, punctuation should
probably be added for clarity. E.g., "planet,
after Mars,", or "planet, following Mars,". Note
also that because this is a FIM example and "the
5th" is part of the sentence to be filled, it
shouldn't be included as part of the completion.
2024-06-14 08:59:24 -07:00
Nate Sesti
6c6c6d51d1 🐛 a few jetbrains fixes 2024-06-13 21:10:58 -07:00
Nate Sesti
52ef90b5f4 setupCa in vscode extension 2024-06-13 17:29:15 -07:00
Nate Sesti
63abda81ae ✨ many jetbrains improvements 2024-06-13 14:53:26 -07:00
Nate Sesti
cd3d95b7eb ⚡️ use transactions for autocomplete cache 2024-06-13 12:56:48 -07:00
Nate Sesti
fc3c063041
publish stubs (#1472)
* 💚 fix armhf packaging

* 💚 update package.json

* 💚 update package.json

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 🎨 update url

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 force CI run because VS Code publish failed

* 🔖 update package.json version

* 📌 pin darwin-x64 runner image to macos-12

* 📌 also pin darwin-arm64 to macos-12

* 💚 also make official releases for pre-release

* ✏️ fix preview.yaml indentation

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json versino

* 🔖 update package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 💚 use pnpm, not npm

* 💚 install pnpm

* 💚 pnpm install

* ci fix

* 💚 wip

* 💚 don't re-install esbuild

* 🔖 update package.json version

* 🐛 fix URLs in client

* 🔊 log

* ➕ add esbuild as production dependency

* 🔊 hash by pnpm lock

* 🔊 log

* 🔖 version 131

* 🐛 fix merge

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 🐛 fix remote config

* ⚡️ system message migration

* 133

* 🔖 package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 👷 update preview.yaml

* 🔖 update package.json version

* log

* 💚 reinstall esbuild

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 💚 Update package.json version [skip ci]

* 🔒️ security improvements

* 💚 testing ci

* 💚 fix armhf packaging

* 🎨 update url

* 💚 use pnpm, not npm

* 💚 install pnpm

* 💚 pnpm install

* 💚 wip

* 🔊 log

* ➕ add esbuild as production dependency

* 🔊 hash by pnpm lock

* 🔊 log

* 🐛 fix merge

* 💚 force ci run

* 👷 update preview.yaml

* 💚 force ci run

* 🔒️ feature flags for free trial protection

* 🎨 fix launchdarkly init

* 🎨 catch launchdarkly errors

* 💚 Add GitHub Actions

* 📝 add README for continue-deploy

* 📝 git push note

* 👔 fill in stubs for remote config

* 🚸 stop github login request

* 💚 update CI to use .nvmrc

* 🔒️ security improvements

* 🔖 update version

* 💚 Update package.json version [skip ci]

* ✨ continue server client

* 🎨 clean up stubs

* 💚 Update package.json version [skip ci]

* 🎨 send 'repo' in indexing/cache request

* 🔥 remove codeql.yaml

* 🔊 log full text of index cache errors

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 👷 run testPackaging.js in CI

* 👷 print all missing files

* 🐛 correct linux path

* 🔊 log grandgrandparent folder

* 💚 testing ci

* 💚 fix ci

* 💚 fix armhf packaging

* 💚 update package.json

* 💚 update package.json

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 🎨 update url

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 force CI run because VS Code publish failed

* 🔖 update package.json version

* 📌 pin darwin-x64 runner image to macos-12

* 📌 also pin darwin-arm64 to macos-12

* 💚 also make official releases for pre-release

* ✏️ fix preview.yaml indentation

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json versino

* 🔖 update package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 💚 use pnpm, not npm

* 💚 install pnpm

* 💚 pnpm install

* ci fix

* 💚 wip

* 💚 don't re-install esbuild

* 🔖 update package.json version

* 🐛 fix URLs in client

* 🔊 log

* ➕ add esbuild as production dependency

* 🔊 hash by pnpm lock

* 🔊 log

* 🔖 version 131

* 🐛 fix merge

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 🐛 fix remote config

* ⚡️ system message migration

* 133

* 🔖 package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 👷 update preview.yaml

* 🔖 update package.json version

* log

* 💚 reinstall esbuild

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 💚 Update package.json version [skip ci]

* 🔒️ security improvements

* 💚 testing ci

* 💚 fix armhf packaging

* 🎨 update url

* 💚 use pnpm, not npm

* 💚 install pnpm

* 💚 pnpm install

* 💚 wip

* 🔊 log

* ➕ add esbuild as production dependency

* 🔊 hash by pnpm lock

* 🔊 log

* 🐛 fix merge

* 💚 force ci run

* 👷 update preview.yaml

* 💚 force ci run

* 🔒️ feature flags for free trial protection

* 🎨 fix launchdarkly init

* 🎨 catch launchdarkly errors

* 🔒️ v1 header

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 🔀 merge fixes

* 🔀 another merge fix

* 👷 update ci for refactor-core

* 👷 remove refactor-core from ci

* 🔖 update package.json version

* 🚚 fix ci

* 🔖 update package.json version

* 🎨 use telemetry to get free trial headers

* 🔖 version update

* 🎨 remove launchdarkly from headers

* 🎨 update server auth

* 🩹 update def of connected

* 🔖 version update

* 🔖 update version

* update main.yaml

* version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* fix codesral prompt

* version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* v

* update version

* 💚 Update package.json version [skip ci]

* update package.json version

* Changes

* remove README.md

---------

Co-authored-by: GitHub Action <action@github.com>
2024-06-12 22:30:27 -07:00
Nate Sesti
cba60c4cf3 make faviconUrl optional 2024-06-12 16:54:18 -07:00
Nate Sesti
d25b866449 ✨ feedback mechanism for autocomplete 2024-06-11 23:47:35 -07:00
Nate Sesti
2ac8a46d2b ✨ support for all context providers in .prompt files 2024-06-11 22:41:30 -07:00
Nate Sesti
6cf4467000 don't render the title of some context providers 2024-06-11 21:33:35 -07:00
Nate Sesti
cfddbd95ad Merge branch 'preview' of https://github.com/continuedev/continue into preview 2024-06-11 15:29:03 -07:00
Nate Sesti
8a4003672b ⚡️ filter out extreme repetitions from autocomplete 2024-06-11 15:28:59 -07:00
Peter Zaback
6df3bfbb1d
Feat/improve gemini api calling (#1469)
* Reformat system message for Gemini v1beta

* Fix mistakenly inverted logic

* Convert Continue options to Gemini API format
2024-06-11 14:04:33 -07:00
Nate Sesti
52daee8887 Merge branch 'add-history-tittle-change' of https://github.com/priyashpatil/continue into priyashpatil-add-history-tittle-change 2024-06-11 13:54:21 -07:00
fry69
5935206091
Update templates.ts (#1447)
Jupiter is still the 5th planet.
2024-06-11 13:53:45 -07:00
Nate Sesti
d9ff68c750
allow comments in config.json (#1470)
* ✨ comments in config.json

* ✨ file association for .jsonc
2024-06-11 13:51:53 -07:00
Nate Sesti
ecd7a81a6c 🚧 wip icons for context providers 2024-06-11 13:31:39 -07:00
Nate Sesti
894e1a3ffb ✨ switch between autocomplete models 2024-06-11 13:31:01 -07:00
Nate Sesti
9e13448b88 autocomplete postprocessing improvements 2024-06-10 20:54:03 -07:00
Nate Sesti
35ba50ff1d decide multiline per language 2024-06-10 20:53:52 -07:00
Nate Sesti
c15e9787d9 no multiline if midline 2024-06-10 14:14:37 -07:00
Nate Sesti
36e2215f43 ✨ deepseek provider 2024-06-10 00:19:36 -07:00
Patrick Erichsen
3e1c06b41b
fix(core): remove eslint config and fix errors (#1457) 2024-06-09 19:14:41 -07:00
Nate Sesti
cf88f31610 more progress on tests 2024-06-09 18:32:43 -07:00
Nate Sesti
8f675407a0 🧑‍💻 patch jest tests 2024-06-09 17:02:20 -07:00
Priyash Patil
1b32222c10 feat(gui): add ability to change the session title 2024-06-08 12:47:07 +05:30
Peter Zaback
6365c5cad2
Enable Gemini system message use (#1441)
Older versions of the Google API apparently didn't
support passing a "system" parameter so a shim was
used here to convert such a parameter into the
first user message instead. This is no longer
necessary as of the v1beta API, so this change
makes sure the shim is only applied if the user
has specified API version v1. I should also note
that there may still be a bug with this method if
using v1; the reason I found this is I was
experiencing a bug where the message ultimately
being sent after applying the shim was [Object]
[object] or something like that. I fixed it this
way because the system message shouldn't be
removed with v1beta (and presumably later
versions)
2024-06-07 21:34:51 -07:00
Nate Sesti
7d2b633cdb 🐛 fix embeddings vector size mismatch bug 2024-06-07 21:29:01 -07:00
Nate Sesti
6abdb3677c better terminal code block detection 2024-06-07 10:29:18 -07:00
Nate Sesti
463660d868 ✏️ model name typo 2024-06-06 17:33:09 -07:00
Nate Sesti
66b65f7528 exponential backoff if embedding is empty 2024-06-06 15:26:19 -07:00
Sadao Hiratsuka
2d1155d7d4
fix: update streamResponse function to use streaming decoding (#1436) 2024-06-06 09:22:14 -07:00
Nate Sesti
2dcbbcad42 🔥 remove duplicate defs 2024-06-06 00:39:58 -07:00
Nate Sesti
e8cc2d6293 Merge branch 'main' into preview 2024-06-06 00:33:34 -07:00
Nate Sesti
307b58d8cc build errs 2024-06-06 00:27:48 -07:00
Nate Sesti
feca6fa297 🐛 don't override max tokens for local models 2024-06-06 00:13:42 -07:00
Nate Sesti
a0d2820ca5 ⚡️ make autocomplete more token efficient 2024-06-06 00:08:08 -07:00
Nate Sesti
7ecbcad37b ⚡️ autocomplete improvements 2024-06-05 23:27:18 -07:00
Nate Sesti
44d446f8ff ⚡️ increase cache hit rate for autocomplete 2024-06-05 20:48:03 -07:00
Nate Sesti
80557afb4f autocomplete stopping improvement 2024-06-05 20:09:01 -07:00
Nate Sesti
520adeb511 improving templating paths disambiguation 2024-06-05 20:02:38 -07:00
Nate Sesti
937bc79c95 fix template path 2024-06-05 19:12:42 -07:00