mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 15:15:34 +00:00
Merge pull request #108 from desprit/main
fix: route all traffic through proxy
This commit is contained in:
@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user