yyqdbngt opened a new pull request, #4074:
URL: https://github.com/apache/rocketmq-dashboard/pull/4074

   Fixes #4032
   
   
   ## Summary
   
   Adds a focused Vitest regression test file at 
`web/src/pages/studio/__tests__/llmModelOptions.test.ts` covering LLM fallback 
model option resolution. The tests lock the current behavior of 
`fallbackModelOptions` and the `FALLBACK_MODELS` table from 
`web/src/pages/studio/llmModelOptions.ts`: known providers map their fallback 
list to value/label options, unknown providers use the supplied current model, 
and unknown providers without a current model yield an empty list.
   
   ## Why
   
   The existing suite does not cover LLM fallback model option resolution. A 
regression here would surface wrong or empty model dropdowns when configuring 
an LLM provider, so the resolution rules are locked with a dedicated test file. 
No runtime behavior changes are made.
   
   ## Testing
   
   - Local type check: `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` 
(exit 0).
   - Targeted Vitest run: `cd web && ./node_modules/.bin/vitest run 
src/pages/studio/__tests__/llmModelOptions.test.ts` (all tests pass).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to