import type { ProviderCapabilities, ProviderParams } from "../types";

/**
 * Tier 4 — GitHub Copilot OAuth.
 *
 * Standard image_url content parts with image MIME types work (user
 * confirmed).  The Copilot proxy rejects application/pdf MIME input,
 * so PDF support is disabled; users should use text mode / MinerU for PDFs.
 */

export function matches(params: ProviderParams): boolean {
  return (params.authMode || "").toLowerCase() === "copilot_auth";
}

export const capabilities: Omit<
  ProviderCapabilities,
  "multimodal" | "promptCache"
> = {
  tier: "copilot",
  label: "GitHub Copilot",
  pdf: "none",
  images: true,
};
