Commit graph

50 commits

Author SHA1 Message Date
Dallin Romney
a33cd37041
fix(openrouter): Gemini 3 tool support, suffix stripping, thought_signature, autocomplete endpoint (#11856)
* fix: multiple OpenRouter provider improvements

- Add google/gemini-3 to tool support prefixes so Gemini 3 models are
  detected as supporting tools via OpenRouter (#8980)
- Strip :free/:extended/:beta suffixes before matching in OpenRouter
  tool support, fixing models like meta-llama/llama-3.2-3b-instruct:free
  not being recognized (#11095)
- Add thought_signature fallback for Gemini models via OpenRouter to
  prevent 400 errors when tool calling (#8980)
- Fix autocomplete/next-edit forcing legacy /completions endpoint on
  OpenRouter, which only supports /chat/completions (#3648)
- Enrich OpenRouter error messages with provider metadata details
  instead of showing generic "Provider returned error" (#11262, #11577)

* fix: remove error enrichment, add TODO for OpenRouter error extraction

* chore: clean up verbose comments and add OpenRouter tool support tests

* style: fix prettier formatting in toolSupport.ts
2026-03-25 20:31:53 -07:00
Ayyan Shaikh
04323155cd feat: enhance autocomplete cache with async initialization and improved eviction logic 2025-10-21 10:25:01 +00:00
Nate Sesti
f56d2b0a7b
fix: improvements to next edit (#8129)
* refactor: autocomplete feedback

* fix: don't hardcode outcome to false on aborted completion

* fix: correctly parse out backticks

* fix: correctly parse out backticks

* fix: next edit diff formatting

* fix: reduce context lines

* improv: track profile type for autocomplete

* fix: lint err

* fix: test
2025-10-08 13:09:50 -07:00
Jacob Kim
f27e7c71de
feat: add user-friendly way to toggle between FIM and next edit (#7355)
* feat: don't format when model is not mercury

* chore: bump

* fix: remove mercury-coder-nextedit

* refactor: remove refs to mercury-coder-nextedit

* feat: add util function for converting model name to enum

* refactor: add new types

* refactor: create an abstract base class for providers

* refactor: add child provider for instinct

* refactor: add provider for mercury coder

* refactor: provider factory

* refactor: use factory to create model providers based on helper.modelName

* refactor: clean up redundant logic to be more provider-friendly

* add buildPromptMetadata as an abstract method

* refactor: use handlebars and provider-specific template renderers

* refactor: use this.modelProvider instead of prompt engine

* refactor: remove redundant helper

* fix: update vitest after refactor

* feat: add test for convertNextEditModelNameToEnum

* fix: add isSecurityConcern imports

* feat: add functions to return next edit menu items and update config

* fix: get rid of callbacks

* feat: render next edit menu items

* fix: get rid of redundant completion request

* feat: update next edit status on vscode workspace config update, refactor out common logic

* feat: add continue.enableNextEdit

* feat: add aborted field to check for false positives

* fix: remove zetaDataset suffix

* feat: make sure that we are tracking completions

* feat: log aborts and move id generation to the top

* feat: all requests are tracked. when request is aborted, log as aborted with zero-value data. else, graduate it from pending completion and set aborted to false

* feat: add aborted to schema

* feat: add a toggleNextEditEnabled command

* feat: show (NE) in the status bar when next edit is enabled, add keymap

* feat: add command definitions for toggleNextEditEnabled

* refactor: handle validation in VsCodeExtension

* feat: check if model does not support next edit

* feat: use better menu item labels

* fix: casing

* chore: bump

* feat: add a function to disable next edit

* feat: disable next edit before e2e tests

* chore: bump

* fix: add a small delay to wait for UI loading

* fix: NE is shown for all statuses

* fix: wait for the NE to pop up

* fix: wait longer for disableNextEdit, clear potential next edit notifications

* fix: roll back clearAllNotifications

* fix: try disabling next edit before each

* fix: revert

* feat: add sane defaults when no workspace settings are set

* fix: fall back to false

* fix: debugging

* chore: change name

* fix: try waiting for text

* debug: more debug logs

* fix: clear notifs

* fix: suppress warning

* fix: string matching

* fix: jump label overlapping with the inline tip label (#7399)

* feat: add methods to temporarily hide and show tooltip

* feat: hide the inline tooltip when the jumpmanager's tooltip is shown

* feat: focus on chat input after apply

* revert

* fix: HOTFIX local assistant loading (#7354)

* fix: local assistant loading

* fix: no need for excluding .continue/.continue

* test: cases for config.yml and config.yaml names

* feat: remove hide/show logic for creating a new svgbuilder instance

* feat: use a new svgBuilder istance

* chore: update package-lock.json

---------

Co-authored-by: uinstinct <61635505+uinstinct@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Co-authored-by: Ting-Wai <40179554+tingwai@users.noreply.github.com>

---------

Co-authored-by: uinstinct <61635505+uinstinct@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Co-authored-by: Ting-Wai <40179554+tingwai@users.noreply.github.com>
2025-08-26 21:54:29 -04:00
Dallin Romney
400fefc1e3 fix: prevent security file reads cleanup 2025-08-21 14:18:53 -07:00
Dallin Romney
30c4cc1469 feat: prevent unsafe file reads 2025-08-21 13:40:03 -07:00
lwang2070
5c9362b732
Add second check for prompt length before autocomplete (#6451)
* Add second check for prompt length before autocomplete

* Add new renderPromptWithLimit to avoid conflicting with other modules

* Fix format issue

* Refactor to remove repetitive logic

* Add tests

* Fix type error

---------

Co-authored-by: Jacob Kim <jacob@continue.dev>
2025-07-29 15:32:54 -07:00
Jacob Kim
d937a448cd Merge branch 'main' of github.com:continuedev/continue into jacob/feature/static 2025-07-09 21:08:43 -07:00
uinstinct
330fa09aab fix: autocomplete dev data timestamp as iso string 2025-07-08 21:57:28 +05:30
Jacob Kim
53b28146eb log static contextualization 2025-07-05 20:32:06 -07:00
Jacob Kim
f04260a7ef enable static contextualization when needed 2025-07-05 17:28:32 -07:00
Lucas Shamanic
77a723cdea Add force autocomplete command and update inline completion handling
- Introduced a new command `continue.forceAutocomplete` to trigger autocompletion manually.
- Updated `CompletionProvider` to accept a `force` parameter for inline completion.
- Enhanced `ContinueCompletionProvider` to handle manual autocompletion triggers.
2025-06-07 04:00:30 +01:00
Jacob Kim
55e1dc9571 pass prettier check 2025-06-05 14:22:19 -07:00
Jacob Kim
fbaa58ce26 remove comments 2025-06-05 14:16:00 -07:00
Jacob Kim
2af7850205 prepare the LLM first, then use it to get per-model autocompleteOptions 2025-06-03 14:52:25 -07:00
Dallin Romney
bbb81ff032 remove free trial provider 2025-05-26 17:42:05 -07:00
Nate
82c1453551 use underlyingProviderName for dev data instead of providerName 2025-05-20 15:17:01 -07:00
Nate
cd9d63643f error on no-floating-promises in core 2025-04-29 15:11:35 -07:00
uinstinct
da047b7f45 remove console logs 2025-04-23 21:46:44 +05:30
uinstinct
b0e676b5dd update corresponding docs 2025-04-15 18:55:25 +05:30
uinstinct
608ca07dfb add prompt template for autocomplete 2025-04-15 18:39:30 +05:30
Dallin Romney
7f3a151105 scratch that 2025-03-18 14:42:40 -07:00
Dallin Romney
c84b2d64c4 ide tolower case just to be safe 2025-03-18 14:40:03 -07:00
Dallin Romney
8fc5c90d34 remove tolowercase 2025-03-18 14:36:47 -07:00
gyeongmin-ju
83af37eee2 Fixed an issue where the Log data collection feature in IntelliJ would fail.
Signed-off-by: amos42 <jcmh74@gmail.com>
2025-03-13 16:06:17 +09:00
liuk
f1a1419df0 refactor: Optimize widget initialization and loading state 2025-03-01 04:03:15 +08:00
Nate
889d7f91a1 add numLines to autocomplete dev data 2025-02-04 11:16:13 -08:00
Nate
9edd5e3e24 Use ConfigResult everywhere 2024-12-24 14:03:23 -05:00
tomasz-io
7434acc6b1 improv: ab test showWhateverWeHaveAtXMs 2024-12-13 15:12:00 -08:00
Nate
6c75c7a007 add comment for previous PR 2024-12-09 12:33:07 -08:00
Nate Sesti
d8c06512d6
Merge pull request #3022 from dzbanek717/dzbanek717/undefined-model-name
Fix undefined model name
2024-12-09 12:25:32 -08:00
tomasz-io
e6e682cbeb improv: set up experiments 2024-11-27 15:03:44 -08:00
tomasz-io
b29ed9d34a fix: do not write to the cache if caching is disabled 2024-11-26 11:27:21 -08:00
tomasz-io
70ae58594c fix: type errors 2024-11-25 17:31:29 -08:00
tomasz-io
3155b78076 improv: filtering, code cleanup 2024-11-22 14:43:56 -08:00
tomasz-io
8e56613cf7 improv: generating context (snippets) string 2024-11-21 18:34:06 -08:00
tomasz-io
fec4b21f7b improv: unify autocomplete snippets 2024-11-21 15:57:14 -08:00
tomasz-io
78ef8fe118 refactor: clean up code, add tests 2024-11-21 11:10:21 -08:00
pdanek
50e84f7d21 Fix undefined model name 2024-11-21 14:06:14 +01:00
tomasz-io
580a3c72b5 chore: clean up 2024-11-20 17:00:04 -08:00
tomasz-io
9431131f1c fix: getting diff 2024-11-20 16:54:12 -08:00
tomasz-io
9dd6284b8e feat: use clipboard content 2024-11-20 16:51:55 -08:00
Fred Bricon
57b18d73d6 Cancel stale completion requests as you type
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2024-11-20 17:25:03 +01:00
tomasz-io
a830dca11d refactor: clean up code 2024-11-19 16:26:31 -08:00
tomasz-io
1adbd9a456 feat: use git diff, improve comment formatting 2024-11-19 16:21:27 -08:00
tomasz-io
f5293bc02e refactor: clean up code 2024-11-18 13:12:50 -08:00
tomasz-io
51e1c4216b fix: snippets in fim prefix 2024-11-18 13:07:23 -08:00
Nate
f4159d2a2d save to cache immediately so as not to fail tests 2024-11-11 20:18:57 -08:00
Test
b5cab4609b chore: apply eslint to vscode and core 2024-11-11 07:38:52 -08:00
Nate
d9d8985cc5 fix some tests 2024-11-10 11:20:46 -08:00