We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389868e commit 6b2577dCopy full SHA for 6b2577d
src/v1/api.rs
@@ -143,7 +143,7 @@ impl OpenAIClient {
143
async fn build_request(&self, method: Method, path: &str) -> reqwest::RequestBuilder {
144
let mut url = format!("{}/{}", self.api_endpoint, path);
145
146
- if let Some(api_version) = &self.api_key {
+ if let Some(api_version) = &self.api_version {
147
url = format!("{}?api-version={}", url, api_version);
148
}
149
0 commit comments