Skip to content

fix: handle no parts returned from Gemini #5974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

RomneyDa
Copy link
Collaborator

@RomneyDa RomneyDa commented Jun 4, 2025

Description

Fixes for #5776, #5572, #5912, #5762

Background:
Originally I avoided making this simple fix because it wasn't clear why the Gemini API would not send parts within content, since in their api spec content will always contain an array parts, but after quite a bit of tinkering it does seem to be a "bug" on the gemini side, and it only occurs when the maxTokens limit is reached.

An underlying issue is that we don't have maxTokens set for various gemini models in the hub or llm-info. Doing a follow up PR to update those.

UPDATE followup is here #5976

@RomneyDa RomneyDa requested a review from a team as a code owner June 4, 2025 02:47
@RomneyDa RomneyDa requested review from sestinj and removed request for a team June 4, 2025 02:47
Copy link

cubic-dev-ai bot commented Jun 4, 2025

Your cubic subscription is currently inactive. Please reactivate your subscription to receive AI reviews and use cubic.

Copy link

netlify bot commented Jun 4, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 1a9ff7a
🔍 Latest deploy log https://app.netlify.com/projects/continuedev/deploys/683fb3ae7c5d31000898e578

Copy link
Contributor

@sestinj sestinj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jun 4, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 4, 2025
@sestinj sestinj merged commit 422315f into main Jun 4, 2025
37 checks passed
@sestinj sestinj deleted the dallin/iterable-content-gemini branch June 4, 2025 15:33
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jun 4, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants