You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enhance user convenience, it's proposed that the chat modal's initial value be prepopulated with the most recent valid token if one exists. This feature would save users the hassle of having to manually enter or look up their valid token each time they wish to initiate a chat.
Expected Behavior
When opening the chat modal, the input field for the token should automatically be filled with the most recent valid token associated with the user's account.
If no valid tokens are available, the input field can remain empty as it currently does.
Benefits
Reduces the number of steps required for users to start a chat.
Improves overall user experience by leveraging existing information to streamline interactions.
Potential Challenges
Ensuring that the token prepopulation logic securely checks for token validity without exposing sensitive information.
Handling scenarios where the most recent token might have just expired or is about to expire soon.
The text was updated successfully, but these errors were encountered:
yomybaby
changed the title
Set the recently created token to the initial values of chat Modal
Set the initial value of the chat modal to the recently created token
Nov 20, 2024
… token (#2864)
resolves#2865
**Changes:**
Adds automatic token population in the chat UI modal by passing the most recently created endpoint token to the chat interface.
**Details:**
- Extends `ChatUIModal` to accept endpoint token fragment data
- Adds logic to find the newest token from the endpoint token list
- Automatically populates the token field in the chat interface with the most recent token
- Enhances user experience by removing manual token entry requirement
**How to test:**
1. Click the LLM Chat Test from the serving page.
2. If it is not a public vllm model, you can get the custom modal.
3. If there are tokens, the most recently created and valid token will be set as the placeholder.
4. If there is no valid token, the placeholder is empty.
**Checklist:**
- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
**Review Requirements:**
1. Verify that the newest token is correctly identified from the endpoint token list
2. Confirm the token field is pre-populated in the chat interface
3. Test that the chat functionality works with the auto-populated token
Description
To enhance user convenience, it's proposed that the chat modal's initial value be prepopulated with the most recent valid token if one exists. This feature would save users the hassle of having to manually enter or look up their valid token each time they wish to initiate a chat.
Expected Behavior
When opening the chat modal, the input field for the token should automatically be filled with the most recent valid token associated with the user's account.
If no valid tokens are available, the input field can remain empty as it currently does.
Benefits
Reduces the number of steps required for users to start a chat.
Improves overall user experience by leveraging existing information to streamline interactions.
Potential Challenges
Ensuring that the token prepopulation logic securely checks for token validity without exposing sensitive information.
Handling scenarios where the most recent token might have just expired or is about to expire soon.
The text was updated successfully, but these errors were encountered: