pi: add provider model config
This commit is contained in:
parent
bd1c06d587
commit
2981bbb3c4
5 changed files with 176 additions and 83 deletions
|
|
@ -7,3 +7,16 @@
|
|||
- If a task needs work on a remote host, the agent may use `ssh` from this machine.
|
||||
- Prefer non-destructive remote inspection first, and be explicit when commands are being run on a remote machine.
|
||||
- If the target host or remote command is unclear, ask the user before connecting.
|
||||
|
||||
## Version Control
|
||||
|
||||
- Prefer Jujutsu (`jj`) as the primary version control interface when a repository supports it.
|
||||
- Use `jj status` instead of `git status`.
|
||||
- Use `jj diff` instead of `git diff`.
|
||||
- Use `jj log` instead of `git log` for history inspection.
|
||||
- Use `jj describe` to update the current change description instead of creating a Git commit message directly.
|
||||
- Use `jj new` to start a new change when appropriate.
|
||||
- Use `jj bookmark` workflows for named refs/branches when needed.
|
||||
- Treat Git as the colocated backend/plumbing unless the user explicitly asks for Git commands or the repo does not support `jj`.
|
||||
- Do not run destructive Git commands such as `git reset --hard`, `git checkout`, or `git commit` unless explicitly requested.
|
||||
- If unsure whether a repo is managed by `jj`, inspect non-destructively first with `jj root`, `jj status`, or by checking for `.jj/`.
|
||||
|
|
|
|||
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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,11 @@
|
|||
{
|
||||
"lastChangelogVersion": "0.58.1",
|
||||
"defaultProvider": "anthropic",
|
||||
"defaultModel": "claude-opus-4-6",
|
||||
"defaultThinkingLevel": "high",
|
||||
"theme": "catppuccin-mocha"
|
||||
"lastChangelogVersion": "0.79.9",
|
||||
"defaultProvider": "openai-codex",
|
||||
"defaultModel": "gpt-5.5",
|
||||
"defaultThinkingLevel": "low",
|
||||
"theme": "catppuccin-mocha",
|
||||
"hideThinkingBlock": true,
|
||||
"packages": [
|
||||
"npm:@ff-labs/pi-fff"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue