chore: drop unused values from env_flags (#4188)
For the most part, we try to avoid environment variables in favor of config options so the environment variables do not leak into child processes. These environment variables are no longer honored, so let's delete them to be clear. Ultimately, I would also like to eliminate `CODEX_RS_SSE_FIXTURE` in favor of something cleaner.
This commit is contained in:
parent
0e58870634
commit
87b299aa3f
1 changed files with 0 additions and 10 deletions
|
|
@ -1,16 +1,6 @@
|
|||
use std::time::Duration;
|
||||
|
||||
use env_flags::env_flags;
|
||||
|
||||
env_flags! {
|
||||
pub OPENAI_API_BASE: &str = "https://api.openai.com/v1";
|
||||
|
||||
/// Fallback when the provider-specific key is not set.
|
||||
pub OPENAI_API_KEY: Option<&str> = None;
|
||||
pub OPENAI_TIMEOUT_MS: Duration = Duration::from_millis(300_000), |value| {
|
||||
value.parse().map(Duration::from_millis)
|
||||
};
|
||||
|
||||
/// Fixture path for offline tests (see client.rs).
|
||||
pub CODEX_RS_SSE_FIXTURE: Option<&str> = None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue