lablup / backend.ai-webui

Backend.AI Web UI for web / desktop app (Windows/Linux/macOS). Backend.AI Web UI provides a convenient environment for users, while allowing various commands to be executed without CLI. It also provides some visual features that are not provided by the CLI, such as dashboards and statistics.
https://www.backend.ai
GNU Lesser General Public License v3.0
110 stars 73 forks source link

feat: Set the initial value of the chat modal to the recently created token #2864

Open agatha197 opened 3 days ago

agatha197 commented 3 days ago

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:

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:

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
graphite-app[bot] commented 3 days ago

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

agatha197 commented 3 days ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

github-actions[bot] commented 3 days ago

Coverage report for ./react

St.:grey_question:
Category Percentage Covered / Total
🔴 Statements
5.37% (+0.08% 🔼)
395/7352
🔴 Branches
4.67% (+0.08% 🔼)
237/5080
🔴 Functions
3.22% (+0.06% 🔼)
78/2422
🔴 Lines
5.28% (+0.08% 🔼)
380/7192

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from cf3c4b34d8d88cb0d968c826e85059dbc7f49366