Commit graph

927 commits

Author SHA1 Message Date
Nate Sesti
6f39952c20
Merge pull request #5030 from continuedev/pe/llama-cpp-completions-fix
Update LlamaCpp.ts
2025-04-08 13:38:39 -07:00
Patrick Erichsen
d174689ee2 Update LlamaCpp.ts 2025-04-07 12:36:54 -07:00
Owen W. Taylor
e0ee0f63de LLMLogFormatter: rich logging to an output stream
Add a streaming implementation of rich LLM logging to use
if we don't have the webview connected; it converts the
LLMInteractionItems into a human-readable stream with
timestamps, handling of overlapping interactions, and so
forth.

Use this for the binary.
2025-04-07 14:11:38 -04:00
Owen W. Taylor
3553dfaae4 Add rich logging of LLM interactions
Instead of treating LLM logging as simply writing lines of text
sequentially, emit a stream of typed data objects that include
rich information about the interaction, such as timestamps,
message types, tool calls, etc.

These are then collected by a new custom webview in the vscode
extension (the "Continue Console"), allowing a user or developer
to browse through the different interactions and view them in detail.
In progress interactions are now streamed live, instead of being held back
to avoid concurrency issues.

This webview could be also exposed for IntelliJ or file logging
could be reimplemented on top of the new framework.
2025-04-07 14:11:38 -04:00
Owen W. Taylor
caf7288d36 Revert "Add citations to the log"
We can't add citations to the rich log until we have them plumbed
through with the correct data types. That will happen when they
get added to the UI. Since the only appearance so far was in the
old text log, just revert the addition for now.

