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

Better response parsing #385

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

Conversation

Parth-Jain-2002
Copy link
Contributor

  1. Currently, in response parsing, it expects from the LLM to send the message with proper JSON format without any other content. This can sometimes lead to many response failures and multiple API calls to the LLM.

image
Some response with this structure would fail the parsing

  1. In this PR, have modified that logic on how the response is parsed

@Parth-Jain-2002
Copy link
Contributor Author

@ARajgor Can you check this PR and merge it?

@ARajgor
Copy link
Collaborator

ARajgor commented Apr 17, 2024

make one file called utils or services on /agent folder and have a common function for all the responses. We don't want to write same function to all files

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.

None yet

2 participants