-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovider.schema.json
More file actions
54 lines (54 loc) · 1.76 KB
/
Copy pathprovider.schema.json
File metadata and controls
54 lines (54 loc) · 1.76 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/InterwebAlchemy/model-metadata-central/provider.schema.json",
"title": "Provider Metadata",
"description": "A provider definition for model routing and API configuration",
"type": "object",
"properties": {
"provider_id": {
"description": "Unique identifier for the provider (used in model provider_reference)",
"type": "string",
"pattern": "^[a-z0-9_-]+$"
},
"name": {
"description": "Human-readable provider name (example: OpenAI)",
"type": "string"
},
"website_url": {
"description": "Link to the provider's website",
"type": "string",
"format": "uri"
},
"api_type": {
"description": "The type of API the provider exposes",
"type": "string",
"enum": ["openai_compatible", "anthropic", "openai", "other"]
},
"base_url": {
"description": "The base URL for API requests",
"type": "string",
"format": "uri"
},
"auth_type": {
"description": "How authentication is handled",
"type": "string",
"enum": ["api_key", "bearer", "oauth", "managed", "none"]
},
"routing_priority": {
"description": "Whether this provider routes to other providers (aggregator) or serves models directly",
"type": "string",
"enum": ["direct", "aggregator", "both"]
},
"status": {
"description": "Whether this provider definition is active",
"type": "string",
"enum": ["active", "deprecated", "inactive"],
"default": "active"
},
"notes": {
"description": "Additional notes about the provider",
"type": "string"
}
},
"required": ["provider_id", "name", "api_type", "routing_priority"]
}