mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 11:13:43 +08:00
Closes #174 Model identifiers like 'Qwen/Qwen3-Embedding-8B' or 'Pro/deepseek-ai/DeepSeek-V3' carry forward slashes that Spring MVC decodes from %2F before path matching, so even with the frontend's encodeURIComponent the request never reaches the handler and 404s out. The two affected endpoints take modelId as a request param instead: DELETE /{providerId}/models/{modelId} -> DELETE /{providerId}/models?modelId=... POST /{providerId}/models/{modelId}/test -> POST /{providerId}/models/test?modelId=... modelApi.removeProviderModel / testModel in the UI follow suit, passing the id via axios params so axios handles the URL encoding consistently. providerId stays as a path variable — provider ids are kebab-case and never contain slashes. |
||
|---|---|---|
| .. | ||
| api | ||
| assets | ||
| components | ||
| composables | ||
| i18n | ||
| router | ||
| stores | ||
| types | ||
| utils | ||
| views | ||
| App.vue | ||
| main.ts | ||
| vite-env.d.ts | ||