mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-03 19:04:48 +08:00
fix: respect ANTHROPIC_BASE_URL in all client instantiations
This commit is contained in:
@@ -520,7 +520,7 @@ fn read_auth_token() -> Option<String> {
|
||||
.and_then(std::convert::identity)
|
||||
}
|
||||
|
||||
fn read_base_url() -> String {
|
||||
pub fn read_base_url() -> String {
|
||||
std::env::var("ANTHROPIC_BASE_URL").unwrap_or_else(|_| DEFAULT_BASE_URL.to_string())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user