From 22a35f89e08684e601230b1f0e67fee240cf4ace Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Wed, 5 Aug 2026 19:51:12 -0400 Subject: [PATCH] test(ai): remove redundant Copilot routing test --- packages/ai/test/provider/github-copilot.test.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 packages/ai/test/provider/github-copilot.test.ts diff --git a/packages/ai/test/provider/github-copilot.test.ts b/packages/ai/test/provider/github-copilot.test.ts deleted file mode 100644 index 7b194ca7909..00000000000 --- a/packages/ai/test/provider/github-copilot.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { describe, expect, test } from "bun:test" -import { shouldUseResponsesApi } from "@opencode-ai/ai/providers/github-copilot" - -describe("GitHub Copilot", () => { - test("selects the endpoint from explicit metadata before the model ID fallback", () => { - expect(shouldUseResponsesApi("mai-code-1-flash-picker", "responses")).toBe(true) - expect(shouldUseResponsesApi("gpt-5", "chat")).toBe(false) - expect(shouldUseResponsesApi("gpt-5")).toBe(true) - expect(shouldUseResponsesApi("gpt-5.1-codex")).toBe(true) - expect(shouldUseResponsesApi("gpt-4o")).toBe(false) - expect(shouldUseResponsesApi("gpt-5-mini")).toBe(false) - expect(shouldUseResponsesApi("gpt-5-mini-2025-08-07")).toBe(false) - }) -})