- OpenRouter model configuration registry
- Model definition file for users to be able to control
- Update instructions
This commit is contained in:
Fahad
2025-06-13 05:52:16 +04:00
parent 93daa2942a
commit a19055b76a
7 changed files with 291 additions and 93 deletions

View File

@@ -549,11 +549,7 @@ async def handle_get_version() -> list[TextContent]:
if ModelProviderRegistry.get_provider(ProviderType.OPENAI):
configured_providers.append("OpenAI (o3, o3-mini)")
if ModelProviderRegistry.get_provider(ProviderType.OPENROUTER):
openrouter_allowed = os.getenv("OPENROUTER_ALLOWED_MODELS", "")
if openrouter_allowed:
configured_providers.append(f"OpenRouter (restricted to: {openrouter_allowed})")
else:
configured_providers.append("OpenRouter (ANY model on openrouter.ai)")
configured_providers.append("OpenRouter (configured via conf/openrouter_models.json)")
# Format the information in a human-readable way
text = f"""Zen MCP Server v{__version__}