Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(weave): LLM dropdown UX improvements #3276

Merged
merged 2 commits into from
Dec 17, 2024
Merged

style(weave): LLM dropdown UX improvements #3276

merged 2 commits into from
Dec 17, 2024

Conversation

jwlee64
Copy link
Contributor

@jwlee64 jwlee64 commented Dec 17, 2024

Description

Screenshot 2024-12-17 at 1 58 13 PM Screenshot 2024-12-17 at 1 58 07 PM

update headers
sort llms
simple defaulting for model

Testing

How was this PR tested?

@jwlee64 jwlee64 requested review from a team as code owners December 17, 2024 21:58
@circle-job-mirror
Copy link

circle-job-mirror bot commented Dec 17, 2024

acc.push({
group: provider,
label:
llm.includes(provider) || provider === 'openai'
Copy link
Member

Choose a reason for hiding this comment

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

TIOLI: i'm becoming a simp for micro functions, could be a nice place for one that explains why we do this logic

Copy link
Member

Choose a reason for hiding this comment

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

like:

function _make_dropdown_label(provider: string): string {

@@ -397,8 +397,8 @@ export const LLM_PROVIDER_LABELS: Record<
> = {
openai: 'OpenAI',
anthropic: 'Anthropic',
gemini: 'Gemini',
gemini: 'Google gemini',
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think Gemini and Bedrock should be capitalized.

acc.push({
group: provider,
label:
llm.includes(provider) || provider === 'openai'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not clear to me why we would give OpenAI unique treatment.
We should update the size of this select widget so you can see the entire selected value though.

@jwlee64 jwlee64 merged commit b978a7f into master Dec 17, 2024
119 of 120 checks passed
@jwlee64 jwlee64 deleted the josiah/llm-dd-ux branch December 17, 2024 22:53
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants