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.
2 parents 30c1772 + efd3672 commit 0ab08c8Copy full SHA for 0ab08c8
src/v1/api.rs
@@ -35,8 +35,7 @@ pub struct Client {
35
36
impl Client {
37
pub fn new(api_key: String) -> Self {
38
- let endpoint =
39
- std::env::var("OPENAI_API_ENDPOINT").unwrap_or_else(|_| API_URL_V1.to_owned());
+ let endpoint = std::env::var("OPENAI_API_BASE").unwrap_or_else(|_| API_URL_V1.to_owned());
40
Self::new_with_endpoint(endpoint, api_key)
41
}
42
0 commit comments