Repository navigation
fix(vertex): send every system message as systemInstruction - #14
Merged
Merged
Conversation
Contents already skips all system messages, but systemInstruction only read messages[0] and its first text part, so a second system message, a later one, or extra text parts were dropped silently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aj15m1tbSVxFnVTaHpqi3X
voodoohop
added a commit
to pollinations/pollinations
that referenced
this pull request
Oct 4, 2026
- Pin pollinations/gateway#14: Gemini on Vertex now receives every system message and text part Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
messages[0], and kept only its first text part.contentsskips all system messages, so the rest vanished silently.systemInstructionnow carries all system/developer messages, in order, with every text part.google/gemini-3-flash-preview, two system messages): only the first was followed. Eight other providers followed both.test:parameters: fails on main (1 part), passes here (3 parts).--no-verify: main already fails the repo-wide Prettier check on 6 files, so the pre-commit hook blocks every commit.Found while reviewing pollinations/pollinations#16362.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Aj15m1tbSVxFnVTaHpqi3X