Skip to content

Conversation

@chungjac
Copy link
Contributor

@chungjac chungjac commented Oct 1, 2025

Problem

The backend now provides a model description, which we would also like to display as a tooltip when hovering over the model name

Solution

Add model description as a tooltip when hovering over model:

Testing in all 4 IDEs

VSC.mov
JB.mov
eclipse vs

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chungjac chungjac force-pushed the model-dropdown branch 6 times, most recently from e827f35 to 87c35fb Compare October 1, 2025 20:46
@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.22%. Comparing base (e4a1717) to head (bc1ca28).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2374      +/-   ##
==========================================
- Coverage   61.23%   61.22%   -0.02%     
==========================================
  Files         261      261              
  Lines       58281    58291      +10     
  Branches     3579     3579              
==========================================
  Hits        35689    35689              
- Misses      22524    22534      +10     
  Partials       68       68              
Flag Coverage Δ
unittests 61.22% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chungjac chungjac force-pushed the model-dropdown branch 11 times, most recently from 59f8e9d to 57cef4a Compare October 6, 2025 05:58
@chungjac chungjac marked this pull request as ready for review October 6, 2025 23:13
@chungjac chungjac requested a review from a team as a code owner October 6, 2025 23:13
[BedrockModel.CLAUDE_SONNET_4_20250514_V1_0]: { label: 'Claude Sonnet 4' },
[BedrockModel.CLAUDE_SONNET_4_20250514_V1_0]: {
label: 'Claude Sonnet 4',
description: 'Hybrid reasoning and coding for regular use',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this change on the backend?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most probably it wont change but this is valid until for initial listAvailableModel API call so it should be fine.


export const FALLBACK_MODEL_RECORD: Record<BedrockModel, ModelDetails> = {
[BedrockModel.CLAUDE_3_7_SONNET_20250219_V1_0]: { label: 'Claude 3.7 Sonnet' },
[BedrockModel.CLAUDE_SONNET_4_20250514_V1_0]: { label: 'Claude Sonnet 4' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

callout for future: probably worth adding a comment: since we are also removing 3.7, we have to be careful not to remove sonnet 4 because if for some reason call to the backend fails, there will be no fallback left to show in the UI

@chungjac chungjac merged commit ed8c6dd into aws:main Oct 6, 2025
7 checks passed
@chungjac chungjac deleted the model-dropdown branch October 7, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants