hedgequantx 2.7.75 → 2.7.76
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/src/pages/ai-agents.js +4 -0
package/package.json
CHANGED
package/src/pages/ai-agents.js
CHANGED
|
@@ -143,8 +143,12 @@ const handleCliProxyConnection = async (provider, config, boxWidth) => {
|
|
|
143
143
|
|
|
144
144
|
// First, check if models are already available (existing auth)
|
|
145
145
|
console.log(chalk.gray(` CHECKING EXISTING AUTHENTICATION...`));
|
|
146
|
+
|
|
146
147
|
const existingModels = await cliproxy.fetchProviderModels(provider.id);
|
|
147
148
|
|
|
149
|
+
// Debug output
|
|
150
|
+
console.log(chalk.gray(` > RESULT: success=${existingModels.success}, models=${existingModels.models?.length || 0}, error=${existingModels.error || 'none'}`));
|
|
151
|
+
|
|
148
152
|
if (existingModels.success && existingModels.models.length > 0) {
|
|
149
153
|
// Models already available - skip OAuth, go directly to model selection
|
|
150
154
|
console.log(chalk.green(` ✓ ALREADY AUTHENTICATED`));
|