llama-stack/llama_stack/distribution/ui/page
Michael Clifford 093881071a
fix: add max_tokens slider to playground tools page (#1958)
# What does this PR do?

This PR adds a `max_tokens` slider to playground tools page. I have
found that in some instances the llama stack server throws a 500 error
if the max_tokens value is not explicitly set in the agent's
`sampling_params`. This PR, uses the same implementation of the
`max_tokens` slider from the chat page, and includes it on the tools
page.


## Test Plan
1. Attempting to call a tool without these changes results in a `500:
Internal server error: An unexpected error occurred`.
2. Attempting to call a tool with these changes results in the expected
output.

Signed-off-by: Michael Clifford <mcliffor@redhat.com>
2025-04-15 09:11:08 -07:00
..
distribution fix: Fixed import errors for UI and playground (#1666) 2025-03-18 15:00:48 -07:00
evaluations fix: Fixed import errors for UI and playground (#1666) 2025-03-18 15:00:48 -07:00
playground fix: add max_tokens slider to playground tools page (#1958) 2025-04-15 09:11:08 -07:00
__init__.py [llama stack ui] add native eval & inspect distro & playground pages (#541) 2024-12-04 09:47:09 -08:00