pub fn new(api_key: String) -> Client {
            Client {
                _api_key: api_key,
                _base_url: String::from("https://api.openai.com/v1"),
            }
        }
// constructor that takes the user's openai api key
constructor that takes the user's openai api key
constructor that takes the user ' s openai api key
pub fn new(api_key: String) -> Client {
            Client {
                _api_key: api_key,
                _base_url: String::from("https://api.openai.com/v1"),
            }
        }
pub fn new ( api_key : String ) -> Client { Client { _api_key : api_key , _base_url : String :: from ( " " ) , } }
constructor that takes the user's openai api key
constructor that takes the user ' s openai api key
api_key
String
api_key
String