pi: add provider model config
This commit is contained in:
parent
bd1c06d587
commit
2981bbb3c4
5 changed files with 176 additions and 83 deletions
80
.pi/agent/models.json
Normal file
80
.pi/agent/models.json
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
{
|
||||
"providers": {
|
||||
"crofai": {
|
||||
"baseUrl": "https://crof.ai/v1",
|
||||
"api": "openai-completions",
|
||||
"apiKey": "$CROFAI_API_KEY",
|
||||
"authHeader": true,
|
||||
"compat": {
|
||||
"supportsDeveloperRole": false,
|
||||
"supportsReasoningEffort": true
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"id": "glm-5.2",
|
||||
"name": "CrofAI: GLM 5.2",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"thinkingLevelMap": {
|
||||
"off": "none",
|
||||
"minimal": "low",
|
||||
"low": "low",
|
||||
"medium": "medium",
|
||||
"high": "high",
|
||||
"xhigh": "high"
|
||||
},
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 2.2,
|
||||
"cacheRead": 0.08,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"wafer": {
|
||||
"baseUrl": "https://pass.wafer.ai/v1",
|
||||
"api": "openai-completions",
|
||||
"apiKey": "$WAFER_API_KEY",
|
||||
"authHeader": true,
|
||||
"headers": {
|
||||
"Wafer-ZDR": "required"
|
||||
},
|
||||
"compat": {
|
||||
"supportsDeveloperRole": false,
|
||||
"supportsReasoningEffort": true,
|
||||
"maxTokensField": "max_tokens"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"id": "GLM-5.2",
|
||||
"name": "Wafer: GLM 5.2",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"thinkingLevelMap": {
|
||||
"off": "none",
|
||||
"minimal": "low",
|
||||
"low": "low",
|
||||
"medium": "medium",
|
||||
"high": "high",
|
||||
"xhigh": "max"
|
||||
},
|
||||
"cost": {
|
||||
"input": 1.2,
|
||||
"output": 4.1,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue