@aeye/cletus 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -7
  2. 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
- params.provider = {
414671
- allow_fallbacks: dp.providers?.allowFallbacks,
414672
- require_parameters: dp.providers?.requireParameters,
414673
- data_collection: dp.providers?.dataCollection,
414674
- max_price: dp.providers?.maxPrice,
414675
- ...dp.providers
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeye/cletus",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Interactive CLI demo showcasing @aeye capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",