valentinegb / openai

An unofficial Rust library for the OpenAI API.
https://crates.io/crates/openai/
MIT License
61 stars 18 forks source link

BASE_URL configurable through setter #57

Closed Lur1an closed 1 year ago

Lur1an commented 1 year ago

Implements enhancement discussed in #56

The BASE_URL value in lib.rs can now be configured through its setter set_base_url just as OPENAI_KEY. It is still initialized with the same value as before To initialize it with the same default value as before lazy_static was added as a dependency.