-
Notifications
You must be signed in to change notification settings - Fork 207
Description
Description
In the Playground's "Inference parameters" section, the tooltip for the "Temperature" and "Top P" parameter is being cut off at the bottom-right corner of the screen, making it impossible to read the complete description.
Steps to Reproduce
- Open AI Toolkit and navigate to Playground
- Select a model (e.g., gpt-4o via Microsoft Foundry)
- Expand the "Inference parameters" section
- Hover over the information icon (ⓘ) next to "Temperature" or "Top P"
- Observe that the tooltip text is partially hidden/cut off
Expected Behavior
The tooltip should be fully visible and readable regardless of its position on the screen. The tooltip should automatically adjust its position (e.g., display above or to the left) when there isn't enough space at the bottom-right.
Actual Behavior
The tooltip appears at the bottom-right and extends beyond the viewport, causing the text to be cut off and unreadable.
Screenshots
Environment
- VS Code Insider Version:
- AI Toolkit Version:
- Operating System: macOS
Suggested Fix
- Implement dynamic tooltip positioning that detects viewport boundaries
- Position the tooltip above or to the left when there's insufficient space below/right
- Add overflow handling with text wrapping or scrollable content
- Consider using a positioning library that handles boundary detection automatically
Additional Context
This issue affects user experience as the tooltip provides important information about the "Temperature" and "Top P (nucleus sampling) parameter, which users need to understand to configure their model properly.