Commit graph

4364 commits

Author SHA1 Message Date
slytechnical
c11e5ef96f Speculative new architecture for webview message handler 2025-05-19 18:57:17 -05:00
slytechnical
bf4df46cc9 Speculative new architecture for webview message handler 2025-05-19 18:56:48 -05:00
slytechnical
3053678903 Implement tests for LiteLLM component and enhance API configuration handling
- Added comprehensive tests for the LiteLLM component to validate API key and base URL handling during model refresh.
- Updated the LiteLLMProps type to be exported for better accessibility.
- Enhanced the SettingsView tests to ensure correct rendering and default values for LiteLLM configuration.
- Mocked ApiOptions in tests to inspect props and validate API configuration behavior.
2025-05-19 18:44:24 -05:00
slytechnical
f92e4b9233 Enhance LiteLLM provider configuration and default handling
- Updated ApiOptions to ensure model-specific IDs are set correctly when switching to the LiteLLM provider.
- Added useEffect in SettingsView to set default values for LiteLLM configuration fields if they are missing.
- Improved error handling in LiteLLM component for missing API key and base URL during model refresh.
- Added missing configuration error messages in multiple languages for better user feedback.
2025-05-19 17:56:48 -05:00
slytechnical
9546dc7ea0 switch placeholder key in litellm test 2025-05-19 15:12:48 -05:00
slytechnical
d4918c369d Switched GetModelsOptions to a discriminated union based on api provider. Adjusted related code and tests to match 2025-05-19 15:11:21 -05:00
slytechnical
bd1f93a755 Refactor getModels function to use options parameter for improved type safety
- Updated the getModels function to accept a single options parameter instead of multiple individual parameters.
- Introduced a discriminated union type for GetModelsOptions to enforce required properties based on the router type.
2025-05-19 13:32:37 -05:00
slytechnical
cbed162462 Refactor ApiOptions and LiteLLM components to use useEvent for message handling
- Replaced traditional event listeners with useEvent for improved performance and cleaner code.
- Updated message handling logic in both components to ensure proper response processing for provider models.
- Enhanced type safety by utilizing specific message types from ExtensionMessage.
2025-05-19 13:29:47 -05:00
slytechnical
caea66f340
Update src/api/providers/fetchers/modelCache.ts
Co-authored-by: Chris Estreich <cestreich@gmail.com>
2025-05-19 13:00:23 -05:00
slytechnical
e710d970b7 Refactor model fetching in webviewMessageHandler to handle failures independently
- Introduced a helper function to safely fetch models, ensuring that one failure does not affect others.
- Replaced Promise.all with Promise.allSettled to manage multiple model fetch requests concurrently while capturing errors.
2025-05-19 11:56:29 -05:00
slytechnical
cd02cd8a03 Merge branch 'main' into litellm-provider-config, revert modelCache logic changes 2025-05-19 10:43:48 -05:00
zeo
d70d0c1627
Add Qwen3 model series to the Chutes provider (#3710)
* Add Qwen3 model series to the Chutes provider

New models for the Chutes provider:

- Qwen/Qwen3-235B-A22B
- Qwen/Qwen3-32B
- Qwen/Qwen3-30B-A3B
- Qwen/Qwen3-14B
- Qwen/Qwen3-8B

* add changeset
2025-05-18 09:30:45 -07:00
pugazhendhi-m
d851586042
Adds refresh models button for Unbound provider (#3663)
* Adds refresh models button for Unbound provider

* Adds changeset

* Optimizes code to prevent memory leak, add error messages

* Adds unbound messages to all supported languages

---------

Co-authored-by: Pugazhendhi <pugazhendhi@unboundsecurity.ai>
2025-05-17 18:09:39 -07:00
vagadiya
4550a91950
#3679 - Fixes packaging to include correct tiktoken.wasm (lite) (#3697)
- also, additions to .gitignore and .vscodeignore to prevent the IntelliJ .idea and .qodo folders from being included for git and packaging.
2025-05-17 13:53:33 -07:00
xyOz
cf445c3e54
Log Cleanup to Remove Cline (#3704)
* Rename Errors & Fix Spelling Mistake

* Update src/core/task/Task.ts

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

---------

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-05-17 13:49:24 -07:00
slytechnical
2e8160bb3c Switch supportsComputerUse back to existing litellm behavior until model list changes go live 2025-05-16 19:05:28 -05:00
slytechnical
a7b4526650 simpler getModel 2025-05-16 19:03:04 -05:00
slytechnical
8eb9c28bb2 Hard cap max tokens for 3-7 models in lieu of extended thinking 2025-05-16 18:53:09 -05:00
slytechnical
88de5b26cd Added litellm and validator tests 2025-05-16 17:55:27 -05:00
slytechnical
241722eeb6 add i18n for refreshModels strings 2025-05-16 16:42:55 -05:00
slytechnical
f0df05fe6f adjust litellmDefaultModelId, remove console log 2025-05-16 16:35:48 -05:00
slytechnical
2328695101 Ability to refresh litellm models by refresh button. Provider-specific model fetching. Success vs fail user feedback on model fetch responses 2025-05-16 16:05:16 -05:00
slytechnical
cc3189b6f5 Merge commit 'd7bed5e0badcfdada87999a14f7f2977a36021e4' into requesty-provider-config 2025-05-16 15:31:35 -05:00
Chris Estreich
6e958df09e
Export ProviderName type to Roo-Code-Types (#3675) 2025-05-16 12:05:09 -07:00
slytechnical
d7bed5e0ba Change litellm config logic to accept supports_computer_use from litellm the updated /v1/model/info endpoint 2025-05-16 01:29:57 -05:00
Chris Estreich
dc694efdb2
Import settings bug fix / improvements (#3657) 2025-05-15 23:21:55 -07:00
R00-B0T
f70e03e3b4
Changeset version bump (#3645)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Chris Estreich <cestreich@gmail.com>
2025-05-15 21:33:21 -07:00
Chris Estreich
433a564cce
Revert "Switch to the new Roo message parser" (#3649) 2025-05-15 21:28:44 -07:00
Chris Estreich
d7eec3afa6
Lock the versions of vsce and ovsx (#3643) 2025-05-15 16:49:09 -07:00
Matt Rubens
1ff8a56e7a
Fix how custom instructions are loaded into the API request (#3638)p 2025-05-15 16:44:10 -04:00
R00-B0T
bcc4526f9e
Changeset version bump (#3637)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: R00-B0T <github-actions@github.com>
Co-authored-by: Chris Estreich <cestreich@gmail.com>
2025-05-15 12:37:31 -07:00
Chris Estreich
95da34d3da
Fix command display in the approval required case (#3636) 2025-05-15 12:31:25 -07:00
Daniel
8447670499
Fix incorrect reserved tokens calculation on OpenRouter (#3626)
fix: improve token reservation logic in calculateTokenDistribution
2025-05-15 07:22:07 -04:00
hatsu
b69825b95d
fix: correct Changelog link in localized README files (#3629)
The Changelog link in `locales/ja/README.md` and other localized
READMEswas pointing to a broken relative path, resulting in 404s.This
commit updates the link to use a correct relative path
(`../../CHANGELOG.md`)so that it works across all locales.
2025-05-15 06:55:29 -04:00
R00-B0T
f46e14dc04
Changeset version bump (#3556)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-05-14 17:37:30 -04:00
Matt Rubens
669b239c22
v3.17.0 (#3622) 2025-05-14 17:33:55 -04:00
github-actions[bot]
1c9669f842
Update contributors list (#3612)
Co-authored-by: mrubens <mrubens@users.noreply.github.com>
2025-05-14 16:46:01 -04:00
Matt Rubens
fe43a7b610
Fix type generation (#3619) 2025-05-14 16:45:28 -04:00
Canyon Robins
7c1185ed33
[Condense] Condense messages with an LLM rather than truncating (#3582)
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-05-14 16:44:01 -04:00
Matt Rubens
4ee23b5152
v3.16.7 (#3614) 2025-05-14 15:38:46 -04:00
KJ7LNW
afc82b851d
build: enable source maps for improved debugging (#3596)
Co-authored-by: Eric Wheeler <roo-code@z.ewheeler.org>
2025-05-14 13:46:53 -04:00
மனோஜ்குமார் பழனிச்சாமி
cbd77275a1
Add build vsix Workflow (#3600) 2025-05-14 13:21:04 -04:00
Hannes Rudolph
ead5d2a838
feat: add buildDocLink utility and 21 Internal Links to Docs (#3418)
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-05-14 13:15:05 -04:00
Chris Estreich
35fd4e68cd
Use a shadcn dialog for the announcement (#3604) 2025-05-14 09:00:55 -07:00
renovate[bot]
a4e2b66351
fix(deps): update dependency posthog-js to v1.242.1 (#3602)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-14 08:49:23 -07:00
github-actions[bot]
27cf18ca7a
Update contributors list (#3299)
Co-authored-by: mrubens <mrubens@users.noreply.github.com>
2025-05-13 22:01:04 -04:00
Matt Rubens
f18f71cb17
Rename cline_docs -> docs (#3587) 2025-05-13 21:59:26 -04:00
Hannes Rudolph
855a5e213d
Refactor: Update new_task tool description and mode examples (#3586)
The description for the `new_task` tool has been simplified for clarity.
Additionally, the example modes listed for the `mode` parameter have been updated to include "debug" instead of "ask".
2025-05-13 20:26:02 -04:00
Hannes Rudolph
4aa448b7e8
Refactor: Update custom instructions for 'ask' mode (#3583)
This commit refines the custom instructions for the 'ask' mode. The changes aim to provide clearer guidance to the AI, emphasizing thoroughness in answering questions and caution against prematurely switching to code implementation.

Specifically, the instructions were updated as follows:

- Changed "Make sure to answer the user's questions" to "Always answer the user’s questions thoroughly"
- Changed "don't rush to switch to implementing code" to "do not switch to implementing code unless explicitly requested by the user"
- Changed "Include Mermaid diagrams if they help make your response clearer" to "Include Mermaid diagrams when they clarify your response"

These changes are reflected in both [`src/shared/modes.ts`](src/shared/modes.ts:80) and its corresponding snapshot file [`src/core/prompts/__tests__/__snapshots__/system.test.ts.snap`](src/core/prompts/__tests__/__snapshots__/system.test.ts.snap:5458).
2025-05-13 20:10:48 -04:00
Matt Rubens
751afaa6ac
Add a 'when to use' section to mode definitions (#3571)
* Add a 'when to use' section to mode definitions

* Remove defaults for now
2025-05-13 18:39:02 -04:00