@aeye/cletus 0.1.4 → 0.1.6
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/dist/index.js +10 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -414667,13 +414667,16 @@ var OpenRouterProvider = class extends OpenAIProvider {
|
|
|
414667
414667
|
}
|
|
414668
414668
|
if (config3.defaultParams) {
|
|
414669
414669
|
const dp = config3.defaultParams;
|
|
414670
|
-
|
|
414671
|
-
|
|
414672
|
-
|
|
414673
|
-
|
|
414674
|
-
|
|
414675
|
-
|
|
414676
|
-
|
|
414670
|
+
if (dp.providers) {
|
|
414671
|
+
const { allowFallbacks, requireParameters, dataCollection, maxPrice, ...provider } = dp.providers;
|
|
414672
|
+
params.provider = {
|
|
414673
|
+
allow_fallbacks: allowFallbacks,
|
|
414674
|
+
require_parameters: requireParameters,
|
|
414675
|
+
data_collection: dataCollection,
|
|
414676
|
+
max_price: maxPrice,
|
|
414677
|
+
...provider
|
|
414678
|
+
};
|
|
414679
|
+
}
|
|
414677
414680
|
if (dp.transforms) {
|
|
414678
414681
|
params.transforms = dp.transforms;
|
|
414679
414682
|
}
|