from __future__ import annotations
import json
from html import escape
from typing import Any
def _json_for_script(value: Any) -> str:
return json.dumps(value, ensure_ascii=False).replace("", "<\\/")
def render_page(state: dict[str, Any]) -> str:
return f"""
Model Selector
Configured Models
Models currently declared in openclaw.json, with alias support from agents.defaults.models.
Provider Catalog
Live or cached provider catalogs, with chips for capabilities and simple pricing cues when the metadata exposes them.
"""