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

Absence of Proper Response Handling for Code Blocks in JSON Outputs #135

Open
kangsuhyun-yanolja opened this issue Sep 25, 2024 · 0 comments

Comments

@kangsuhyun-yanolja
Copy link
Collaborator

The Gemma model is trained to include code blocks when returning JSON responses, but our service does not consider this behavior. As a result, these responses are often treated as bad responses. Currently, our system retries when it encounters this issue, and if it still fails, the response is returned as is, leading users to think the output is incorrect even when it could be valid.

To address this, we should improve response handling by detecting and trimming code blocks around JSON outputs automatically. This approach would prevent the system from misclassifying these responses as failures and reduce unnecessary retries.

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

No branches or pull requests

1 participant