|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "title": "Models Manifest Schema", |
| 4 | + "description": "Schema for large language model metadata", |
| 5 | + "type": "object", |
| 6 | + "allOf": [ |
| 7 | + { |
| 8 | + "$ref": "./ref/vendor-entity.schema.json" |
| 9 | + }, |
| 10 | + { |
| 11 | + "type": "object", |
| 12 | + "properties": { |
| 13 | + "size": { |
| 14 | + "type": "string", |
| 15 | + "description": "Model parameter size (e.g., '7B', '32B', '200B')" |
| 16 | + }, |
| 17 | + "totalContext": { |
| 18 | + "type": "string", |
| 19 | + "description": "Total context window size (e.g., '32K', '64K', '200K')" |
| 20 | + }, |
| 21 | + "maxOutput": { |
| 22 | + "type": "string", |
| 23 | + "description": "Maximum output token size (e.g., '4K', '8K')" |
| 24 | + }, |
| 25 | + "tokenPricing": { |
| 26 | + "type": "object", |
| 27 | + "description": "Token-based pricing information for API usage (in $/M tokens)", |
| 28 | + "properties": { |
| 29 | + "input": { |
| 30 | + "type": "number", |
| 31 | + "description": "Input token pricing in $/M tokens (e.g., 0.14 for $0.14/1M tokens)" |
| 32 | + }, |
| 33 | + "output": { |
| 34 | + "type": "number", |
| 35 | + "description": "Output token pricing in $/M tokens (e.g., 0.42 for $0.42/1M tokens)" |
| 36 | + }, |
| 37 | + "cache": { |
| 38 | + "type": ["number", "null"], |
| 39 | + "description": "Cache token pricing in $/M tokens (e.g., 0.07 for $0.07/1M tokens, null if not applicable)" |
| 40 | + } |
| 41 | + }, |
| 42 | + "required": ["input", "output", "cache"], |
| 43 | + "additionalProperties": false |
| 44 | + }, |
| 45 | + "platformUrls": { |
| 46 | + "$ref": "./ref/platform-urls.schema.json", |
| 47 | + "description": "URLs to various third-party platform pages for this model" |
| 48 | + } |
| 49 | + }, |
| 50 | + "required": ["size", "totalContext", "maxOutput", "tokenPricing", "platformUrls"] |
| 51 | + } |
| 52 | + ] |
| 53 | +} |
0 commit comments