hedgequantx 2.7.79 → 2.7.81
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
CHANGED
|
@@ -140,10 +140,11 @@ const fetchProviderModels = async (providerId) => {
|
|
|
140
140
|
m.id.toLowerCase().includes(prefix)
|
|
141
141
|
);
|
|
142
142
|
|
|
143
|
+
// Return only filtered models for this provider (empty if none found)
|
|
143
144
|
return {
|
|
144
|
-
success:
|
|
145
|
-
models: filtered
|
|
146
|
-
error: null
|
|
145
|
+
success: filtered.length > 0,
|
|
146
|
+
models: filtered,
|
|
147
|
+
error: filtered.length === 0 ? `No ${providerId} models available` : null
|
|
147
148
|
};
|
|
148
149
|
};
|
|
149
150
|
|
|
@@ -373,11 +373,14 @@ const ensureRunning = async (onProgress = null) => {
|
|
|
373
373
|
* @returns {Promise<Object>} { success, url, childProcess, isHeadless, error }
|
|
374
374
|
*/
|
|
375
375
|
const getLoginUrl = async (provider) => {
|
|
376
|
+
// CLIProxyAPI login flags per provider (from --help)
|
|
376
377
|
const providerFlags = {
|
|
377
|
-
anthropic: '-claude-login',
|
|
378
|
-
openai: '-codex-login',
|
|
379
|
-
google: '-
|
|
380
|
-
qwen: '-qwen-login'
|
|
378
|
+
anthropic: '-claude-login', // Claude Code
|
|
379
|
+
openai: '-codex-login', // OpenAI Codex
|
|
380
|
+
google: '-login', // Gemini CLI (Google Account)
|
|
381
|
+
qwen: '-qwen-login', // Qwen Code
|
|
382
|
+
antigravity: '-antigravity-login', // Antigravity
|
|
383
|
+
iflow: '-iflow-login' // iFlow
|
|
381
384
|
};
|
|
382
385
|
|
|
383
386
|
const flag = providerFlags[provider];
|