ubicloud/assets
Benjamin Satzger 49464aa5b9 Add Raw/Preview tabs to playground response section
Add two tabs to the response section of the playground:

1. Raw: This shows the raw response of the model.
2. Preview: A rendered representation of the model response.

While the response is streaming in, only the "Raw" tab is visible. When
the request has finished, the Preview tab becomes available and users
can switch back and forth between the raw response and the rendered
representation.

During request processing, the size of inference_response_raw is
restricted. If the received content becomes larger than that height,
scrollbars are shown that automatically keep their focus on the
bottom. After request processing has finished, we switch to "Preview"
and remove the length restriction from "Raw". So if users switch back to
"Raw" they see the full content without max height restriction.
2025-01-07 19:03:49 +01:00
..
css Extract tailwind classes of radio_small_cards to a custom class 2024-12-09 06:30:01 +01:00
font/BeVietnamPro Generate invoice PDF at server side using prawnpdf 2024-10-01 11:24:54 +03:00
js Add Raw/Preview tabs to playground response section 2025-01-07 19:03:49 +01:00