fix(providers): align compatible chat client and response test
This commit is contained in:
parent
b4b379e3e7
commit
e1aeabdb5f
1 changed files with 2 additions and 1 deletions
|
|
@ -1054,7 +1054,7 @@ impl Provider for OpenAiCompatibleProvider {
|
||||||
|
|
||||||
let url = self.chat_completions_url();
|
let url = self.chat_completions_url();
|
||||||
let response = self
|
let response = self
|
||||||
.apply_auth_header(self.client.post(&url).json(&native_request), credential)
|
.apply_auth_header(self.http_client().post(&url).json(&native_request), credential)
|
||||||
.send()
|
.send()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
@ -1635,6 +1635,7 @@ mod tests {
|
||||||
arguments: Some(r#"{"command":"pwd"}"#.to_string()),
|
arguments: Some(r#"{"command":"pwd"}"#.to_string()),
|
||||||
}),
|
}),
|
||||||
}]),
|
}]),
|
||||||
|
reasoning_content: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
let parsed = OpenAiCompatibleProvider::parse_native_response(message);
|
let parsed = OpenAiCompatibleProvider::parse_native_response(message);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue