fix(providers): align compatible chat client and response test

This commit is contained in:
Chummy 2026-02-18 22:47:26 +08:00
parent b4b379e3e7
commit e1aeabdb5f

View file

@ -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);