Files
chatgpt-on-wechat/docs
kirs-hi cffa590d3e feat(web): manage multiple custom (OpenAI-compatible) providers in console UI
Adds first-class support for configuring more than one custom
OpenAI-compatible provider (e.g. SiliconFlow, DeepSeek, local vLLM)
and switching the active one from the web console, addressing #2838.

Backend:
- config: new `custom_providers` (list) and `custom_active_provider`
  fields, fully backward compatible with the legacy single
  `open_ai_api_base`/`model` fields (used as fallback).
- models/custom_provider.py: centralized resolver
  `resolve_custom_credentials()` returning (api_key, api_base, model),
  with active-provider selection and graceful fallback.
- chat_gpt_bot.py wired to use the resolver.
- web_channel.py: `_provider_overview` expands `custom_providers` into
  one card per provider (id `custom:<name>`, active flag, masked key);
  new POST actions `set_custom_provider`, `delete_custom_provider`,
  `set_active_custom_provider` with hermetic persistence + bridge reset.

Frontend:
- console.js: dedicated "Custom providers" section with add / edit /
  delete / set-active actions, masked-key keep-existing handling, and
  ~20 new zh/en i18n strings.
- chat.html: custom provider modal.

Tests:
- tests/test_custom_provider.py (11) - resolver/config behavior.
- tests/test_custom_provider_handlers.py (18) - write-side handlers and
  overview expansion, including duplicate-name rejection.

All 29 unit tests pass.
2026-06-10 18:12:30 +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