Function
baseModel
(overrides: Partial<AuthoredModelData>)
Source from the content-addressed store, hash-verified
| 32 | }); |
| 33 | |
| 34 | function baseModel(overrides: Partial<AuthoredModelData>) { |
| 35 | return { |
| 36 | id: "example/model", |
| 37 | name: "Example Model", |
| 38 | description: "Example model for schema validation and regression tests", |
| 39 | attachment: false, |
| 40 | reasoning: false, |
| 41 | tool_call: true, |
| 42 | release_date: "2026-01-01", |
| 43 | last_updated: "2026-01-01", |
| 44 | modalities: { |
| 45 | input: ["text"], |
| 46 | output: ["text"], |
| 47 | }, |
| 48 | open_weights: false, |
| 49 | limit: { |
| 50 | context: 1_000, |
| 51 | output: 100, |
| 52 | }, |
| 53 | cost: { |
| 54 | input: 1, |
| 55 | output: 2, |
| 56 | }, |
| 57 | ...overrides, |
| 58 | }; |
| 59 | } |
Tested by
no test coverage detected