Skip to content

feat(api): register model_context_window_exceeded StopReason#296

Open
jamesjarvis wants to merge 1 commit intoanthropics:mainfrom
jamesjarvis:fix/register-model-context-window-exceeded-stop-reason
Open

feat(api): register model_context_window_exceeded StopReason#296
jamesjarvis wants to merge 1 commit intoanthropics:mainfrom
jamesjarvis:fix/register-model-context-window-exceeded-stop-reason

Conversation

@jamesjarvis
Copy link
Copy Markdown

Summary

  • Adds StopReasonModelContextWindowExceeded constant to the stable StopReason enum in message.go
  • This stop reason already exists in BetaStopReason (in betamessage.go) and is documented in the migration guide, but was missing from the stable API's enum

Closes #295

Add StopReasonModelContextWindowExceeded constant to the stable
StopReason enum, matching the existing BetaStopReason equivalent.

Closes anthropics#295
@jamesjarvis jamesjarvis requested a review from a team as a code owner March 17, 2026 11:37
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.

Register model_context_window_exceeded StopReason

1 participant