Files
chatgpt-on-wechat/docs
kirs-hi 1940d628a8 refactor(custom): id-based routing, single source of truth, security fixes
Rework the multi custom-provider design per maintainer review:

1. Data model: use server-generated uuid4 short id as primary key;
   'name' is now a pure display label that can be freely renamed.

2. Routing: drop 'custom_active_provider'; activate a provider by
   setting bot_type to 'custom:<id>'. Single source of truth — no
   pointer drift between bot_type and a separate active selector.

3. Security: drag_sensitive() now recursively masks api_key/secret in
   nested structures (custom_providers list); previously only top-level
   string fields were masked.

4. Per-provider model: the provider's 'model' field now takes effect on
   the main chat path and agent path (was silently ignored before).

5. XSS fix: replace all inline onclick handlers in custom-provider UI
   with data-* attributes + event delegation. Provider names never
   appear in executable HTML contexts.

Legacy compatibility: bot_type='custom' (no colon) still reads the flat
custom_api_key/custom_api_base fields byte-for-byte identically.

Closes: consolidates #2876 into this PR as requested.
Ref: #2838
2026-06-11 17:25:24 +08:00
..
2026-06-01 16:02:55 +08:00
2026-02-27 16:03:47 +08:00
2026-06-09 12:07:41 +08:00
2026-06-09 11:41:32 +08:00
2026-06-09 14:38:05 +08:00
2026-05-28 10:49:52 +08:00

Documentation

This directory contains the Mintlify documentation site for the project.

Prerequisites

  • Node.js v20.17.0 or higher (LTS recommended)

Install the CLI (one-time, global)

npm i -g mint

Run the docs locally

From this docs/ directory:

mint dev

Then open http://localhost:3000 (or the port Mint reports if 3000 is in use).

The first run downloads the Mint preview framework (~90 MB) into ~/.mintlify/. Subsequent runs start instantly from the local cache.

More