mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
feat: Adjust the priority of base_url in config to be higher than that of the environment variable DASHSCOPE_BASE_URL
This commit is contained in:
@@ -42,8 +42,8 @@ export function loadConfig(flags: GlobalFlags): Config {
|
||||
|
||||
const baseUrl =
|
||||
flags.baseUrl ||
|
||||
process.env.DASHSCOPE_BASE_URL ||
|
||||
file.base_url ||
|
||||
process.env.DASHSCOPE_BASE_URL ||
|
||||
REGIONS[region] ||
|
||||
REGIONS.cn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user