Skip to content

Commit 6b2577d

Browse files
committed
typo
1 parent 389868e commit 6b2577d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v1/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl OpenAIClient {
143143
async fn build_request(&self, method: Method, path: &str) -> reqwest::RequestBuilder {
144144
let mut url = format!("{}/{}", self.api_endpoint, path);
145145

146-
if let Some(api_version) = &self.api_key {
146+
if let Some(api_version) = &self.api_version {
147147
url = format!("{}?api-version={}", url, api_version);
148148
}
149149

0 commit comments

Comments
 (0)