mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 11:07:11 +08:00
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
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
- Mintlify docs: https://www.mintlify.com/docs