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

   ### Motivation
   
   The LLM settings helpers had four tests but left the empty-error-text 
fallback, the unknown-provider-no-model case, and whole-catalog coverage 
unasserted. This PR grows the suite from 4 to 7 cases.
   
   ### Changes
   
   - `buildLlmFailureResult` falls back to the default message when the backend 
error text is an empty string while preserving `code`/`hint`.
   - `fallbackModelOptions` returns no options for an unknown provider without 
a current model.
   - Every `FALLBACK_MODELS` provider catalog entry is exposed as value/label 
options.
   
   ### Verification
   
   - `vitest run src/pages/studio/__tests__/LlmSettings.test.ts`: 7/7 passed
   - `tsc --noEmit`: clean
   - `eslint src/pages/studio/__tests__/LlmSettings.test.ts`: clean


-- 
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