From 3198c23dcb3bbfaf04c669643aa3aea561c0f35b Mon Sep 17 00:00:00 2001 From: zikajk Date: Wed, 29 Oct 2025 14:37:54 +0100 Subject: [PATCH] Add all model supported by Github Copilot - Motivation: - Claude-haiku-4.5 and Grok-code-fast-1 have small premium request multiplier - And gpt-4o has probably some use-cases as well :-) --- CHANGELOG.md | 1 + integration-test/integration/initialize_test.clj | 8 ++++++++ src/eca/config.clj | 10 +++++++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90dfc290..514e0d42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Unreleased +- Add missing models supported by Github Copilot ## 0.75.0 diff --git a/integration-test/integration/initialize_test.clj b/integration-test/integration/initialize_test.clj index 94601db3..1976775e 100644 --- a/integration-test/integration/initialize_test.clj +++ b/integration-test/integration/initialize_test.clj @@ -17,11 +17,15 @@ "anthropic/claude-opus-4-20250514" "anthropic/claude-sonnet-4-20250514" "anthropic/claude-sonnet-4-5-20250929" + "github-copilot/claude-haiku-4.5" + "github-copilot/claude-opus-4.1" "github-copilot/claude-sonnet-4.5" "github-copilot/gemini-2.5-pro" "github-copilot/gpt-4.1" + "github-copilot/gpt-4o" "github-copilot/gpt-5" "github-copilot/gpt-5-mini" + "github-copilot/grok-code-fast-1" "google/gemini-2.0-flash" "google/gemini-2.5-pro" "openai/gpt-4.1" @@ -77,11 +81,15 @@ "anthropic/claude-opus-4-20250514" "anthropic/claude-sonnet-4-20250514" "anthropic/claude-sonnet-4-5-20250929" + "github-copilot/claude-haiku-4.5" + "github-copilot/claude-opus-4.1" "github-copilot/claude-sonnet-4.5" "github-copilot/gemini-2.5-pro" "github-copilot/gpt-4.1" + "github-copilot/gpt-4o" "github-copilot/gpt-5" "github-copilot/gpt-5-mini" + "github-copilot/grok-code-fast-1" "google/gemini-2.0-flash" "google/gemini-2.5-pro" "my-custom/bar2" diff --git a/src/eca/config.clj b/src/eca/config.clj index deceea5a..e684df80 100644 --- a/src/eca/config.clj +++ b/src/eca/config.clj @@ -58,11 +58,15 @@ :url "https://api.githubcopilot.com" :key nil ;; not supported, requires login auth :keyEnv nil ;; not supported, requires login auth - :models {"gpt-5" {} + :models {"claude-haiku-4.5" {} + "claude-opus-4.1" {} + "claude-sonnet-4.5" {} + "gpt-5" {} "gpt-5-mini" {} "gpt-4.1" {} - "gemini-2.5-pro" {} - "claude-sonnet-4.5" {}}} + "gpt-4o" {} + "grok-code-fast-1" {} + "gemini-2.5-pro" {}}} "google" {:api "openai-chat" :url "https://generativelanguage.googleapis.com/v1beta/openai" :key nil