-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathproviders-schema.json
62 lines (62 loc) · 1.79 KB
/
providers-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "Schema for AI model provider information",
"properties": {
"name": {
"type": "string",
"description": "Name of the AI model provider"
},
"website": {
"type": "string",
"format": "uri",
"description": "Official website URL of the provider"
},
"providermodels": {
"type": "array",
"description": "List of AI models offered by the provider",
"items": {
"type": "object",
"description": "Details of a specific AI model",
"properties": {
"model_id": {
"type": "string",
"description": "Unique identifier for the model"
},
"price_per_input_token": {
"type": "number",
"description": "Cost per input token in USD"
},
"price_per_output_token": {
"type": "number",
"description": "Cost per output token in USD"
},
"throughput": {
"type": "number",
"description": "Model's processing speed in tokens per second"
},
"latency": {
"type": "number",
"description": "Average response time in milliseconds"
},
"updated_at": {
"type": "string",
"format": "date",
"description": "Date when the model information was last updated"
}
},
"required": [
"model_id",
"price_per_input_token",
"price_per_output_token",
"throughput",
"latency",
"updated_at"
],
"additionalProperties": false
}
}
},
"required": ["name", "website", "providermodels"],
"additionalProperties": false
}