fix: scope provider model keys and pin async credentials

This commit is contained in:
wlx committed 2026-09-29 17:00:55 +08:00
1 parent 58dc904c98
commit 558c0dcdd5
8 files changed
+166 -55

No files matched your search

+3 -3
View File
@@ -94,8 +94,8 @@ OSS_ACCESS_KEY_SECRET=
# Optional per-route upstream key pools. Do not commit real values. Replace
# ROUTE_ID with the normalized MOYI route/model id (uppercase, non-alphanumerics
# replaced by underscores), and separate multiple keys with '|'. Route pools
# take precedence over model pools, then channel-level pools, then the single
# encrypted credential stored in the admin channel record.
# take precedence over provider-scoped model pools, then channel-level pools,
# then the single encrypted credential stored in the admin channel record.
# MOYI_UPSTREAM_API_KEYS_ROUTE_<NORMALIZED_ROUTE_ID>='upstream_key'
# MOYI_UPSTREAM_API_KEYS_MODEL_<NORMALIZED_UPSTREAM_MODEL>='upstream_key'
# MOYI_UPSTREAM_API_KEYS_MODEL_<NORMALIZED_PROVIDER_CODE>_<NORMALIZED_UPSTREAM_MODEL>='upstream_key'
# MOYI_UPSTREAM_API_KEYS_APIPRO='key_for_channel_fallback_1|key_for_channel_fallback_2'