hedgequantx 2.6.72 → 2.6.73
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/menus/ai-agent.js +4 -2
package/package.json
CHANGED
package/src/menus/ai-agent.js
CHANGED
|
@@ -1145,8 +1145,10 @@ const setupConnection = async (provider, option) => {
|
|
|
1145
1145
|
case 'endpoint':
|
|
1146
1146
|
const defaultEndpoint = option.defaultEndpoint || '';
|
|
1147
1147
|
value = await prompts.textInput(chalk.cyan(`ENDPOINT [${defaultEndpoint || 'required'}]:`));
|
|
1148
|
-
if (value
|
|
1149
|
-
|
|
1148
|
+
if (!value || value.trim() === '<' || value.trim() === '') {
|
|
1149
|
+
if (!defaultEndpoint) return await selectProviderOption(provider);
|
|
1150
|
+
}
|
|
1151
|
+
credentials.endpoint = (value && value.trim() !== '<' ? value : defaultEndpoint).trim();
|
|
1150
1152
|
if (!credentials.endpoint) return await selectProviderOption(provider);
|
|
1151
1153
|
break;
|
|
1152
1154
|
|