Skip to content

Fix model=None issue and MCP package import NameError#323

Open
kapishk325 wants to merge 1 commit into
andrewyng:mainfrom
kapishk325:fix-model-none-and-mcp-import-error
Open

Fix model=None issue and MCP package import NameError#323
kapishk325 wants to merge 1 commit into
andrewyng:mainfrom
kapishk325:fix-model-none-and-mcp-import-error

Conversation

@kapishk325

Copy link
Copy Markdown

This PR addresses two issues:

  1. Fix Issue Completions.create() does not check for model=None #254: Completions.create() now correctly handles model=None by raising a ValueError with a helpful message, instead of a cryptic TypeError.
    1. Fix MCP Import NameError: Fixed a NameError in _process_mcp_configs where is_mcp_config was used even when the mcp package was not installed. It now correctly raises an ImportError with installation instructions.
      I have verified these fixes with reproduction scripts and existing tests.

This PR was created by Manus, an AI agent.

Refactor Client class to improve provider handling and add MCP configuration support.
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.

1 participant