Repository navigation
fix(decisions): gemini-decision-1 needs a description on every choice and level - #125
Merged
Merged
Conversation
added 3 commits
November 18, 2026 10:59
… and level Gemini Decision 1 refuses a choice or score level without a description string (gateway 400 before payment, probed on sol.blockrun.ai 2026-11-18). buildDecisionsBody now throws an unpaid error before sending, naming the item. gpt-6-luna is unchanged. README and JSDoc examples give every item a description, so they work on both models.
…d can be fractional
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.
Problem
gemini-decision-1launched on sol.blockrun.ai and blockrun.ai on 2026-11-18. It needs adescriptionstring on everychoiceand every scorelevel. An empty string is fine.Without one, the gateway answers 400 before payment. Nothing is charged, but the call fails. The README and JSDoc examples leave some descriptions out, so copying them with
model: 'gemini-decision-1'fails.Probed on sol on 2026-11-18. Each probe was refused before payment, so they cost nothing:
questions[0].choices[0].description must be a string (it may be empty)questions[0].levels[0].description must be a string (it may be empty)Change
buildDecisionsBodynow throws an"unpaid"error before sending when the model isgemini-decision-1orgoogle/gemini-decision-1and a choice or level has nodescriptionstring. The error names the exact item.Tests
gemini-decision-1 descriptionssuite. Five of its cases failed before the fix:"unpaid"error (nothing was sent).openai/id) does not require descriptions.vitest run: 1202 passed, 12 skipped.tsc --noEmitandeslint src/are clean.gemini-decision-1and ongpt-6-lunaon sol.Noticed, not changed here
On the same input, Gemini returns
scoreas a decimal (1.43), while luna returns an integer index (1). The README describesscoreas an index. The docs or the response type may need a note. That is a separate decision.🤖 Generated with Claude Code