ZIm/crates/language_model/src
Nathan Sobo b9176fe4bb
Add custom icon for Anthropic hosted models (#16436)
This commit adds a custom icon for Anthropic hosted models.


![CleanShot 2024-08-18 at 15 40
38@2x](https://github.com/user-attachments/assets/d467ccab-9628-4258-89fc-782e0d4a48d4)
![CleanShot 2024-08-18 at 15 40
34@2x](https://github.com/user-attachments/assets/7efaff9c-6a58-47ba-87ea-e0fe0586fedc)


- Adding a new SVG icon for Anthropic hosted models.
  - The new icon is located at: `assets/icons/ai_anthropic_hosted.svg`
- Updating the LanguageModel trait to include an optional icon method
- Implementing the icon method for CloudModel to return the custom icon
for Anthropic hosted models
- Updating the UI components to use the model-specific icon when
available
- Adding a new IconName variant for the Anthropic hosted icon

We should change the non-hosted icon in some small way to distinguish it
from the hosted version. I duplicated the path for now so we can
hopefully add it for the next release.

Release Notes:

- N/A
2024-08-18 16:07:15 -06:00
..
model Add custom icon for Anthropic hosted models (#16436) 2024-08-18 16:07:15 -06:00
provider Add custom icon for Anthropic hosted models (#16436) 2024-08-18 16:07:15 -06:00
language_model.rs Add custom icon for Anthropic hosted models (#16436) 2024-08-18 16:07:15 -06:00
provider.rs Add GitHub Copilot Chat Support (#14842) 2024-07-30 09:32:58 +02:00
rate_limiter.rs Allow customization of the model used for tool calling (#15479) 2024-07-30 16:18:53 +02:00
registry.rs Restructure workflow step resolution and fix inserting newlines (#15720) 2024-08-05 09:18:06 +02:00
request.rs Support 8192 output tokens for Claude Sonnet 3.5 (#16358) 2024-08-16 11:47:39 -04:00
role.rs Restructure workflow step resolution and fix inserting newlines (#15720) 2024-08-05 09:18:06 +02:00
settings.rs Allow display name of custom Anthropic models to be customized (#16376) 2024-08-16 14:02:37 -06:00