add crofai pi model configuration

This commit is contained in:
Rasyidan Akbar F. 2026-06-19 15:10:12 +07:00
commit 6db85eef8b
5 changed files with 101 additions and 11 deletions

29
pi/models.json Normal file
View file

@ -0,0 +1,29 @@
{
"providers": {
"crofai": {
"baseUrl": "https://crof.ai/v1",
"api": "openai-completions",
"apiKey": "$CROF_API_KEY",
"authHeader": true,
"compat": {
"supportsDeveloperRole": false,
"supportsStore": false
},
"models": [
{
"id": "glm-5.2",
"name": "CrofAI GLM 5.2",
"reasoning": true,
"contextWindow": 1000000,
"maxTokens": 131072,
"cost": {
"input": 0.5,
"output": 2.2,
"cacheRead": 0.08,
"cacheWrite": 0
}
}
]
}
}
}