Merge pull request #108 from desprit/main

fix: route all traffic through proxy
This commit is contained in:
Dongri Jin
2024-09-11 05:37:53 +09:00
committed by GitHub

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
};