mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
The tool test panel drove its argument fields through an antd Form, so the call payload was whatever rc-field-form happened to have mounted. It now runs on react-hook-form with shadcn controls, and the payload itself lives in toolCallArguments.ts as a pure function of the schema fields plus the entered values. Fields bind by index rather than by name, because an MCP tool's JSON schema can name a property anything: a key containing a dot would be one flat key to antd but a nested path to react-hook-form. Binding to args.0, args.1 and zipping back to the real keys at submit time keeps the emitted arguments identical whatever the server calls its properties. Coercion, the blank filter, the required and JSON rules, and the params wrapper for nested-object schemas all keep their previous behaviour, and the neutral colours in the panel move onto tokens so it reads correctly in dark mode. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||