Skip to content

Commit

Permalink
Merge pull request #108 from desprit/main
Browse files Browse the repository at this point in the history
fix: route all traffic through proxy
  • Loading branch information
dongri authored Sep 10, 2024
2 parents 0f03efe + 7beb559 commit 14b07e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v1/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit 14b07e8

Please sign in to comment.