mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-23 07:35:37 +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 {
|
let client = if let Some(proxy) = &self.proxy {
|
||||||
client.proxy(reqwest::Proxy::http(proxy).unwrap())
|
client.proxy(reqwest::Proxy::all(proxy).unwrap())
|
||||||
} else {
|
} else {
|
||||||
client
|
client
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user