Skip to content

fix: update max_output_token limitation. #308

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 7 commits into from
Jan 11, 2024
Merged

Conversation

Genesis929
Copy link
Collaborator

@Genesis929 Genesis929 commented Jan 8, 2024

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #319133692 🦕

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Jan 8, 2024
@Genesis929 Genesis929 requested a review from GarrettWu January 8, 2024 19:15
@Genesis929 Genesis929 force-pushed the huanc-docstring-fix-llm branch from 48f655b to 1867bb3 Compare January 8, 2024 19:16
@Genesis929 Genesis929 changed the title Update max_output_token limitation. fix: update max_output_token limitation. Jan 8, 2024
@Genesis929 Genesis929 added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 8, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 8, 2024
@Genesis929 Genesis929 marked this pull request as ready for review January 8, 2024 20:06
@Genesis929 Genesis929 requested review from a team as code owners January 8, 2024 20:06
@Genesis929 Genesis929 requested a review from ashleyxuu January 8, 2024 20:06
Copy link
Contributor

@ashleyxuu ashleyxuu left a comment

Choose a reason for hiding this comment

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

Thanks!

@ashleyxuu ashleyxuu added the automerge Merge the pull request once unit tests and other checks pass. label Jan 9, 2024
raise ValueError(
f"max_output_token must be [1, 1024] for TextBison model, but is {max_output_tokens}."
)
elif (
Copy link
Contributor

Choose a reason for hiding this comment

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

elif is unnecessary, just if is enough and the logic is simpler.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@Genesis929 Genesis929 requested a review from GarrettWu January 9, 2024 22:45
Copy link

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 10, 2024
@Genesis929 Genesis929 merged commit 5cccd36 into main Jan 11, 2024
@Genesis929 Genesis929 deleted the huanc-docstring-fix-llm branch January 11, 2024 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants