@zuplo/lint-win32-x64 7.8.20 → 7.8.21

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.
@@ -626,6 +626,103 @@
626
626
  }
627
627
  }
628
628
  },
629
+ {
630
+ "if": {
631
+ "properties": {
632
+ "policyType": {
633
+ "enum": [
634
+ "ai-gateway-model-override",
635
+ "ai-gateway-model-override-inbound"
636
+ ]
637
+ }
638
+ },
639
+ "required": ["policyType"]
640
+ },
641
+ "then": {
642
+ "properties": {
643
+ "handler": {
644
+ "properties": {
645
+ "options": {
646
+ "type": "object",
647
+ "additionalProperties": false,
648
+ "required": ["models"],
649
+ "properties": {
650
+ "models": {
651
+ "type": "object",
652
+ "title": "Models",
653
+ "description": "Override rules grouped by AI Gateway capability.",
654
+ "additionalProperties": false,
655
+ "minProperties": 1,
656
+ "properties": {
657
+ "completions": {
658
+ "title": "Completions Override",
659
+ "description": "Rule for chat completions, Responses, and Anthropic Messages requests.",
660
+ "oneOf": [
661
+ {
662
+ "type": "object",
663
+ "additionalProperties": false,
664
+ "required": ["force"],
665
+ "properties": {
666
+ "force": {
667
+ "title": "Forced Model",
668
+ "description": "The model every request uses; a request-selected model is ignored.",
669
+ "$ref": "#/$defs/ai-gateway-model-override/modelRef"
670
+ }
671
+ }
672
+ },
673
+ {
674
+ "type": "object",
675
+ "additionalProperties": false,
676
+ "required": ["default"],
677
+ "properties": {
678
+ "default": {
679
+ "title": "Default Model",
680
+ "description": "The model used only when a request does not select one.",
681
+ "$ref": "#/$defs/ai-gateway-model-override/modelRef"
682
+ }
683
+ }
684
+ }
685
+ ]
686
+ },
687
+ "embeddings": {
688
+ "title": "Embeddings Override",
689
+ "description": "Rule for embedding requests.",
690
+ "oneOf": [
691
+ {
692
+ "type": "object",
693
+ "additionalProperties": false,
694
+ "required": ["force"],
695
+ "properties": {
696
+ "force": {
697
+ "title": "Forced Model",
698
+ "description": "The model every request uses; a request-selected model is ignored.",
699
+ "$ref": "#/$defs/ai-gateway-model-override/modelRef"
700
+ }
701
+ }
702
+ },
703
+ {
704
+ "type": "object",
705
+ "additionalProperties": false,
706
+ "required": ["default"],
707
+ "properties": {
708
+ "default": {
709
+ "title": "Default Model",
710
+ "description": "The model used only when a request does not select one.",
711
+ "$ref": "#/$defs/ai-gateway-model-override/modelRef"
712
+ }
713
+ }
714
+ }
715
+ ]
716
+ }
717
+ }
718
+ }
719
+ }
720
+ }
721
+ }
722
+ }
723
+ }
724
+ }
725
+ },
629
726
  {
630
727
  "if": {
631
728
  "properties": {
@@ -9588,6 +9685,14 @@
9588
9685
  "pattern": "^[^/\\s]+/.+$"
9589
9686
  }
9590
9687
  },
9688
+ "ai-gateway-model-override": {
9689
+ "modelRef": {
9690
+ "type": "string",
9691
+ "title": "Provider and Model",
9692
+ "description": "A model reference in providerName/model form, split on the first slash.",
9693
+ "pattern": "^[^/\\s]+/.+$"
9694
+ }
9695
+ },
9591
9696
  "axiomatics-authz-inbound": {
9592
9697
  "attribute": {
9593
9698
  "type": "array",
package/bin/version.txt CHANGED
@@ -1 +1 @@
1
- 7.8.20
1
+ 7.8.21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/lint-win32-x64",
3
- "version": "7.8.20",
3
+ "version": "7.8.21",
4
4
  "description": "The win32-x64 binary for zuplo-lint, the Zuplo API linter.",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",