fix(providers): align compatible chat client and response test
This commit is contained in:
parent
b4b379e3e7
commit
e1aeabdb5f
@ -1054,7 +1054,7 @@ impl Provider for OpenAiCompatibleProvider {
|
||||
|
||||
let url = self.chat_completions_url();
|
||||
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()
|
||||
.await?;
|
||||
|
||||
@ -1635,6 +1635,7 @@ mod tests {
|
||||
arguments: Some(r#"{"command":"pwd"}"#.to_string()),
|
||||
}),
|
||||
}]),
|
||||
reasoning_content: None,
|
||||
};
|
||||
|
||||
let parsed = OpenAiCompatibleProvider::parse_native_response(message);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user