diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index e6c2b968..2e4eb9a6 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -13,7 +13,7 @@ runs: - name: Cache dependencies id: cache - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 + uses: actions/cache@v4.2.2 with: path: ./node_modules key: modules-${{ hashFiles('package-lock.json') }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c37df9a..b18dc92e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.18.1](https://github.com/stacklok/codegate-ui/compare/v0.18.0...v0.18.1) (2025-03-03) + + +### Bug Fixes + +* id separator for provider, model muxing rule ([#360](https://github.com/stacklok/codegate-ui/issues/360)) ([3cff061](https://github.com/stacklok/codegate-ui/commit/3cff0613a57f4c9c69add80f63d072238e797656)) + ## [0.18.0](https://github.com/stacklok/codegate-ui/compare/v0.17.0...v0.18.0) (2025-02-21) diff --git a/package-lock.json b/package-lock.json index e9aa8b42..7eceed0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vite-project", - "version": "0.18.0", + "version": "0.18.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vite-project", - "version": "0.18.0", + "version": "0.18.1", "dependencies": { "@dnd-kit/core": "^6.3.1", "@dnd-kit/sortable": "^10.0.0", diff --git a/package.json b/package.json index 5fe1bab1..3f17577a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vite-project", "private": true, - "version": "0.18.0", + "version": "0.18.1", "type": "module", "scripts": { "dev": "vite", diff --git a/src/features/workspace/components/workspace-models-dropdown.tsx b/src/features/workspace/components/workspace-models-dropdown.tsx index d924cbed..23c8c71e 100644 --- a/src/features/workspace/components/workspace-models-dropdown.tsx +++ b/src/features/workspace/components/workspace-models-dropdown.tsx @@ -37,7 +37,7 @@ function groupModelsByProviderName( id: providerName, textValue: providerName, items: items.map((item) => ({ - id: `${item.provider_id}:${item.name}`, + id: `${item.provider_id}@${item.name}`, textValue: item.name, })), })) @@ -116,8 +116,10 @@ export function WorkspaceModelsDropdown({ const selectedValue = v.values().next().value if (!selectedValue && typeof selectedValue !== 'string') return if (typeof selectedValue === 'string') { - const [provider_id, modelName] = selectedValue.split(':') - if (!provider_id || !modelName) return + const atIndex = selectedValue.indexOf('@') + const provider_id = selectedValue.slice(0, atIndex) + const modelName = selectedValue.slice(atIndex + 1) + if (atIndex === -1 && (!provider_id || !modelName)) return onChange({ model: modelName, provider_id,
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: