Skip to content

Commit a5d055f

Browse files
committed
feat: Adjust the priority of base_url in config to be higher than that of the environment variable DASHSCOPE_BASE_URL
1 parent 631a9c1 commit a5d055f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/config/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export function loadConfig(flags: GlobalFlags): Config {
4242

4343
const baseUrl =
4444
flags.baseUrl ||
45-
process.env.DASHSCOPE_BASE_URL ||
4645
file.base_url ||
46+
process.env.DASHSCOPE_BASE_URL ||
4747
REGIONS[region] ||
4848
REGIONS.cn;
4949

0 commit comments

Comments
 (0)