Skip to content
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

Fix no codeblock error by re-prompting to LLM's incomplete response #436

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devjpt23
Copy link
Contributor

The "No codeblocks" as faced in earlier in issue 350. The issue arises when the LLM responds without including two sets of triple backticks (```) in the updated file content.

To address this, this PR modifieskai_application.py so that if a response lacks proper code blocks and triggers the message "No codeblocks...", the system will automatically re-invoke the LLM, requesting a complete and properly formatted response.

@devjpt23 devjpt23 force-pushed the fixing-no-codeblock-error branch 2 times, most recently from eb11cc1 to 5605266 Compare October 20, 2024 16:31
@devjpt23 devjpt23 marked this pull request as draft October 23, 2024 14:41
@devjpt23 devjpt23 force-pushed the fixing-no-codeblock-error branch 5 times, most recently from 2d15b9b to 19c2820 Compare October 24, 2024 22:15
@devjpt23 devjpt23 marked this pull request as ready for review October 25, 2024 07:55
@devjpt23 devjpt23 force-pushed the fixing-no-codeblock-error branch from 19c2820 to 8d204aa Compare October 27, 2024 15:40
@devjpt23 devjpt23 force-pushed the fixing-no-codeblock-error branch 5 times, most recently from 4857944 to 24fb2eb Compare October 31, 2024 21:12
@devjpt23 devjpt23 force-pushed the fixing-no-codeblock-error branch 2 times, most recently from ae3955f to 13a94f9 Compare November 4, 2024 18:12
@devjpt23 devjpt23 changed the title Fixing no codeblock error Fix no codeblock error by re-prompting to LLM's incomplete response Nov 4, 2024
@devjpt23 devjpt23 force-pushed the fixing-no-codeblock-error branch from 13a94f9 to a839ba2 Compare November 4, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant