mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
Session titles: when `models.session_summary` is unset, Grok Build (verified on 1.0.50) generates titles with the built-in `grok-4.6` model but sends the request to the default model table's endpoint, so third-party upstreams reject it and title generation fails. Switching never wrote this key, so fixing the row templates alone would not reach live. The Grok switch patch now makes session_summary follow the provider when it is unset or names a table CC Switch wrote (the target, the write record, or a table retired in this switch): it points at the target table, or is removed when switching to the official account. A user's own choice (a built-in model or their own table) is left alone. Deep links: a Grok Build link carrying a config.toml no longer gets rebuilt into a fixed template that dropped the profile's display name, description, API backend and context window. The table named by `[models] default` is kept through an allowlist of Grok 1.0.50 profile fields; the endpoint, key and model come from the link parameters. Links whose table uses auth_provider, env_http_headers or mtls_cert_dir are rejected, and env_key is still dropped. Only one model table is imported, since a provider owns one table in live. Links without a config keep the old template byte for byte. Fixes #7003 Refs #6457