Allow display name of custom Anthropic models to be customized (#16376)

Also added some docs for our settings.

Release Notes:

- N/A
This commit is contained in:
Nathan Sobo 2024-08-16 14:02:37 -06:00 committed by GitHub
parent ae9e6a9daa
commit 907d76208d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 30 additions and 7 deletions

View file

@ -94,12 +94,14 @@ impl AnthropicSettingsContent {
.filter_map(|model| match model {
anthropic::Model::Custom {
name,
display_name,
max_tokens,
tool_override,
cache_configuration,
max_output_tokens,
} => Some(provider::anthropic::AvailableModel {
name,
display_name,
max_tokens,
tool_override,
cache_configuration: cache_configuration.as_ref().map(