This reverts commit 6bc0bfc5f1.
2025-04-07 14:04:44 -04:00
Owen W. Taylor
5166e74799 BaseLLM: don't disguise AbortError when rethrowing
When we catch/log/rethrow AbortError, throw it as itself, rather than
throw Error(e.message) so that outer callers can detect it by the
exception name.
2025-04-07 14:04:44 -04:00
Patrick Erichsen
401d67bbd0 feat: use fetch instead of http 2025-04-05 13:36:41 -07:00
Chad Metcalf
d056a8c44a
Switch to localhost for using Docker models.
Docker only exposes the http://model-runner.docker.internal
address inside of containers. So we will want to use localhost.
2025-04-04 15:48:39 -07:00
Nate Sesti
9555650952
Merge pull request #4964 from continuedev/nate/fix-bedrock-reranker-creds
fix bedrock reranker credentials
2025-04-03 20:54:07 -07:00
Nate Sesti
ae59e597da
Merge pull request #4974 from continuedev/tomasz/if-rules
Tomasz/if rules
2025-04-03 20:51:27 -07:00
tomasz-io
d2545e48d2 improv: clean up code 2025-04-03 15:21:35 -07:00
tomasz-io
2820f43503 improv: clean up 2025-04-03 14:56:22 -07:00
tomasz-io
ea6b2344d0 fix: type errors 2025-04-03 14:55:37 -07:00
tomasz-io
cb2e0a7c0e fix: failing tests 2025-04-03 14:48:00 -07:00
tomasz-io
6d27ac6777 test: rules 2025-04-03 14:05:53 -07:00
tomasz-io
81acb44601 fix: tests 2025-04-03 14:03:14 -07:00
tomasz-io
2b97efe5c6 fix: isRuleActive 2025-04-03 14:00:15 -07:00
tomasz-io
211fcb7740 feat: if-rule 2025-04-03 13:36:33 -07:00
tomasz-io
b39cb836ad fix: rules 2025-04-03 12:40:46 -07:00
tomasz-io
a6dd5a83de fix: if rules 2025-04-03 12:38:30 -07:00
tomasz-io
06b76d752f feat: if-rules 2025-04-03 12:32:25 -07:00
tomasz-io
2620064c53 feat: rules 2025-04-03 12:27:22 -07:00
tomasz-io
6224af63d3 feat: if rules 2025-04-03 11:54:53 -07:00
tomasz-io
05a3eec21e fix: regex 2025-04-03 11:49:16 -07:00
tomasz-io
8c5ca401d4 feat: glob rules 2025-04-03 10:47:42 -07:00
tomasz-io
9cb5170b1a feat: get paths 2025-04-03 10:45:42 -07:00
tomasz-io
f19b6b8abd fix: type errors 2025-04-03 10:29:52 -07:00
tomasz-io
9baa4e93be feat: if-rule 2025-04-03 10:29:13 -07:00
tomasz-io
0a13a4604d feat: if-rules 2025-04-03 10:00:21 -07:00
tomasz-io
ccdc1b953e feat: if-rules 2025-04-03 09:54:33 -07:00
tomasz-io
0b07020d7d fix: messages 2025-04-03 09:51:36 -07:00
tomasz-io
a3bc2e13f9 refactor: clean up code 2025-04-03 09:36:18 -07:00
tomasz-io
0c0d0c92f6 refactor: clean up code 2025-04-03 09:32:13 -07:00
tomasz-io
4156d83171 refactor: clean up code 2025-04-03 09:28:41 -07:00
tomasz-io
2ffb4aefeb feat: extract paths 2025-04-03 09:20:41 -07:00
Nate
466deef9d6 fix bedrock reranker credentials 2025-04-02 21:52:12 -07:00
Nate Sesti
add7a134f6
Merge pull request #4963 from pppy2012/fix-default-context-length
fix: set DEFAULT_CONTEXT_LENGTH to 8192
2025-04-02 20:00:43 -07:00
pppy2012
f1637685c6
fix: set DEFAULT_CONTEXT_LENGTH to 8192 2025-04-03 10:18:30 +08:00
Nate Sesti
5fbcdd5f58
Merge pull request #4960 from metcalfc/inceptionlabs-provider
inceptionlabs provider
2025-04-02 19:15:12 -07:00
Nate Sesti
ddafcab796
Merge pull request #4915 from zhyhang/feat/some-ehance-202504
add google gemini-2.5-pro-exp-03-25 and others; lift siliconflow to reranker model provider
2025-04-02 19:10:24 -07:00
Nate Sesti
9ad8520584
Merge pull request #4948 from chezsmithy/feat/bedrock-prompt-caching
feat/bedrock-prompt-caching
2025-04-02 19:07:29 -07:00
Nate
2cebc92bb6 bump, remove inceptionlabs provider 2025-04-02 18:54:45 -07:00
Nate
a7f70484a8 Merge branch 'main' into inceptionlabs-provider 2025-04-02 18:52:45 -07:00
Nate Sesti
ef11e5fbb6
Merge pull request #4907 from continuedev/nate/mercury
inception provider
2025-04-02 18:29:45 -07:00
Chad Metcalf
27734d4173
Add InceptionLabs provider
- Added InceptionLabs LLM provider integration
- Extended OpenAI class for Inception Labs-specific functionality
- Set up default options for Mercury models
- Added logo for Inception Labs in the UI
- Added model mappings for Mercury models (small, medium, large)
- Added support for different API endpoints based on model selection
- Created modelInfo structure to map models to their API endpoints
- Fixed handling for mercury-mini (zaragoza endpoint) and mercury-small (copenhagen endpoint)
- Updated model listing to return models from both endpoints
- Improved constructor to handle both friendly names and direct model names
2025-04-02 16:51:57 -07:00
tomasz-io
1a1b854fda feat: evaluate rule 2025-04-02 16:05:39 -07:00
Chad Metcalf
5afe552aa5
Add Docker model provider integration
Adds a new LLM provider for Docker Desktop's Model Runner feature, which
allows running local AI models with Docker. The implementation builds on
the existing OpenAI provider, since Docker Model Runner offers an
OpenAI-compatible API endpoint.

Features:
- Implementation of Docker provider extending OpenAI provider
- Support for listing and installing models via Docker CLI
- Added Docker logo for the UI
- ModelInstaller interface implementation
2025-04-02 15:22:14 -07:00
tomasz-io
44212e4582 fix: types 2025-04-02 13:09:28 -07:00
tomasz-io
79780e8d60 refactor: simplify 2025-04-02 11:31:43 -07:00
Jazzcort
60daec4bce Improved efficiency of one-third-pruning
I first paired each ChatMessage with its token count, eliminating
the need to recalculate tokens later when generating the
distanceFromThird array. Additionally, I moved the filtering step
before sorting, ensuring that we only sort messages that exceed
1/3 of the context length instead of sorting the entire message
array.
2025-04-02 10:32:40 -04:00