Skip to content

Fix generate_structured output in AzureAugmentedLLM and from_mcp_message_param issues #131

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

Merged
merged 4 commits into from
Apr 13, 2025

Conversation

StreetLamb
Copy link
Collaborator

No description provided.

@StreetLamb StreetLamb added the bug Something isn't working label Apr 13, 2025
message=message, request_params=request_params
)
response = await self.generate(message=message, request_params=request_params)
json_data = json.loads(response[-1].content)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this guaranteed to be valid json?

@saqadri saqadri merged commit 88f2b6b into lastmile-ai:main Apr 13, 2025
4 checks passed
saqadri pushed a commit that referenced this pull request Apr 17, 2025
…age_param issues (#131)

* fix: update content handling in AzureAugmentedLLM to ensure proper list formatting

* fix: update error message to clarify supported roles in AzureAugmentedLLM

* fix: update response handling in AzureAugmentedLLM to parse JSON data correctly

* fix: simplify JSON argument parsing in AzureAugmentedLLM and improve content handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants