agentgui 1.0.601 → 1.0.602
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +7 -1
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -894,6 +894,12 @@ const PROVIDER_CONFIGS = {
|
|
|
894
894
|
path.join(os.homedir(), '.config', 'proxypilot', 'config.json')
|
|
895
895
|
],
|
|
896
896
|
configFormat: (apiKey, model) => ({ api_key: apiKey, default_model: model })
|
|
897
|
+
},
|
|
898
|
+
'codex': {
|
|
899
|
+
name: 'Codex CLI', configPaths: [
|
|
900
|
+
path.join(os.homedir(), '.codex', 'auth.json')
|
|
901
|
+
],
|
|
902
|
+
configFormat: (apiKey) => ({ auth_mode: 'apikey', OPENAI_API_KEY: apiKey })
|
|
897
903
|
}
|
|
898
904
|
};
|
|
899
905
|
|
|
@@ -917,7 +923,7 @@ function getProviderConfigs() {
|
|
|
917
923
|
if (fs.existsSync(configPath)) {
|
|
918
924
|
const content = fs.readFileSync(configPath, 'utf8');
|
|
919
925
|
const parsed = JSON.parse(content);
|
|
920
|
-
const rawKey = parsed.api_key || parsed.apiKey || parsed.github_token || '';
|
|
926
|
+
const rawKey = parsed.api_key || parsed.apiKey || parsed.github_token || parsed.OPENAI_API_KEY || '';
|
|
921
927
|
configs[providerId] = {
|
|
922
928
|
name: config.name,
|
|
923
929
|
apiKey: maskKey(rawKey),
|