(copilotPlan: string)
| 413 | export type CopilotPlanType = "free" | "paid" |
| 414 | |
| 415 | export function detectCopilotPlanType(copilotPlan: string): CopilotPlanType { |
| 416 | const lower = copilotPlan.toLowerCase() |
| 417 | if (lower.includes("free") || lower === "copilot_for_free") { |
| 418 | return "free" |
| 419 | } |
| 420 | return "paid" |
| 421 | } |
| 422 | |
| 423 | export function getCopilotMultiplier(modelId: string, plan: CopilotPlanType): number | null { |
| 424 | const candidates = copilotModelCandidates(modelId) |
nothing calls this directly
no outgoing calls
no test coverage detected