hedgequantx 2.7.79 → 2.7.80
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
|
|