Allow using a custom model when using zed.dev (#14933)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2024-07-22 12:25:53 +02:00 committed by GitHub
parent a334c69e05
commit 0155435142
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 114 additions and 110 deletions

View file

@ -668,7 +668,11 @@ mod tests {
"version": "1",
"provider": {
"name": "zed.dev",
"default_model": "custom"
"default_model": {
"custom": {
"name": "custom-provider"
}
}
}
}
}"#,
@ -679,7 +683,10 @@ mod tests {
assert_eq!(
AssistantSettings::get_global(cx).provider,
AssistantProvider::ZedDotDev {
model: CloudModel::Custom("custom".into())
model: CloudModel::Custom {
name: "custom-provider".into(),
max_tokens: None
}
}
);
}