Skip to content

Openai models 4 and above don't work with the current 0.24.0 version #1548

@afmjoaa

Description

@afmjoaa

For openai models remote mcp server is not working.

Getting the following error:
Error code: 400 - {'error': {'message': "Invalid schema for function 'get_me': In context=(), object schema missing properties.", 'type': 'invalid_request_error', 'param': 'tools[13].function.parameters', 'code': 'invalid_function_parameters'}}

previous issue: #376

The error "Invalid schema for function 'get_me'" indicates that the JSON schema provided for the function named 'get_me' does not conform to the expected format. This typically occurs when interacting with APIs, particularly those involving function calling or structured output, like OpenAI's API.

We are using the MCP server like following:
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"transport": "streamable_http",
"headers": {"Authorization": f"Bearer {os.environ.get('GITHUB_PAT', '')}"},
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions