feat: enhance excluded models management with UI components, internationalization, and data handling

This commit is contained in:
Supra4E8C
2025-12-03 00:27:45 +08:00
parent d3630373ed
commit c77527cd13
4 changed files with 110 additions and 3 deletions

View File

@@ -230,7 +230,7 @@ export const apiKeysModule = {
},
// 构造Codex配置保持未展示的字段
buildCodexConfig(apiKey, baseUrl, proxyUrl, original = {}, headers = null) {
buildCodexConfig(apiKey, baseUrl, proxyUrl, original = {}, headers = null, excludedModels = null) {
const result = {
...original,
'api-key': apiKey,
@@ -238,6 +238,9 @@ export const apiKeysModule = {
'proxy-url': proxyUrl || ''
};
this.applyHeadersToConfig(result, headers);
if (Array.isArray(excludedModels)) {
result['excluded-models'] = excludedModels;
}
return result;
},