mirror of https://github.com/garrytan/gstack.git
Merge c506e7aa64 into 2beb636f7c
This commit is contained in:
commit
2849c0a691
|
|
@ -0,0 +1,15 @@
|
|||
{{INHERIT:gpt}}
|
||||
|
||||
**Anti-verbosity protocol (additional).** Your default output mode is too verbose for
|
||||
tools that value terse output. Constrain:
|
||||
|
||||
- Status updates: one line, not a paragraph.
|
||||
- Code explanations: only when the user asked for one, or when the code is genuinely
|
||||
surprising.
|
||||
- Do not narrate what you are about to do. Just do it.
|
||||
- Do not repeat the user's request back to them.
|
||||
- When showing code changes, show the changed lines with minimal surrounding context.
|
||||
- Markdown headings are not decoration. Use them only when structural.
|
||||
|
||||
**Cap answers at the shortest form that contains the answer.** If the answer is a
|
||||
one-line command, reply with a one-line command.
|
||||
|
|
@ -16,6 +16,7 @@ export const ALL_MODEL_NAMES = [
|
|||
'opus-4-7',
|
||||
'gpt',
|
||||
'gpt-5.4',
|
||||
'gpt-5.6',
|
||||
'gemini',
|
||||
'o-series',
|
||||
] as const;
|
||||
|
|
@ -28,6 +29,7 @@ export type Model = (typeof ALL_MODEL_NAMES)[number];
|
|||
* Precedence rules:
|
||||
* 1. Exact match against ALL_MODEL_NAMES → return as-is.
|
||||
* 2. Family heuristics for common variants:
|
||||
* - `gpt-5.6-sol`, `gpt-5.6-*` → `gpt-5.6`
|
||||
* - `gpt-5.4-mini`, `gpt-5.4-turbo`, `gpt-5.4-*` → `gpt-5.4`
|
||||
* - `gpt-*` (anything else GPT) → `gpt`
|
||||
* - `o3`, `o4`, `o4-mini`, `o1`, `o1-mini`, `o1-pro` → `o-series`
|
||||
|
|
@ -49,6 +51,7 @@ export function resolveModel(input: string): Model | null {
|
|||
}
|
||||
|
||||
// Family heuristics
|
||||
if (/^gpt-5\.6(-|$)/.test(s)) return 'gpt-5.6';
|
||||
if (/^gpt-5\.4(-|$)/.test(s)) return 'gpt-5.4';
|
||||
if (/^gpt(-|$)/.test(s)) return 'gpt';
|
||||
if (/^o[0-9]+(-|$)/.test(s)) return 'o-series';
|
||||
|
|
|
|||
Loading…
Reference in New Issue