Update src/config/api_ada_configs.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/1313/head
magisk317 2025-10-23 17:41:54 +08:00 committed by GitHub
parent cc3c324d47
commit 43b7a669b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 6 deletions

View File

@ -83,12 +83,7 @@ class APIProvider(ConfigBase):
raise ValueError("API密钥不能为空请在配置中设置有效的API密钥。")
# 按顺序去重
ordered_keys: List[str] = []
seen: Set[str] = set()
for key in raw_keys:
if key not in seen:
ordered_keys.append(key)
seen.add(key)
ordered_keys = list(dict.fromkeys(raw_keys))
self._ordered_keys = ordered_keys
self._key_index = 0