Skip to content

Use claude-haiku-4-5 for API validation instead of deprecated claude-3-5-haiku-20241022#1

Merged
edhedges merged 3 commits intomainfrom
copilot/fix-deprecated-model-usage
Feb 24, 2026
Merged

Use claude-haiku-4-5 for API validation instead of deprecated claude-3-5-haiku-20241022#1
edhedges merged 3 commits intomainfrom
copilot/fix-deprecated-model-usage

Conversation

Copy link

Copilot AI commented Feb 24, 2026

validate_api_access() hardcoded claude-3-5-haiku-20241022 which is deprecated, causing all review actions to fail. The method intentionally uses a Haiku model (cheap/fast) for validation pings rather than the configured analysis model.

  • Added VALIDATION_MODEL constant in constants.py set to claude-haiku-4-5
  • Updated validate_api_access() to use VALIDATION_MODEL instead of the hardcoded deprecated string
  • Updated tests to verify validation uses the dedicated constant, not self.model
# Before — hardcoded deprecated model
self.client.messages.create(model="claude-3-5-haiku-20241022", ...)

# After — dedicated constant for validation pings
self.client.messages.create(model=VALIDATION_MODEL, ...)

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix default model usage in review actions Fix hardcoded deprecated model in validate_api_access Feb 24, 2026
Copilot AI requested a review from edhedges February 24, 2026 05:24
@edhedges edhedges marked this pull request as ready for review February 24, 2026 05:27
Copilot AI changed the title Fix hardcoded deprecated model in validate_api_access Use claude-haiku-4-5 for API validation instead of deprecated claude-3-5-haiku-20241022 Feb 24, 2026
Copilot AI requested a review from edhedges February 24, 2026 05:28
@edhedges edhedges merged commit 33d86c8 into main Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants