-
Notifications
You must be signed in to change notification settings - Fork 990
Update tests to be compatible with new OpenAI, MistralAI and MCP versions #2094
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
base: main
Are you sure you want to change the base?
Conversation
PR Change SummaryUpdated tests to ensure compatibility with the latest versions of OpenAI, MistralAI, and MCP.
Modified Files
How can I customize these reviews?Check out the Hyperlint AI Reviewer docs for more information on how to customize the review. If you just want to ignore it on this PR, you can add the Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mcp.types.Content
is deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding ResourceLink
According to this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@medaminezghal Thanks Mohamed! The only thing I'm not sure about is how we should handle ResourceLink
.
@@ -239,6 +239,13 @@ def _map_tool_result_part( | |||
) | |||
else: | |||
assert_never(resource) | |||
elif isinstance(part, mcp_types.ResourceLink): | |||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the expectation that this resource link is sent straight to the model as JSON, or are we supposed to handle it somehow and pass the actual resource?
If it's supposed to be JSON, we can use part.model_dump()
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DouweM I'm not sure either. So I have open an question in Github about the new ResourceLink
and that's what I get.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@medaminezghal I've asked a followup question: modelcontextprotocol/modelcontextprotocol#872 (reply in thread)
@medaminezghal Can you please have a look at the failing coverage check? |
I've updated known model list with new OpenAI version, fixed MistralAI test issue in new version and fixed tests for new MCP version.