fix: route all traffic through proxy

This commit is contained in:
Aleksey Bondarev
2024-09-10 18:42:44 +03:00
parent 0f03efeb7a
commit 7beb559b61

View File

@ -118,7 +118,7 @@ impl OpenAIClient {
};
let client = if let Some(proxy) = &self.proxy {
client.proxy(reqwest::Proxy::http(proxy).unwrap())
client.proxy(reqwest::Proxy::all(proxy).unwrap())
} else {
client
};