Fix regression that caused Anthropic custom models to error (#15329)
/cc: @bennetbo Release Notes: - N/A Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
4bd935b409
commit
70e895a8c7
4 changed files with 4 additions and 14 deletions
|
@ -4697,8 +4697,6 @@ async fn complete_with_anthropic(
|
|||
session: UserSession,
|
||||
api_key: Arc<str>,
|
||||
) -> Result<()> {
|
||||
let model = anthropic::Model::from_id(&request.model)?;
|
||||
|
||||
let mut system_message = String::new();
|
||||
let messages = request
|
||||
.messages
|
||||
|
@ -4734,7 +4732,7 @@ async fn complete_with_anthropic(
|
|||
anthropic::ANTHROPIC_API_URL,
|
||||
&api_key,
|
||||
anthropic::Request {
|
||||
model,
|
||||
model: request.model,
|
||||
messages,
|
||||
stream: true,
|
||||
system: system_message,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue