Repository navigation
ChatGPT doesn't seems to recognize the type of the parameters on the MCP method #2130
Unanswered
shigedangao
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm encountering an issue with the implementation of my MCP server using ChatGPT. For this given MCP method
Claude is able to recognise the type of each field including the
filterparameter. Thefilterparameter is a class which implements theBaseModelclass. However ChatGPT isn't able to recognise the type of this class and infer it asany. Below is a snippet of the schema that OpenAI see{ query: string | null, filter: any }Having the
filterparameter recognise asanymakes the usage of the MCP quite difficult as ChatGPT will try to invent some parameter that will be used for that class which may be incorrect.Do you have any idea why ChatGPT isn't able to recognise this class ? (I tried to use the Annotated from the typing package but without luck so far
All reactions