8 lines
382 B
TypeScript
8 lines
382 B
TypeScript
|
|
import { isGptModel } from "./types"
|
||
|
|
|
||
|
|
export const GPT_APPLY_PATCH_GUIDANCE = "Use the `edit` and `write` tools for file changes. Do not use `apply_patch` on GPT models - it is unreliable here and can hang during verification."
|
||
|
|
|
||
|
|
export function getGptApplyPatchPermission(model: string): Record<string, "deny"> {
|
||
|
|
return isGptModel(model) ? { apply_patch: "deny" as const } : {}
|
||
|
|
}
|