fix: avoid overwriting the provider.option.baseURL (#880)

This commit is contained in:
zWing
2025-07-12 06:01:28 +08:00
committed by GitHub
parent 4bb8536d34
commit 3249420ad1

View File

@@ -234,7 +234,7 @@ export namespace Provider {
if (!provider) {
const info = database[id]
if (!info) return
if (info.api) options["baseURL"] = info.api
if (info.api && !options["baseURL"]) options["baseURL"] = info.api
providers[id] = {
source,
info,