Allow customization of the model used for tool calling (#15479)
We also eliminate the `completion` crate and moved its logic into `LanguageModelRegistry`. Release Notes: - N/A --------- Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
1bfea9d443
commit
99bc90a372
32 changed files with 478 additions and 691 deletions
|
@ -89,9 +89,15 @@ impl AnthropicSettingsContent {
|
|||
models
|
||||
.into_iter()
|
||||
.filter_map(|model| match model {
|
||||
anthropic::Model::Custom { name, max_tokens } => {
|
||||
Some(provider::anthropic::AvailableModel { name, max_tokens })
|
||||
}
|
||||
anthropic::Model::Custom {
|
||||
name,
|
||||
max_tokens,
|
||||
tool_override,
|
||||
} => Some(provider::anthropic::AvailableModel {
|
||||
name,
|
||||
max_tokens,
|
||||
tool_override,
|
||||
}),
|
||||
_ => None,
|
||||
})
|
||||
.collect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue