Fixes https://github.com/BeehiveInnovations/zen-mcp-server/issues/144
This commit is contained in:
@@ -14,7 +14,7 @@ import os
|
||||
# These values are used in server responses and for tracking releases
|
||||
# IMPORTANT: This is the single source of truth for version and author info
|
||||
# Semantic versioning: MAJOR.MINOR.PATCH
|
||||
__version__ = "5.7.3"
|
||||
__version__ = "5.7.4"
|
||||
# Last update date in ISO format
|
||||
__updated__ = "2025-06-27"
|
||||
# Primary maintainer
|
||||
|
||||
@@ -178,6 +178,11 @@ class OpenRouterProvider(OpenAICompatibleProvider):
|
||||
# Resolve model alias to actual OpenRouter model name
|
||||
resolved_model = self._resolve_model_name(model_name)
|
||||
|
||||
# Always disable streaming for OpenRouter
|
||||
# MCP doesn't use streaming, and this avoids issues with O3 model access
|
||||
if "stream" not in kwargs:
|
||||
kwargs["stream"] = False
|
||||
|
||||
# Call parent method with resolved model name
|
||||
return super().generate_content(
|
||||
prompt=prompt,
|
||||
|
||||
Reference in New Issue
Block a user