fix!: LLM truncation error catch#906
Merged
jemeza-codegen merged 3 commits intodevelopfrom Mar 19, 2025
Merged
Conversation
… it reaching its max output token limit
kopekC
approved these changes
Mar 19, 2025
Contributor
|
🎉 This PR is included in version 0.52.11 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Mar 26, 2025
Zeeeepa
added a commit
to Zeeeepa/codegen
that referenced
this pull request
Apr 17, 2025
# Motivation The llm response sometimes gets truncated preventing it from calling the create file tool # Content We know check to see why the llm stopped producing tokens. If the reason is "max_tokens_reached" we return an error to the llm # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
Zeeeepa
added a commit
to Zeeeepa/codegen
that referenced
this pull request
Apr 23, 2025
Original commit by jemeza-codegen: fix!: LLM truncation error catch (codegen-sh#906) # Motivation The llm response sometimes gets truncated preventing it from calling the create file tool # Content We know check to see why the llm stopped producing tokens. If the reason is "max_tokens_reached" we return an error to the llm # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
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.
Motivation
The llm response sometimes gets truncated preventing it from calling the create file tool
Content
We know check to see why the llm stopped producing tokens. If the reason is "max_tokens_reached" we return an error to the llm
Testing
Please check the following before marking your PR as ready for review