schema-probe

command
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2026 License: None detected not legal advice Imports: 0 Imported by: 0

Documentation

Overview

schema-probe - JSON Schema 特性支持度跨模型对照探测工具.

通过 OpenRouter 对目标模型发送工具调用请求,验证各模型对 JSON Schema 特性的实际支持情况.

探测特性(10 项):

  1. enum 枚举值约束
  2. anyOf / oneOf 联合类型
  3. nested-object 嵌套对象(2 层)
  4. additionalProperties additionalProperties: false 严格模式
  5. $ref / $defs JSON Schema 引用
  6. deep-nesting 深层嵌套(5 层)
  7. long-description 超长 description(>500 字符)
  8. numeric-range minimum / maximum 数值约束
  9. string-length minLength / maxLength 字符串约束
  10. array-items-range minItems / maxItems 数组约束

使用:

source .env && go run ./cmd/schema-probe/ [--models model1,model2]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL