Commit graph

1360 commits

Author SHA1 Message Date
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
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
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
cd02cd8a03 Merge branch 'main' into litellm-provider-config, revert modelCache logic changes 2025-05-19 10:43:48 -05: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
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
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
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
Matt Rubens
669b239c22
v3.17.0 (#3622) 2025-05-14 17:33:55 -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
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
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
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
Chris Estreich
cd07b7faeb
Fix linter warning + run prettier on everything (#3581) 2025-05-13 15:16:24 -07:00
renovate[bot]
9f83ed32c9
fix(deps): update tailwindcss monorepo to v4.1.6 (#3565)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 10:47:50 -07:00
renovate[bot]
7a8613c34e
fix(deps): update dependency posthog-js to v1.242.0 (#3562)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 09:47:51 -07:00
Chris Estreich
d3c469391f
Show LLM streaming file write content (#3241) 2025-05-13 09:47:33 -07:00
Chris Estreich
9a358ab0f5
Focus improvements (#3539) 2025-05-13 09:41:03 -07:00
Chris Estreich
0f9691ab27
Revert "Accidental execution of tool syntax fix" (#3560) 2025-05-13 09:36:23 -07:00
xyOz
07db3c8824
Accidental execution of tool syntax fix (#3456)
Co-authored-by: cte <cestreich@gmail.com>
2025-05-13 09:20:32 -07:00
renovate[bot]
26ea660af4
fix(deps): update dependency shiki to v3.4.0 (#3548)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 08:16:50 -07:00
renovate[bot]
236da113b2
fix(deps): update dependency posthog-js to v1.241.1 (#3544)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 08:16:38 -07:00
renovate[bot]
1007a9557b
fix(deps): update dependency react-markdown to v9.1.0 (#3545)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 08:16:31 -07:00
KJ7LNW
7f8362f2e1
fix: command validation failing on shell array indexing (#3530)
Co-authored-by: Eric Wheeler <roo-code@z.ewheeler.org>
2025-05-12 21:31:54 -07:00
renovate[bot]
78a685a092
fix(deps): update dependency react-i18next to v15.5.1 (#3535)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 21:28:11 -07:00
renovate[bot]
b8d96b0352
fix(deps): update dependency @tanstack/react-query to v5.76.0 (#3527)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 21:14:38 -07:00
renovate[bot]
284232bef2
fix(deps): update dependency posthog-js to v1.240.6 (#3531)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 21:14:12 -07:00
Daniel
9ffdc7879e
Use the provider-specific model info for the OpenRouter provider (#3430) 2025-05-12 18:23:32 -07:00
Chris Estreich
20fab97b4d
Gemini implicit caching (#3515) 2025-05-12 14:16:27 -07:00
renovate[bot]
19a534016b
fix(deps): update dependency mermaid to v11.6.0 (#3417)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 13:17:46 -07:00
Chris Estreich
47a13fbb42
Improve command execution UI (#3509) 2025-05-12 13:16:46 -07:00
John Richmond
8cb5c4e9e3
Restore profile management work + fix #3434 (#3449)
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-05-12 15:47:09 -04:00
renovate[bot]
dd9ccfedc5
fix(deps): update dependency lucide-react to ^0.510.0 (#3402)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 10:39:34 -07:00
KJ7LNW
7d75536741
fix: webview terminal output processing error (#3028) 2025-05-11 17:51:22 -07:00
Dicha Zelianivan Arkana
6edb9a16b8
fix(textarea): empty string as fallback (#3463) 2025-05-11 07:29:24 -04:00
Matt Rubens
730d037a12
Revert "Improve provider profile management in the external API (#3386)" (#3440) 2025-05-10 08:27:37 -04:00
Tony Zhang
effebc650b
Fix: forced-color-adjust in highlight theme (#3424) 2025-05-09 23:38:02 -04:00
Matt Rubens
c1aa0ec5b3
Fix saving of OpenAI compatible headers (#3415)
* Fix saving of OpenAI compatible headers

* Code cleanup

* Add test
2025-05-09 18:39:10 -04:00
renovate[bot]
baf8fccaea
fix(deps): update dependency cmdk to v1.1.1 (#3398)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-09 09:40:46 -07:00
renovate[bot]
44e8dca1c4
fix(deps): update dependency @tanstack/react-query to v5.75.7 (#3378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-09 09:24:15 -07:00
Chris Estreich
c21aa230e3
Get rid of ApiConfiguration type alias, rename ApiConfigMeta to ProviderSettingsEntry (#3380) 2025-05-08 23:52:18 -07:00
Dicha Zelianivan Arkana
4730a12d4e
fix(prompts): revert to vscodetextarea to prevent race condition (#3343) 2025-05-08 22:53:37 -04:00
KJ7LNW
7cc97384cb
fix: show properly formatted multi-line commands in preview (#3368)
Co-authored-by: Eric Wheeler <roo-code@z.ewheeler.org>
2025-05-08 22:49:04 -04:00
cannuri
4091131859
fix display issues with too long profile names in ChatTextArea.tsx (#3371) 2025-05-08 22:41:11 -04:00
renovate[bot]
ee2033c5ac
chore(deps): update storybook monorepo to v8.6.12 (#3350)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-08 12:48:32 -07:00