Files
oh-my-opencode/src/agents/gpt-apply-patch-guard.ts
T

8 lines
382 B
TypeScript
Raw Normal View History

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 } : {}
}