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

14
pi/AGENTS.md Normal file
View file

@ -0,0 +1,14 @@
# Global Pi Instructions
## Version Control
Prefer Jujutsu (`jj`) over Git for source-control operations.
- Use `jj status` instead of `git status`.
- Use `jj diff` instead of `git diff`.
- Use `jj log` instead of `git log`.
- Use `jj describe` for change descriptions.
- Use `jj new`, `jj split`, and `jj squash` for change management.
- Avoid `git add`, `git commit`, and direct index/staging workflows unless explicitly requested.
- Git commands are acceptable only for operations that `jj` cannot perform or when the user asks for Git specifically.
- When reporting changes, mention the active `jj` change/workspace state rather than Git staging state.

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
}
}
]
}
}
}