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

Make output processing in typed Pred compatible to LM Module #1546

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

krypticmouse
Copy link
Collaborator

@krypticmouse krypticmouse commented Sep 26, 2024

Main issue what the output was a BaseModel already so no need to create one, added:

        if isinstance(dsp.settings.lm, dspy.LM):
            parsing_result = output
        else:
            parsing_result = from_json(output)

Closes #1541

@okhat okhat merged commit dac7030 into main Sep 27, 2024
4 checks passed
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.

AvaTaR agent: 'Action' object has no attribute 'strip'
2 participants