Skip to content

Update the haiku model used in validate_api_access since claude-3-5-haiku-20241022 is deprecated#73

Open
edhedges wants to merge 4 commits intoanthropics:mainfrom
edhedges:main
Open

Update the haiku model used in validate_api_access since claude-3-5-haiku-20241022 is deprecated#73
edhedges wants to merge 4 commits intoanthropics:mainfrom
edhedges:main

Conversation

@edhedges
Copy link

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, ...)

Copilot AI and others added 4 commits February 24, 2026 05:20
…_api_access

Co-authored-by: edhedges <825537+edhedges@users.noreply.github.com>
…ation pings

Co-authored-by: edhedges <825537+edhedges@users.noreply.github.com>
Use claude-haiku-4-5 for API validation instead of deprecated claude-3-5-haiku-20241022
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