mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 15:15:34 +00:00
typo
This commit is contained in:
@ -143,7 +143,7 @@ impl OpenAIClient {
|
||||
async fn build_request(&self, method: Method, path: &str) -> reqwest::RequestBuilder {
|
||||
let mut url = format!("{}/{}", self.api_endpoint, path);
|
||||
|
||||
if let Some(api_version) = &self.api_key {
|
||||
if let Some(api_version) = &self.api_version {
|
||||
url = format!("{}?api-version={}", url, api_version);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user