Skip to content

fix(request): ensure trailing user turn in request contents - #78

Merged
anthonyhaussman merged 1 commit into
mainfrom
tone/fix/trailing-model-turn-normalization
Aug 28, 2026
Merged

fix(request): ensure trailing user turn in request contents#78
anthonyhaussman merged 1 commit into
mainfrom
tone/fix/trailing-model-turn-normalization

Conversation

@anthonyhaussman

Copy link
Copy Markdown
Owner

Description

Request Preparation

Normalize request sequence by appending a synthetic user continue turn when conversation contents end in a model or assistant role.
Prevent upstream Antigravity API rejection with error Requests ending with a model turn are not supported.

Append synthetic user turn when payload ends in model or assistant role.
Prevents API failure on requests ending with model turn.

Assisted-by: Gemini 3.7 Flash
@anthonyhaussman anthonyhaussman self-assigned this Aug 28, 2026
@anthonyhaussman
anthonyhaussman marked this pull request as ready for review August 28, 2026 06:05
@anthonyhaussman
anthonyhaussman merged commit 92142af into main Aug 28, 2026
2 checks passed
@anthonyhaussman
anthonyhaussman deleted the tone/fix/trailing-model-turn-normalization branch August 28, 2026 06:06
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.

1 participant