diff --git a/content/docs/en/api/index.mdx b/content/docs/en/api/index.mdx index e520135..d8aeba3 100644 --- a/content/docs/en/api/index.mdx +++ b/content/docs/en/api/index.mdx @@ -1,6 +1,6 @@ --- title: API Reference -description: New API Complete API Documentation +description: LFAPI Complete API Documentation --- import { Card, Cards } from 'fumadocs-ui/components/card'; @@ -37,10 +37,10 @@ import { ## Overview -New API provides a complete set of RESTful API interfaces, categorized into **AI Model APIs** and **Management APIs**. You can use these interfaces to invoke AI capabilities and perform system management functions. +LFAPI provides a complete set of RESTful API interfaces, categorized into **AI Model APIs** and **Management APIs**. You can use these interfaces to invoke AI capabilities and perform system management functions. - You can visit the [Apifox Playground](https://apifox.newapi.ai/) to test and debug API interfaces online, or browse the API documentation below. + You can visit the [Apifox Playground](https://apifox.ai.liangfeng.net.cn/docs/) to test and debug API interfaces online, or browse the API documentation below. ## AI Model APIs diff --git a/content/docs/en/api/meta.json b/content/docs/en/api/meta.json index 70c81df..9c0eec9 100644 --- a/content/docs/en/api/meta.json +++ b/content/docs/en/api/meta.json @@ -1,6 +1,6 @@ { "title": "API Reference", - "description": "New API Complete API Documentation", + "description": "LFAPI Complete API Documentation", "icon": "Code", "root": true, "pages": ["index", "ai-model", "management"] diff --git a/content/docs/en/apps/aionui.mdx b/content/docs/en/apps/aionui.mdx index 7f7c486..7dfa4fb 100644 --- a/content/docs/en/apps/aionui.mdx +++ b/content/docs/en/apps/aionui.mdx @@ -1,6 +1,6 @@ --- title: AionUi - Free Open-Source Desktop Office Agent -description: AionUi Tutorial — A free open-source desktop office agent supporting various AI agents like Gemini CLI, Claude Code, Codex, and more. Integrates with New API to enable multi-model workflows. +description: AionUi Tutorial — A free open-source desktop office agent supporting various AI agents like Gemini CLI, Claude Code, Codex, and more. Integrates with LFAPI to enable multi-model workflows. --- @@ -49,19 +49,19 @@ description: AionUi Tutorial — A free open-source desktop office agent support - **Feishu Integration** - Supports access and interaction via Feishu. - **Local Data Security** - All data is stored in a local SQLite database, suitable for server deployment. -## NewAPI Integration Method +## LFAPI Integration Method ### Parameter Entry -Provider Type: Types supported by NewAPI -API Key: Obtained from NewAPI -API Address: NewAPI site address (e.g., `https:///v1`) +Provider Type: Types supported by LFAPI +API Key: Obtained from LFAPI +API Address: LFAPI site address (e.g., `https:///v1`) -Please use your self-deployed New API, or ensure that the service provider offers New API services with legitimate upstream authorization and compliance obligations. Do not connect API addresses or keys from unknown sources to a production environment. +Please use your self-deployed LFAPI, or ensure that the service provider offers LFAPI services with legitimate upstream authorization and compliance obligations. Do not connect API addresses or keys from unknown sources to a production environment. ### Configuration Steps -1. **Copy API key in NewAPI** +1. **Copy API key in LFAPI** ![Copy API Key](/assets/aionui/copy_apikey.png) 2. **Open AionUi Settings** @@ -72,21 +72,21 @@ Please use your self-deployed New API, or ensure that the service provider offer 3. **Add New Provider** - Click "Add Model" - - Select NewAPI - ![Add NewAPI Provider](/assets/aionui/newapi_provider.png) + - Select LFAPI + ![Add LFAPI Provider](/assets/aionui/newapi_provider.png) 4. **Configure API Information** - - API Address: Enter your NewAPI site address (format: `https:///v1`) - - API Key: Paste the API Key copied from the NewAPI console + - API Address: Enter your LFAPI site address (format: `https:///v1`) + - API Key: Paste the API Key copied from the LFAPI console 5. **Add Model** - Select the model to add from the dropdown - - The model name should match the model name configured in NewAPI + - The model name should match the model name configured in LFAPI - Select the appropriate request protocol 6. **Start Using** - Return to the chat page - - Select the configured NewAPI model to start a conversation + - Select the configured LFAPI model to start a conversation ## Related Links diff --git a/content/docs/en/apps/aqbot.mdx b/content/docs/en/apps/aqbot.mdx index 646fa87..99d7422 100644 --- a/content/docs/en/apps/aqbot.mdx +++ b/content/docs/en/apps/aqbot.mdx @@ -1,10 +1,10 @@ --- title: AQBot - Local-First Desktop AI Workbench -description: AQBot guide — connect this local-first desktop AI workbench to New API. Import with aqbot:// in one click, or configure OpenAI / Claude / Gemini protocols manually. +description: AQBot guide — connect this local-first desktop AI workbench to LFAPI. Import with aqbot:// in one click, or configure OpenAI / Claude / Gemini protocols manually. --- - In the New API console, go to System Settings -> Chat Settings and add the + In the LFAPI console, go to System Settings -> Chat Settings and add the following shortcut option. It lets users fill AQBot from the token management page with one click: @@ -40,37 +40,37 @@ description: AQBot guide — connect this local-first desktop AI workbench to Ne - **Agent** — In-chat Agent (uses your configured provider APIs) plus an ACP Agent workbench - **Local data** — App state lives in `~/.aqbot/`; user files live in `~/Documents/aqbot/` -See the [AQBot website](https://app.aqbot.top) for the full feature set. This page covers New API integration only. +See the [AQBot website](https://app.aqbot.top) for the full feature set. This page covers LFAPI integration only. -## NewAPI Integration Method +## LFAPI Integration Method -Please use your self-deployed New API, or ensure that the service provider has a New API service with legal upstream authorization and compliance obligations. Do not integrate API addresses or keys from unknown sources into a production environment. +Please use your self-deployed LFAPI, or ensure that the service provider has a LFAPI service with legal upstream authorization and compliance obligations. Do not integrate API addresses or keys from unknown sources into a production environment. ### Method 1: One-Click Import (Recommended) 1. Install AQBot and open it at least once so the system registers the `aqbot://` protocol -2. In the New API console, add the JSON above under **System Settings → Chat Settings** +2. In the LFAPI console, add the JSON above under **System Settings → Chat Settings** 3. Open **Token Management** and choose **AQBot** from the token actions 4. The browser launches AQBot. Confirm the provider name, API host, type `openai`, and key prefix 5. After confirmation, AQBot opens **Settings → Provider Management**. It reuses a provider with the same API host + type, or creates a new one 6. Open that provider, click **Sync Models**, then return to chat and select a model -`{address}` is the New API site root (for example `https://your-newapi.example`), with no query string. For the OpenAI type, AQBot appends `/v1` automatically. Import does not validate the key or sync models. +`{address}` is the LFAPI site root (for example `https://your-newapi.example`), with no query string. For the OpenAI type, AQBot appends `/v1` automatically. Import does not validate the key or sync models. ### Method 2: Manual Configuration -1. Copy the API Key from New API Token Management +1. Copy the API Key from LFAPI Token Management 2. In AQBot, go to **Settings → Provider Management → Add Provider** 3. Fill in: | Field | Value | | --- | --- | -| Provider Name | For example `New API` | +| Provider Name | For example `LFAPI` | | Provider Type | `OpenAI` (recommended) | -| API Host | New API site address, such as `https://your-newapi.example` | -| API Key | Your New API token | +| API Host | LFAPI site address, such as `https://your-newapi.example` | +| API Key | Your LFAPI token | -4. Click **Sync Models** to pull the models currently exposed by New API +4. Click **Sync Models** to pull the models currently exposed by LFAPI 5. Return to chat and select a synced model ![Switch model](/assets/aqbot/switch-model.png) @@ -83,7 +83,7 @@ Please use your self-deployed New API, or ensure that the service provider has a ### Optional: Native Protocols -If New API also exposes Claude or Gemini native APIs, add another provider: +If LFAPI also exposes Claude or Gemini native APIs, add another provider: | Use | Provider Type | API Host | | --- | --- | --- | @@ -96,7 +96,7 @@ Change `type` in the one-click template to `anthropic` or `gemini`. The same API ## FAQ - **Clicking AQBot does not open the app**: Install and launch the desktop app first. Opening only the website or a Vite dev server does not register `aqbot://` -- **Import succeeds but chat fails**: Click **Sync Models**, and make sure the model ID matches the name New API actually exposes +- **Import succeeds but chat fails**: Click **Sync Models**, and make sure the model ID matches the name LFAPI actually exposes - **macOS says the app is damaged or the developer cannot be verified**: Follow the [AQBot README](https://github.com/AQBot-Desktop/AQBot) and [Getting Started](https://app.aqbot.top/guide/getting-started) to allow this app. You do not need to turn Gatekeeper off - **The one-click link contains an API key**: Generate it only on the signed-in token page. Do not post URLs that embed a real key diff --git a/content/docs/en/apps/astrbot.mdx b/content/docs/en/apps/astrbot.mdx index 55ef0c3..7d8e7da 100644 --- a/content/docs/en/apps/astrbot.mdx +++ b/content/docs/en/apps/astrbot.mdx @@ -1,6 +1,6 @@ --- title: AstrBot - Agent Chatbot -description: AstrBot Configuration Tutorial — Integrating the open-source Agent chatbot platform with New API to inject AI capabilities into instant messaging platforms like QQ, Feishu, DingTalk, and WeChat Work. +description: AstrBot Configuration Tutorial — Integrating the open-source Agent chatbot platform with LFAPI to inject AI capabilities into instant messaging platforms like QQ, Feishu, DingTalk, and WeChat Work. --- @@ -11,15 +11,15 @@ description: AstrBot Configuration Tutorial — Integrating the open-source Agen - Official Documentation: [https://docs.astrbot.app](https://docs.astrbot.app) - Project Homepage: [https://github.com/astrbotdevs/astrbot](https://github.com/astrbotdevs/astrbot) -## NewAPI Integration Method +## LFAPI Integration Method -AstrBot supports integrating NewAPI as a model provider, allowing users to access and utilize various AI model services through NewAPI. +AstrBot supports integrating LFAPI as a model provider, allowing users to access and utilize various AI model services through LFAPI. ### Configuration Steps -#### Obtain NewAPI API Key +#### Obtain LFAPI API Key -After registering and logging into NewAPI, click 'Console' in the top navigation bar, then click 'Token Management', and then click the 'Add Token' button to create a new API Key. Select the appropriate permissions and click 'Create'. +After registering and logging into LFAPI, click 'Console' in the top navigation bar, then click 'Token Management', and then click the 'Add Token' button to create a new API Key. Select the appropriate permissions and click 'Create'. ![create-api-key](/assets/astrbot/image.png) @@ -27,24 +27,24 @@ After successful creation, click the 'Copy Key' button to copy the generated API ![copy-api-key](/assets/astrbot/image-1.png) -#### Configure NewAPI Service Provider in AstrBot +#### Configure LFAPI Service Provider in AstrBot Open the AstrBot administration panel, go to the 'Model Providers' page, then click the 'Add Model Provider' button. -NewAPI perfectly supports OpenAI Chat Completion and Responses interfaces. Click 'OpenAI' to enter the OpenAI provider configuration page. +LFAPI perfectly supports OpenAI Chat Completion and Responses interfaces. Click 'OpenAI' to enter the OpenAI provider configuration page. -In the pop-up dialog, set the API Base URL to the NewAPI interface address. Please use your own deployed New API, or ensure that the service provider has legitimate upstream authorization and compliance obligations for the New API service. If you have deployed NewAPI locally, fill in the local address, for example, `http://localhost:3000/v1`. Do not connect API addresses or keys from unknown sources to a production environment. +In the pop-up dialog, set the API Base URL to the LFAPI interface address. Please use your own deployed LFAPI, or ensure that the service provider has legitimate upstream authorization and compliance obligations for the LFAPI service. If you have deployed LFAPI locally, fill in the local address, for example, `http://localhost:3000/v1`. Do not connect API addresses or keys from unknown sources to a production environment. Then, enter the API Key into the 'API Key' field and click the 'Save' button. ![astrbot-provider-config](/assets/astrbot/image-2.png) -Then click 'Save' to complete the NewAPI provider configuration. +Then click 'Save' to complete the LFAPI provider configuration. #### Apply Service Provider -Go to the 'Configuration File' page, find the 'Model' section, change the 'Default Chat Model' to the NewAPI provider you just created, and click the 'Save' button. +Go to the 'Configuration File' page, find the 'Model' section, change the 'Default Chat Model' to the LFAPI provider you just created, and click the 'Save' button. ![apply](/assets/astrbot/image-3.png) -At this point, you have successfully configured NewAPI as AstrBot's model provider. Now, you can access and use various AI model services provided by NewAPI through AstrBot. \ No newline at end of file +At this point, you have successfully configured LFAPI as AstrBot's model provider. Now, you can access and use various AI model services provided by LFAPI through AstrBot. \ No newline at end of file diff --git a/content/docs/en/apps/cc-switch.mdx b/content/docs/en/apps/cc-switch.mdx index 0bc0df7..7780fc5 100644 --- a/content/docs/en/apps/cc-switch.mdx +++ b/content/docs/en/apps/cc-switch.mdx @@ -1,10 +1,10 @@ --- title: CC Switch - All-in-One AI CLI Management Tool -description: CC Switch tutorial — a cross-platform tool for unified management of Claude Code, Codex & Gemini CLI provider configs, MCP servers, and system prompts. One-click import from New API. +description: CC Switch tutorial — a cross-platform tool for unified management of Claude Code, Codex & Gemini CLI provider configs, MCP servers, and system prompts. One-click import from LFAPI. --- - In the New API console under System Settings -> Chat Settings, you can add the following shortcut to enable one-click fill for CC Switch from the token management page: + In the LFAPI console under System Settings -> Chat Settings, you can add the following shortcut to enable one-click fill for CC Switch from the token management page: ```json @@ -43,13 +43,13 @@ description: CC Switch tutorial — a cross-platform tool for unified management - **Web version** — Browser-accessible interface for headless servers / SSH environments - **CLI version** — Both interactive menu-driven and command-line modes -## NewAPI Integration +## LFAPI Integration -CC Switch supports the `ccswitch://` Deep Link protocol, allowing one-click provider config import from the New API token management page. +CC Switch supports the `ccswitch://` Deep Link protocol, allowing one-click provider config import from the LFAPI token management page. ### Configuration Steps -1. **On the New API token management page, click the dropdown menu for the corresponding token** +1. **On the LFAPI token management page, click the dropdown menu for the corresponding token** Select the **CC Switch** option from the menu. The system will automatically launch CC Switch and open the configuration dialog. 2. **Complete the configuration in the dialog** diff --git a/content/docs/en/apps/cherry-studio.mdx b/content/docs/en/apps/cherry-studio.mdx index 89b23f7..ddd21e8 100644 --- a/content/docs/en/apps/cherry-studio.mdx +++ b/content/docs/en/apps/cherry-studio.mdx @@ -1,10 +1,10 @@ --- title: Cherry Studio - Desktop AI Client -description: Cherry Studio Tutorial — Connecting the desktop AI client to New API, one-click API Key entry. Built-in 30+ professional AI assistants, covering various work scenarios. +description: Cherry Studio Tutorial — Connecting the desktop AI client to LFAPI, one-click API Key entry. Built-in 30+ professional AI assistants, covering various work scenarios. --- - In the New API + In the LFAPI console's System Settings -> Chat Settings, you can add the following quick options for one-click filling into Cherry Studio on the token management page: @@ -22,19 +22,19 @@ description: Cherry Studio Tutorial — Connecting the desktop AI client to New - Download Link: [https://cherry-ai.com/download](https://cherry-ai.com/download) - Official Documentation: [https://docs.cherry-ai.com](https://docs.cherry-ai.com) -## NewAPI Integration Method +## LFAPI Integration Method ### Parameter Configuration -Provider Type: Types supported by NewAPI -API Key: Obtained from NewAPI -API Address: NewAPI Site Address +Provider Type: Types supported by LFAPI +API Key: Obtained from LFAPI +API Address: LFAPI Site Address -Please use your self-deployed New API, or ensure that the service provider has a New API service with legal upstream authorization and compliance obligations. Do not integrate API addresses or keys from unknown sources into a production environment. +Please use your self-deployed LFAPI, or ensure that the service provider has a LFAPI service with legal upstream authorization and compliance obligations. Do not integrate API addresses or keys from unknown sources into a production environment. ### Graphical Guide -1. Copy API key in NewAPI +1. Copy API key in LFAPI ![Copy API Key](/assets/cherry_studio/copy_api_key.png) 2. Add Provider @@ -46,7 +46,7 @@ Please use your self-deployed New API, or ensure that the service provider has a 4. Return to Chat Page ![Switch to Chat Page](/assets/cherry_studio/back_to_chat.png) -5. Switch NewAPI Model +5. Switch LFAPI Model ![Switch Model](/assets/cherry_studio/switch_model.png) ## Drawing in Cherry Studio diff --git a/content/docs/en/apps/claude-code.mdx b/content/docs/en/apps/claude-code.mdx index ec188b6..f6a2529 100644 --- a/content/docs/en/apps/claude-code.mdx +++ b/content/docs/en/apps/claude-code.mdx @@ -1,6 +1,6 @@ --- title: Claude Code -description: Claude Code configuration guide — use Anthropic's terminal-based coding agent with New API. Supports code understanding, multi-file editing, and IDE integration. +description: Claude Code configuration guide — use Anthropic's terminal-based coding agent with LFAPI. Supports code understanding, multi-file editing, and IDE integration. --- diff --git a/content/docs/en/apps/codex-cli.mdx b/content/docs/en/apps/codex-cli.mdx index 9db6275..e0a5f53 100644 --- a/content/docs/en/apps/codex-cli.mdx +++ b/content/docs/en/apps/codex-cli.mdx @@ -1,6 +1,6 @@ --- title: OpenAI Codex CLI -description: OpenAI Codex CLI Installation Tutorial — Install a terminal AI coding assistant on Windows, macOS, Linux, connecting to New API. Supports sandbox policies and atomic patch editing. +description: OpenAI Codex CLI Installation Tutorial — Install a terminal AI coding assistant on Windows, macOS, Linux, connecting to LFAPI. Supports sandbox policies and atomic patch editing. --- @@ -18,7 +18,7 @@ description: OpenAI Codex CLI Installation Tutorial — Install a terminal AI co | **Category** | **Feature** title: OpenAI Codex CLI -description: OpenAI Codex CLI Installation Tutorial — Install a terminal AI coding assistant on Windows, macOS, Linux, connecting to New API. Supports sandbox policies and atomic patch editing. +description: OpenAI Codex CLI Installation Tutorial — Install a terminal AI coding assistant on Windows, macOS, Linux, connecting to LFAPI. Supports sandbox policies and atomic patch editing. --- @@ -34,433 +34,4 @@ description: OpenAI Codex CLI Installation Tutorial — Install a terminal AI co ### Features -| **Category** | **Feature** -| Terminal-based Coding Assistant | Codex CLI is a terminal-based interactive coding assistant for editing code, generating patches, and running commands in the command line. | -| Tool-Driven Architecture | Provides tools such as `apply_patch`, `shell`, `update_plan`, and `multi_tool_use` for controlled modification of repository files and operations. | -| Atomic Patch Editing | Uses a specialized patch format to atomically add/update/delete files via `apply_patch`, facilitating auditing and rollback. | -| Sandbox and Approval | Supports sandbox policies (e.g., `workspace-write`, `read-only`) and approval modes (`on-request`, `on-failure`, `never`) to control write and network access permissions. | -| Plan Tracking | `update_plan` is used to list steps and track status, requiring only one `in_progress` step at all times to maintain clear progress. | -| Interaction Protocol | Sends brief introductory explanations before important operations, maintaining a friendly, concise tone and providing progress updates. | -| Security Constraints | Adheres to strict rules (no arbitrary changes to unrelated files, no adding copyright headers, no executing destructive commands), requiring user approval for sensitive operations. | -| Testing and Formatting | Recommends running relevant tests and formatting tools after modifications, but is not responsible for fixing issues unrelated to the current task. | -| Output and Style | Final output adheres to CLI rendering specifications (e.g., `**` for headings, backticks for paths/commands), maintaining a scannable and concise structure. | -| Parallel Execution | Supports running multiple tools in parallel via `multi_tool_use.parallel` to improve efficiency. | - -## AI Model Configuration Method - -### Windows Graphical Guide - -#### 1. Open Terminal - -![windows_open_terminal](/assets/codex/windows_open_terminal.png) - -#### 2. Install WSL - -For optimal performance on Windows, please install and use Windows Subsystem for Linux (WSL2). - - - ```powershell - wsl --install - ``` - - Restart your Windows computer after installation. - - - - - It is recommended to use PowerShell instead of CMD. - - If you encounter permission issues, try running as administrator. - - Some antivirus software may report false positives; you need to add an exception. - - -![windows-img-03.webp](/assets/codex/windows-img-03.webp) - - - ```bash - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash - ``` - - -![windows-img-04.webp](/assets/codex/windows-img-04.webp) - - - Open a new PowerShell window in the tab bar and open WSL: - - ```bash - wsl - ``` - - Install Node.js (version numbers are time-sensitive; please install the corresponding version according to the [OpenAI official website](https://developers.openai.com/codex/windows) requirements): - - ```bash - nvm install 22 - ``` - - -![windows-img-05.webp](/assets/codex/windows-img-05.webp) - -#### 3. Install Codex CLI - - - ```bash - npm i -g @openai/codex - ``` - - This command will download and install the latest version of Codex CLI from the official npm repository. - - -![windows-img-06.webp](/assets/codex/windows-img-06.webp) - -#### 4. Modify Configuration File - - - ```powershell - iex (irm 'https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/codex-cli-setup.ps1') - ``` - - -![windows-configure](/assets/codex/windows_configure.png) - -#### 5. Start Using Codex CLI - -Now you can start using Codex CLI! - - - Launch WSL2: - - ```bash - wsl - ``` - - Launch Codex CLI directly: - - ```bash - codex - ``` - - Use in a specific project: - - ```bash - cd mnt/c/path/to/your/project - codex - ``` - - Press Enter to launch Codex CLI. - - -![windows-img-09.webp](/assets/codex/windows-img-09.webp) - -![windows-img-10.webp](/assets/codex/windows-img-10.webp) - -> Set Codex CLI permissions: 1. Allow Codex to modify files directly; 2. Codex requires manual authorization to modify files. - - - ```bash - /model - ``` - - -![windows-img-11.webp](/assets/codex/windows-img-11.webp) - -![windows-img-12.webp](/assets/codex/windows-img-12.webp) - -![windows-img-13.webp](/assets/codex/windows-img-13.webp) - -![windows-img-14.webp](/assets/codex/windows-img-14.webp) - -> Note: After modifying the API address, all models (including officially preset models) will call your configured, legally authorized self-owned or organizational access point. Please use your own deployed New API, or confirm that the service provider has a New API service with legal upstream authorization and compliance obligations. Do not connect API addresses or keys from unknown sources to a production environment. - -### macOS Graphical Guide - -#### 1. Install Homebrew (Skip if already installed) - -Homebrew is the missing package manager for macOS. - -Official Website: https://brew.sh - -![macos-img-01.webp](/assets/codex/macos-img-01.webp) - - - ```bash - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - ``` - - -![macos-img-02.webp](/assets/codex/macos-img-02.webp) - -![macos-img-03.webp](/assets/codex/macos-img-03.webp) - -![macos-img-04.webp](/assets/codex/macos-img-04.webp) - -#### 2. Install Node.js Environment - - - Update Homebrew: - - ```bash - brew update - ``` - - Install Node.js: - - ```bash - brew install node - ``` - - - - - If you encounter permission issues, you might need to use `sudo`. - - The first run may require permission in System Preferences. - - It is recommended to use Terminal or iTerm2. - - -![macos-img-05.webp](/assets/codex/macos-img-05.webp) - -![macos-img-06.webp](/assets/codex/macos-img-06.webp) - - - After installation, open the terminal and enter the following commands: - - ```bash - node --version - npm --version - ``` - - If version numbers are displayed, the installation was successful. - - -#### 3. Install Codex CLI - - - Open the terminal and run the following command: - - ```bash - # Install Codex CLI globally - npm install -g @openai/codex - ``` - - If you encounter permission issues, you can use sudo: - - ```bash - sudo npm install -g @openai/codex - ``` - - -![macos-img-07.webp](/assets/codex/macos-img-07.webp) - - - After installation, enter the following command to check if the installation was successful: - - ```bash - codex --version - ``` - - If a version number is displayed, congratulations! Codex CLI has been successfully installed. - - -#### 4. Modify Configuration File - - - ```bash - curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/codex-cli-setup.sh | bash - ``` - - -![macos-configure](/assets/codex/macos_configure.png) - -#### 5. Start Using Codex CLI - -Now you can start using Codex CLI! - - - Launch Codex CLI directly: - - ```bash - codex - ``` - - Use in a specific project: - - ```bash - cd /path/to/your/project - codex - ``` - - Press Enter to launch Codex CLI. - - -![macos-img-09.webp](/assets/codex/macos-img-09.webp) - -![macos-img-10.webp](/assets/codex/macos-img-10.webp) - -> Set Codex CLI permissions: 1. Allow Codex to modify files directly; 2. Codex requires manual authorization to modify files. - -![macos-img-11.webp](/assets/codex/macos-img-11.webp) - -![macos-img-12.webp](/assets/codex/macos-img-12.webp) - -![macos-img-13.webp](/assets/codex/macos-img-13.webp) - -![macos-img-14.webp](/assets/codex/macos-img-14.webp) - -> Note: After modifying the API address, all models (including officially preset models) will call your configured, legally authorized self-owned or organizational access point. - -#### 6. macOS Common Issues and Solutions - - - Try the following solutions: - - - Install with `sudo`: `sudo npm install -g @openai/codex` - - Or configure `npm` to use the user directory: `npm config set prefix ~/.npm-global` - - - - If the system prevents Codex CLI from running: - - - Open "System Preferences" → "Security & Privacy" - - Click "Open Anyway" or "Allow" - - Or run in Terminal: `sudo spctl --master-disable` - - -### Linux Graphical Guide - -#### 1. Install Node.js Environment - -Codex CLI requires a Node.js environment to run. - - - Add NodeSource repository: - - ```bash - sudo curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - - ``` - - Install Node.js: - - ```bash - sudo apt-get install -y nodejs - ``` - - - - - Some distributions may require additional dependencies. - - If you encounter permission issues, use sudo. - - Ensure your user has write permissions in npm's global directory. - - -![linux-img-01.webp](/assets/codex/linux-img-01.webp) - -![linux-img-02.webp](/assets/codex/linux-img-02.webp) - - - After installation, open the terminal and enter the following commands: - - ```bash - node --version - npm --version - ``` - - If version numbers are displayed, the installation was successful. - - -#### 2. Install Codex CLI - - - Open the terminal and run the following command: - - ```bash - # Install Codex CLI globally - npm install -g @openai/codex - ``` - - If you encounter permission issues, you can use sudo: - - ```bash - sudo npm install -g @openai/codex - ``` - - -![linux-img-03.webp](/assets/codex/linux-img-03.webp) - - - After installation, enter the following command to check if the installation was successful: - - ```bash - codex --version - ``` - - If a version number is displayed, congratulations! Codex CLI has been successfully installed. - - -#### 3. Modify Configuration File - - - ```bash - curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/codex-cli-setup.sh | bash - ``` - - -![macos-configure](/assets/codex/macos_configure.png) - -#### 4. Start Using Codex CLI - -Now you can start using Codex CLI! - - - Launch Codex CLI directly: - - ```bash - codex - ``` - - Use in a specific project: - - ```bash - # Enter your project directory - cd /path/to/your/project - - # Launch Codex CLI - codex - ``` - - Press Enter to launch Codex CLI. - - -![linux-img-05.webp](/assets/codex/linux-img-05.webp) - -![linux-img-06.webp](/assets/codex/linux-img-06.webp) - -> Set Codex CLI permissions: 1. Allow Codex to modify files directly; 2. Codex requires manual authorization to modify files. - -![linux-img-07.webp](/assets/codex/linux-img-07.webp) - -![linux-img-08.webp](/assets/codex/linux-img-08.webp) - -![linux-img-09.webp](/assets/codex/linux-img-09.webp) - -![linux-img-10.webp](/assets/codex/linux-img-10.webp) - -> Note: After modifying the API address, all models (including officially preset models) will call your configured, legally authorized self-owned or organizational access point. - -#### 5. Linux Common Issues and Solutions - - - Try the following solutions: - - - Install with `sudo`: `sudo npm install -g @openai/codex` - - Or configure `npm` to use the user directory: `npm config set prefix ~/.npm-global` - - Then add to PATH: `export PATH=~/.npm-global/bin:$PATH` - - - - Some Linux distributions require additional dependencies: - - ```bash - # Ubuntu/Debian - sudo apt install build-essential - ``` - - ```bash - # CentOS/RHEL - sudo dnf groupinstall "Development Tools" - ``` - \ No newline at end of file +| **Category** | **Feature** \ No newline at end of file diff --git a/content/docs/en/apps/deepchat.mdx b/content/docs/en/apps/deepchat.mdx index fcafe00..8bab73b 100644 --- a/content/docs/en/apps/deepchat.mdx +++ b/content/docs/en/apps/deepchat.mdx @@ -1,10 +1,10 @@ --- title: DeepChat - Commercial-Friendly Full-Featured AI Agent Client -description: DeepChat guide — connect this open-source, commercial-friendly full-featured AI Agent client to New API and import DeepChat configuration with DeepLink in one click. +description: DeepChat guide — connect this open-source, commercial-friendly full-featured AI Agent client to LFAPI and import DeepChat configuration with DeepLink in one click. --- - In the New API console, go to System Settings -> Chat Settings and add the + In the LFAPI console, go to System Settings -> Chat Settings and add the following shortcut option. It lets users fill DeepChat from the token management page with one click: @@ -24,11 +24,11 @@ description: DeepChat guide — connect this open-source, commercial-friendly fu - GitHub Repository: [https://github.com/ThinkInAIXYZ/deepchat](https://github.com/ThinkInAIXYZ/deepchat) - Download Address: [https://deepchat.thinkinai.xyz/#/download](https://deepchat.thinkinai.xyz/#/download) -## NewAPI Integration Method +## LFAPI Integration Method ### Method 1: One-Click Import -1. In the New API console sidebar, open **Token Management** and find the token you want to use +1. In the LFAPI console sidebar, open **Token Management** and find the token you want to use Open Token Management 2. Select **DeepChat** from the token actions @@ -40,18 +40,18 @@ description: DeepChat guide — connect this open-source, commercial-friendly fu 4. Confirm the configuration in DeepChat's Provider import preview ![Confirm DeepChat Configuration](/assets/deepchat/4-deepchat-ok.png) -5. Open the model list and select a New API model to start using it +5. Open the model list and select a LFAPI model to start using it ![Open Model List](/assets/deepchat/5-open-models.png) ### Method 2: Manual Import -1. Copy the API Key and site address from the New API console - ![New API Manual Configuration Guide](/assets/deepchat/7-new-api-manual-guidance.png) +1. Copy the API Key and site address from the LFAPI console + ![LFAPI Manual Configuration Guide](/assets/deepchat/7-new-api-manual-guidance.png) -2. In DeepChat settings, add or edit the New API Provider, then fill in the API address and API Key +2. In DeepChat settings, add or edit the LFAPI Provider, then fill in the API address and API Key ![DeepChat Manual Configuration Guide](/assets/deepchat/6-deepchat-manual-guidance.png) -3. Open the model list and select a New API model to start using it +3. Open the model list and select a LFAPI model to start using it ![Open Model List](/assets/deepchat/5-open-models.png) ## Related Links diff --git a/content/docs/en/apps/factory-droid-cli.mdx b/content/docs/en/apps/factory-droid-cli.mdx index 78ada9e..a005657 100644 --- a/content/docs/en/apps/factory-droid-cli.mdx +++ b/content/docs/en/apps/factory-droid-cli.mdx @@ -1,6 +1,6 @@ --- title: Factory Droid CLI -description: Factory Droid CLI setup guide — install and configure this AI software engineering agent with New API. Supports end-to-end development from planning to testing. +description: Factory Droid CLI setup guide — install and configure this AI software engineering agent with LFAPI. Supports end-to-end development from planning to testing. --- diff --git a/content/docs/en/apps/fluent-read.mdx b/content/docs/en/apps/fluent-read.mdx index 080ded7..91545f5 100644 --- a/content/docs/en/apps/fluent-read.mdx +++ b/content/docs/en/apps/fluent-read.mdx @@ -1,10 +1,10 @@ --- title: FluentRead - Open Source Translation Plugin -description: FluentRead configuration guide — open-source browser translation plugin with 20+ engines and AI model support. Connect to New API for immersive bilingual reading. +description: FluentRead configuration guide — open-source browser translation plugin with 20+ engines and AI model support. Connect to LFAPI for immersive bilingual reading. --- - In the System Settings -> Chat Settings of the New API console, you can add + In the System Settings -> Chat Settings of the LFAPI console, you can add the following shortcut options for easy one-click population to FluentRead on the Token Management page: @@ -52,9 +52,9 @@ description: FluentRead configuration guide — open-source browser translation ## 🚀 Configuration Methods -### Import Configuration from New API Console (Recommended) +### Import Configuration from LFAPI Console (Recommended) -After the FluentRead plugin is installed in your browser, opening the New API console -> Token Management page will display a prompt to add FluentRead. +After the FluentRead plugin is installed in your browser, opening the LFAPI console -> Token Management page will display a prompt to add FluentRead. ![添加提示](/assets/fluentread/hint.png) @@ -62,7 +62,7 @@ After selecting a model, click 'One-click fill to FluentRead', and a confirmatio ![确认](/assets/fluentread/confirm.png) -After confirming the import, the New API configuration in FluentRead will be enabled. +After confirming the import, the LFAPI configuration in FluentRead will be enabled. ![配置结果](/assets/fluentread/fluentread.png) @@ -72,8 +72,8 @@ After confirming the import, the New API configuration in FluentRead will be ena | Configuration Item | Content | | ------------------- | --------------------------------------- | -| Translation Service | NewAPI | -| Access Token | NewAPI Key | -| NewAPI Endpoint | NewAPI Deployment Address (without /v1) | +| Translation Service | LFAPI | +| Access Token | LFAPI Key | +| LFAPI Endpoint | LFAPI Deployment Address (without /v1) | | Model | Select from list, or custom model | | Custom Model | Model Name | diff --git a/content/docs/en/apps/index.mdx b/content/docs/en/apps/index.mdx index 76216f7..840ae71 100644 --- a/content/docs/en/apps/index.mdx +++ b/content/docs/en/apps/index.mdx @@ -17,7 +17,7 @@ import { ## Overview -New API is compatible with various popular AI applications and tools. Below is a list of verified supported applications and their configuration guides. +LFAPI is compatible with various popular AI applications and tools. Below is a list of verified supported applications and their configuration guides. ## Supported Applications @@ -38,13 +38,13 @@ New API is compatible with various popular AI applications and tools. Below is a /> } title="AQBot" - description="A local-first desktop AI workbench with multi-provider chat and ACP agents. Import New API in one click via aqbot://." + description="A local-first desktop AI workbench with multi-provider chat and ACP agents. Import LFAPI in one click via aqbot://." href="/en/docs/apps/aqbot" /> } title="CC Switch" - description="One-click fill from New API token page; configure Claude, Codex, or Gemini with main and variant models in the popup." + description="One-click fill from LFAPI token page; configure Claude, Codex, or Gemini with main and variant models in the popup." href="/en/docs/apps/cc-switch" /> } title="DeepChat" - description="An open-source, cross-platform multi-model AI client with one-click New API provider import via DeepLink." + description="An open-source, cross-platform multi-model AI client with one-click LFAPI provider import via DeepLink." href="/en/docs/apps/deepchat" /> } title="OpenClaw" - description="A self-hosted AI assistant platform — install OpenClaw, connect to New API, and manage agents across Feishu, Discord, Slack, and more." + description="A self-hosted AI assistant platform — install OpenClaw, connect to LFAPI, and manage agents across Feishu, Discord, Slack, and more." href="/en/docs/apps/openclaw" /> @@ -8,7 +8,7 @@ description: LangBot integration guide — build AI-powered chatbots for Feishu, supports various instant messaging platforms such as Feishu, DingTalk, WeChat, QQ, Telegram, Discord, Slack, etc. It integrates with mainstream global AI models, supports various AI application capabilities like Knowledge Base, - Agent, MCP, and is perfectly compatible with NewAPI. + Agent, MCP, and is perfectly compatible with LFAPI. - Official Website: [https://langbot.app](https://langbot.app/) @@ -16,19 +16,19 @@ description: LangBot integration guide — build AI-powered chatbots for Feishu, - Official Documentation: [https://docs.langbot.app](https://docs.langbot.app/) - Open Source Address: [https://github.com/langbot-app/LangBot](https://github.com/langbot-app/LangBot) -## Integrating NewAPI +## Integrating LFAPI -LangBot supports integrating with locally deployed NewAPI and third-party NewAPI services built using NewAPI. +LangBot supports integrating with locally deployed LFAPI and third-party LFAPI services built using LFAPI. ### Usage -1. Obtain an API key from NewAPI +1. Obtain an API key from LFAPI ![获取 API key](/assets/langbot/get_api_key.png) - If NewAPI is deployed locally, please configure the API address yourself (refer to [Container Network Connection](https://docs.langbot.app/en/workshop/network-details.html)). If using a third-party NewAPI service, you can copy the address from the page. Note that `/v1` needs to be appended to the address. + If LFAPI is deployed locally, please configure the API address yourself (refer to [Container Network Connection](https://docs.langbot.app/en/workshop/network-details.html)). If using a third-party LFAPI service, you can copy the address from the page. Note that `/v1` needs to be appended to the address. -2. Add a model in LangBot, select NewAPI as the provider, and fill in the corresponding API key and API address - ![添加 NewAPI 模型](/assets/langbot/add_newapi_model.png) +2. Add a model in LangBot, select LFAPI as the provider, and fill in the corresponding API key and API address + ![添加 LFAPI 模型](/assets/langbot/add_newapi_model.png) 3. Select the model to use in the pipeline @@ -44,9 +44,9 @@ LangBot supports integrating with locally deployed NewAPI and third-party NewAPI ### Using LangBot Knowledge Base -LangBot supports using NewAPI's embedding models and utilizing them as vector models for the knowledge base. +LangBot supports using LFAPI's embedding models and utilizing them as vector models for the knowledge base. -1. Add an embedding model in LangBot, select NewAPI as the provider +1. Add an embedding model in LangBot, select LFAPI as the provider ![添加嵌入模型](/assets/langbot/add_embedding_model.png) 2. Select the embedding model when creating a new knowledge base diff --git a/content/docs/en/apps/luna-translator.mdx b/content/docs/en/apps/luna-translator.mdx index 4c65203..c38bae2 100644 --- a/content/docs/en/apps/luna-translator.mdx +++ b/content/docs/en/apps/luna-translator.mdx @@ -1,10 +1,10 @@ --- title: LunaTranslator - Open Source GalGame Translator -description: LunaTranslator Tutorial — An open-source GalGame / visual novel translator that supports HOOK, OCR, and AI translation engines. Integrates with New API to improve translation quality. +description: LunaTranslator Tutorial — An open-source GalGame / visual novel translator that supports HOOK, OCR, and AI translation engines. Integrates with LFAPI to improve translation quality. --- - In the New API + In the LFAPI console's System Settings -> Chat Settings, you can add the following shortcut option for one-click population into LunaTranslator from the Token Management page: @@ -43,13 +43,13 @@ description: LunaTranslator Tutorial — An open-source GalGame / visual novel t Download and install from [LunaTranslator Documentation - Download & Launch & Update](https://docs.lunatranslator.org/en/README.html) -## Integrating NewAPI into LunaTranslator +## Integrating LFAPI into LunaTranslator -LunaTranslator supports integration with locally deployed New API. Please use your own deployed New API, or ensure that the service provider has legitimate upstream authorization and compliance obligations for their New API service. Do not connect API addresses or keys from unknown sources to production environments. +LunaTranslator supports integration with locally deployed LFAPI. Please use your own deployed LFAPI, or ensure that the service provider has legitimate upstream authorization and compliance obligations for their LFAPI service. Do not connect API addresses or keys from unknown sources to production environments. ### One-Click Configuration -1. In the New API console's `System Settings` -> `Chat Settings`, add the following shortcut option: +1. In the LFAPI console's `System Settings` -> `Chat Settings`, add the following shortcut option: ```json { "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" } @@ -57,7 +57,7 @@ LunaTranslator supports integration with locally deployed New API. Please use yo ![add_config](/assets/luna_translator/add_config.png) -2. In the **`NewAPI`** -> `Console` -> `Token Management` tab, select the token you want to use in LunaTranslator, click the dropdown option next to the chat button, choose `LunaTranslator`, and you will be redirected to LunaTranslator with the API address and API Key automatically configured. +2. In the **`LFAPI`** -> `Console` -> `Token Management` tab, select the token you want to use in LunaTranslator, click the dropdown option next to the chat button, choose `LunaTranslator`, and you will be redirected to LunaTranslator with the API address and API Key automatically configured. ![跳转到 LunaTranslator](/assets/luna_translator/jump_to_app.png) @@ -65,7 +65,7 @@ LunaTranslator supports integration with locally deployed New API. Please use yo ![设置api](/assets/luna_translator/api_setting.png) -4. Click the refresh button next to the **model** dropdown to retrieve the NewAPI platform's model list, select or enter the model name, then click OK to save. +4. Click the refresh button next to the **model** dropdown to retrieve the LFAPI platform's model list, select or enter the model name, then click OK to save. ![设置模型](/assets/luna_translator/setting_model.png) @@ -75,7 +75,7 @@ LunaTranslator supports integration with locally deployed New API. Please use yo ### Manual Configuration -1. In the **`NewAPI`** -> `Console` -> `Token Management` tab, obtain the API Key. +1. In the **`LFAPI`** -> `Console` -> `Token Management` tab, obtain the API Key. ![获取 API Key](/assets/luna_translator/copy_api_key.png) @@ -93,11 +93,11 @@ LunaTranslator supports integration with locally deployed New API. Please use yo ![设置 API2](/assets/luna_translator/setting_api2.png) -5. Click the refresh button next to the **model** dropdown to retrieve the NewAPI platform's model list, select or enter the model name, then click OK to save. +5. Click the refresh button next to the **model** dropdown to retrieve the LFAPI platform's model list, select or enter the model name, then click OK to save. ![设置 API3](/assets/luna_translator/setting_api3.png) -6. Click the toggle switch next to **NewAPI** to enable the interface and start using it. +6. Click the toggle switch next to **LFAPI** to enable the interface and start using it. ![打开API](/assets/luna_translator/open_api.png) diff --git a/content/docs/en/apps/memoh.mdx b/content/docs/en/apps/memoh.mdx index 3f238aa..84e64ea 100644 --- a/content/docs/en/apps/memoh.mdx +++ b/content/docs/en/apps/memoh.mdx @@ -1,6 +1,6 @@ --- title: Memoh - Containerized AI Agent Platform -description: Memoh integration guide — Connect the self-hosted containerized AI agent platform to New API, creating AI bots with long-term memory for Telegram, Discord, Lark, QQ, WeChat, and more. +description: Memoh integration guide — Connect the self-hosted containerized AI agent platform to LFAPI, creating AI bots with long-term memory for Telegram, Discord, Lark, QQ, WeChat, and more. --- @@ -44,15 +44,15 @@ sudo docker compose up -d After startup, visit `http://localhost:8082`. Default credentials: `admin` / `admin123`. -## NewAPI Integration +## LFAPI Integration -Memoh supports any OpenAI-compatible model provider, allowing you to use NewAPI to centrally manage and access various AI model services. +Memoh supports any OpenAI-compatible model provider, allowing you to use LFAPI to centrally manage and access various AI model services. ### Configuration Steps -#### Obtain a NewAPI API Key +#### Obtain a LFAPI API Key -After registering and logging in to NewAPI, click "Console" in the top navigation bar, then click "Token Management", and click the "Add Token" button to create a new API Key. Select the appropriate permissions and click "Create". +After registering and logging in to LFAPI, click "Console" in the top navigation bar, then click "Token Management", and click the "Add Token" button to create a new API Key. Select the appropriate permissions and click "Create". Once created, click the copy button to copy the generated API Key. @@ -60,14 +60,14 @@ Once created, click the copy button to copy the generated API Key. #### Add a Model Provider in Memoh -Log in to the Memoh Web dashboard, go to the provider management page, and click NewAPI. +Log in to the Memoh Web dashboard, go to the provider management page, and click LFAPI. ![switch-to-newapi-provider](/assets/memoh/switch_to_newapi_provider.png) Fill in the following information on the configuration page: -- **API Base URL**: Enter the NewAPI endpoint URL, e.g. `https://api.example.com/v1` (use `http://localhost:3000/v1` for local deployments) -- **API Key**: Paste the API Key copied from NewAPI +- **API Base URL**: Enter the LFAPI endpoint URL, e.g. `https://api.example.com/v1` (use `http://localhost:3000/v1` for local deployments) +- **API Key**: Paste the API Key copied from LFAPI Click Save to complete the provider configuration. @@ -77,8 +77,8 @@ After configuring the provider, go to the model management page and click auto-i #### Configure a Model for Your Bot -Go to the bot settings page, find the model configuration section, switch the default chat model to the one added via the NewAPI provider, and click Save. +Go to the bot settings page, find the model configuration section, switch the default chat model to the one added via the LFAPI provider, and click Save. ![set_chat_model](/assets/memoh/set_chat_model.png) -You have now successfully configured NewAPI as the model provider for Memoh. You can chat with AI bots through any of Memoh's channels (Telegram, Discord, Lark, etc.), and all requests will be routed through NewAPI. +You have now successfully configured LFAPI as the model provider for Memoh. You can chat with AI bots through any of Memoh's channels (Telegram, Discord, Lark, etc.), and all requests will be routed through LFAPI. diff --git a/content/docs/en/apps/openclaw.mdx b/content/docs/en/apps/openclaw.mdx index bc3b880..eec247f 100644 --- a/content/docs/en/apps/openclaw.mdx +++ b/content/docs/en/apps/openclaw.mdx @@ -1,6 +1,6 @@ --- title: OpenClaw - Self-hosted AI Assistant Platform -description: OpenClaw Tutorial — Install OpenClaw, integrate New API, and quickly set up a self-hosted AI assistant. Open-source project, supporting multi-channel integration like Telegram, Discord, WhatsApp. +description: OpenClaw Tutorial — Install OpenClaw, integrate LFAPI, and quickly set up a self-hosted AI assistant. Open-source project, supporting multi-channel integration like Telegram, Discord, WhatsApp. --- @@ -13,7 +13,7 @@ description: OpenClaw Tutorial — Install OpenClaw, integrate New API, and quic - GitHub: [https://github.com/openclaw/openclaw](https://github.com/openclaw/openclaw) -OpenClaw is completely open-source. You can browse the source code, submit issues, or contribute on [OpenClaw's GitHub repository](https://github.com/openclaw/openclaw). This tutorial covers the complete steps for installing, configuring, and integrating OpenClaw with New API. +OpenClaw is completely open-source. You can browse the source code, submit issues, or contribute on [OpenClaw's GitHub repository](https://github.com/openclaw/openclaw). This tutorial covers the complete steps for installing, configuring, and integrating OpenClaw with LFAPI. ## 🌟 Core Features @@ -42,12 +42,12 @@ OpenClaw is completely open-source. You can browse the source code, submit issue - Node.js 22 or higher - - An available New API address (usually ending with `/v1`) - - An available New API API Key - - Please use your own deployed New API, or confirm that the service provider has legitimate upstream authorization and compliance obligations for their New API service. Do not connect unknown API addresses or keys to production environments. + - An available LFAPI address (usually ending with `/v1`) + - An available LFAPI API Key + - Please use your own deployed LFAPI, or confirm that the service provider has legitimate upstream authorization and compliance obligations for their LFAPI service. Do not connect unknown API addresses or keys to production environments. -Before integrating New API, it's recommended to first get the Gateway and Control UI running according to OpenClaw's official current recommended process. This makes it easier to distinguish whether OpenClaw itself is not starting or if the model provider configuration is incorrect when troubleshooting later. +Before integrating LFAPI, it's recommended to first get the Gateway and Control UI running according to OpenClaw's official current recommended process. This makes it easier to distinguish whether OpenClaw itself is not starting or if the model provider configuration is incorrect when troubleshooting later. ### 1. Install OpenClaw (macOS/Linux) @@ -63,7 +63,7 @@ For other installation methods, refer to the OpenClaw official documentation: [G openclaw onboard --install-daemon ``` -This wizard will complete basic authentication, Gateway setup, and optional channel initialization. The goal here is to get OpenClaw running first, then switch the default model to New API later. +This wizard will complete basic authentication, Gateway setup, and optional channel initialization. The goal here is to get OpenClaw running first, then switch the default model to LFAPI later. ### 3. Check Gateway and Control UI @@ -91,21 +91,21 @@ OpenClaw's configuration file is usually located at `~/.openclaw/openclaw.json`. For detailed instructions, see the official environment variables documentation: [Environment Variables](https://docs.openclaw.ai/help/environment). -## 🚀 Using New API as a Model Provider +## 🚀 Using LFAPI as a Model Provider -OpenClaw supports integrating custom or OpenAI-compatible model gateways via `models.providers`. For New API, the most common approach is to add it as a custom provider to the configuration, then point the default model to `newapi/model-ID`. +OpenClaw supports integrating custom or OpenAI-compatible model gateways via `models.providers`. For LFAPI, the most common approach is to add it as a custom provider to the configuration, then point the default model to `newapi/model-ID`. ### Integration Approach 1. Declare a `newapi` provider under `models.providers`. -2. Point `baseUrl` to your New API address, ensuring it includes `/v1`. +2. Point `baseUrl` to your LFAPI address, ensuring it includes `/v1`. 3. Set `api` to `openai-completions`. 4. List the model IDs you want OpenClaw to use in `models`. 5. Switch the default model in `agents.defaults.model.primary` to `newapi/...`. ### Recommended Practice: Store API Key in Environment Variables -First, provide your New API key in the current shell, service environment, or an `.env` file readable by OpenClaw: +First, provide your LFAPI key in the current shell, service environment, or an `.env` file readable by OpenClaw: ```bash export NEWAPI_API_KEY="sk-your-newapi-key" @@ -145,17 +145,17 @@ Then, add or modify the following snippet in `openclaw.json`: } ``` -This is not a complete configuration that must be copied exactly, but rather the most critical part for integrating New API. As long as the `provider`, model IDs, and default model references are correct, OpenClaw will be able to call your exposed model resources via New API. +This is not a complete configuration that must be copied exactly, but rather the most critical part for integrating LFAPI. As long as the `provider`, model IDs, and default model references are correct, OpenClaw will be able to call your exposed model resources via LFAPI. ### Key Configuration Details | Configuration Item | Description | | --- | --- | | `models.mode` | Recommended to set to `merge`, appending `newapi` while retaining OpenClaw's built-in providers | -| `models.providers.newapi.baseUrl` | Your New API address, usually needs to include `/v1` | -| `models.providers.newapi.apiKey` | New API key, recommended to inject via `${NEWAPI_API_KEY}` | -| `models.providers.newapi.api` | For OpenAI-compatible gateways like New API, use `openai-completions` | -| `models.providers.newapi.models` | The model IDs listed here must match the actual model names exposed by your New API | +| `models.providers.newapi.baseUrl` | Your LFAPI address, usually needs to include `/v1` | +| `models.providers.newapi.apiKey` | LFAPI key, recommended to inject via `${NEWAPI_API_KEY}` | +| `models.providers.newapi.api` | For OpenAI-compatible gateways like LFAPI, use `openai-completions` | +| `models.providers.newapi.models` | The model IDs listed here must match the actual model names exposed by your LFAPI | | `agents.defaults.model.primary` | Default primary model, format must be `provider/model-id` | | `agents.defaults.model.fallbacks` | List of fallback models, automatically switches if the primary model fails | | `agents.defaults.models` | Optional, used to create aliases for models, convenient for referencing in UI or sessions | diff --git a/content/docs/en/business/index.mdx b/content/docs/en/business/index.mdx index 0777679..ec07445 100644 --- a/content/docs/en/business/index.mdx +++ b/content/docs/en/business/index.mdx @@ -4,7 +4,7 @@ title: Business Collaboration ## 💡 Our Original Intention -The original intention behind New API's creation is simple: **to make AI accessible to more people and lower the barrier to entry for AI**. +The original intention behind LFAPI's creation is simple: **to make AI accessible to more people and lower the barrier to entry for AI**. We believe that AI should not be a privilege for a few, but a tool accessible to everyone. Whether you are an independent developer, a startup team, or a large enterprise, you should be able to reduce internal access and management complexity under the premise of legal authorization and compliant deployment. @@ -12,16 +12,16 @@ We believe that AI should not be a privilege for a few, but a tool accessible to Our choice to commercialize is not to maximize profit, but to enable the project to **develop healthily and sustainably**. -Servers incur costs, maintenance requires effort, and ecosystem development needs resources—moderate commercialization is a necessary guarantee for New API to continue serving the community. We pledge to invest profits back into product iteration, community building, and ecosystem expansion, ensuring that every bit of support translates into better services. +Servers incur costs, maintenance requires effort, and ecosystem development needs resources—moderate commercialization is a necessary guarantee for LFAPI to continue serving the community. We pledge to invest profits back into product iteration, community building, and ecosystem expansion, ensuring that every bit of support translates into better services. ## 📜 Gentleman's Agreement -The New API community has always upheld the concept of a **Gentleman's Agreement**: +The LFAPI community has always upheld the concept of a **Gentleman's Agreement**: - We trust every user and provide flexible and open ways of use. - We do not impose cumbersome restrictions, trusting that everyone will use resources responsibly. - We expect users, while benefiting, to also respect the sustainable development of the project. -- If your project benefits from New API, we welcome contributions back to the community in any form. +- If your project benefits from LFAPI, we welcome contributions back to the community in any form. This is an agreement based on trust and respect, and a continuation of the open-source spirit. @@ -37,4 +37,4 @@ This is an agreement based on trust and respect, and a continuation of the open- WeChat Work QR Code -New API is committed to providing developers and enterprises with a unified API gateway and usage management capabilities under legally authorized scenarios. If you wish to engage in in-depth collaboration with us at the product or technical level, we sincerely welcome your inquiry! Collaboration should be based on legal authorization, compliant deployment, and legitimate business scenarios, and adhere to upstream service terms, platform rules, and regulatory requirements. Clients must legally obtain upstream authorization and bear responsibility for their service qualifications, compliant operations, content security, and user management. \ No newline at end of file +LFAPI is committed to providing developers and enterprises with a unified API gateway and usage management capabilities under legally authorized scenarios. If you wish to engage in in-depth collaboration with us at the product or technical level, we sincerely welcome your inquiry! Collaboration should be based on legal authorization, compliant deployment, and legitimate business scenarios, and adhere to upstream service terms, platform rules, and regulatory requirements. Clients must legally obtain upstream authorization and bear responsibility for their service qualifications, compliant operations, content security, and user management. \ No newline at end of file diff --git a/content/docs/en/guide/console/channel-management.mdx b/content/docs/en/guide/console/channel-management.mdx index 06ed6a1..9cdcc5d 100644 --- a/content/docs/en/guide/console/channel-management.mdx +++ b/content/docs/en/guide/console/channel-management.mdx @@ -8,7 +8,7 @@ import { Callout } from 'fumadocs-ui/components/callout'; Upstream channels must be legally owned or authorized accounts, API Keys, model services, or enterprise contracts of the deployer. Features such as load balancing, automatic failover, weighted random, and multi-key management are used for high availability and enterprise multi-account management. When using them, you should comply with upstream service terms, platform rules, and regulatory requirements. -Here you can manage NewAPI's upstream channels. +Here you can manage LFAPI's upstream channels. ![渠道](/assets/guide/channel.png) diff --git a/content/docs/en/guide/console/chat.mdx b/content/docs/en/guide/console/chat.mdx index b0926c6..24ed515 100644 --- a/content/docs/en/guide/console/chat.mdx +++ b/content/docs/en/guide/console/chat.mdx @@ -2,7 +2,7 @@ title: Chat --- -New API provides quick access to several AI chat applications, making them convenient for testing or use. +LFAPI provides quick access to several AI chat applications, making them convenient for testing or use. ## Import Configuration @@ -31,7 +31,7 @@ Deployment is currently paused. Lobe Chat currently does not support one-click import of configurations from - New API; manual entry is required. + LFAPI; manual entry is required. Configuration Entry @@ -50,13 +50,13 @@ Configuration Entry - Supports one-click configuration import from New API + Supports one-click configuration import from LFAPI ## AMA 问天 - AMA 问天 is an intelligent Q&A assistant provided by NewAPI, supporting + AMA 问天 is an intelligent Q&A assistant provided by LFAPI, supporting multi-turn conversations and complex problem-solving. Users can interact with AMA 问天 using natural language to obtain knowledge, technical support, or business consultations, enhancing communication efficiency and experience. diff --git a/content/docs/en/guide/console/dashboard.mdx b/content/docs/en/guide/console/dashboard.mdx index fd062fb..5e2a942 100644 --- a/content/docs/en/guide/console/dashboard.mdx +++ b/content/docs/en/guide/console/dashboard.mdx @@ -2,6 +2,6 @@ title: Dashboard --- -Here you can view NewAPI's overall statistics. +Here you can view LFAPI's overall statistics. ![Dashboard](/assets/guide/dashboard.png) diff --git a/content/docs/en/guide/console/redeem-code-management.mdx b/content/docs/en/guide/console/redeem-code-management.mdx index 9fb4303..1dd9e18 100644 --- a/content/docs/en/guide/console/redeem-code-management.mdx +++ b/content/docs/en/guide/console/redeem-code-management.mdx @@ -4,7 +4,7 @@ title: Redemption Codes import { Callout } from 'fumadocs-ui/components/callout'; -Here you can manage NewAPI's redemption codes. Redemption codes are only for internal testing, authorized customer delivery, event giveaways, or account adjustments. +Here you can manage LFAPI's redemption codes. Redemption codes are only for internal testing, authorized customer delivery, event giveaways, or account adjustments. The use of redemption codes should comply with the authorized scope, platform rules, and local laws and regulations. diff --git a/content/docs/en/guide/console/settings/chat-settings.mdx b/content/docs/en/guide/console/settings/chat-settings.mdx index a036493..fd322be 100644 --- a/content/docs/en/guide/console/settings/chat-settings.mdx +++ b/content/docs/en/guide/console/settings/chat-settings.mdx @@ -2,7 +2,7 @@ title: Chat Settings --- -Here you can configure NewAPI's chat integration, using the following variables: +Here you can configure LFAPI's chat integration, using the following variables: - `{key}`: Replaced with the key - `{address}`: Replaced with the server address (without / and /v1 at the end) diff --git a/content/docs/en/guide/console/settings/other-settings.mdx b/content/docs/en/guide/console/settings/other-settings.mdx index 1ed59ca..baaa40c 100644 --- a/content/docs/en/guide/console/settings/other-settings.mdx +++ b/content/docs/en/guide/console/settings/other-settings.mdx @@ -2,7 +2,7 @@ title: Other Settings --- -Here you can check for NewAPI updates, set announcements, and customize pages. +Here you can check for LFAPI updates, set announcements, and customize pages. ![Other 1](/assets/guide/other-setting-1.png) ![Other 2](/assets/guide/other-setting-2.png) diff --git a/content/docs/en/guide/console/settings/rate-settings.mdx b/content/docs/en/guide/console/settings/rate-settings.mdx index 1081d6e..285d829 100644 --- a/content/docs/en/guide/console/settings/rate-settings.mdx +++ b/content/docs/en/guide/console/settings/rate-settings.mdx @@ -2,11 +2,11 @@ title: Ratio Settings --- -Ratio settings are a core configuration of NewAPI's internal cost accounting system. By setting different ratios, you can flexibly control internal cost allocation, budget control, or enterprise customer billing standards for various models and user groups. +Ratio settings are a core configuration of LFAPI's internal cost accounting system. By setting different ratios, you can flexibly control internal cost allocation, budget control, or enterprise customer billing standards for various models and user groups. ## Ratio System Overview -NewAPI uses a three-tier ratio system to calculate user quota consumption: +LFAPI uses a three-tier ratio system to calculate user quota consumption: 1. **Model Ratio** - Defines the base billing multiplier for different AI models 2. **Completion Ratio** - Applies additional billing adjustments to output tokens @@ -14,7 +14,7 @@ NewAPI uses a three-tier ratio system to calculate user quota consumption: ### Relationship between Quota and Ratios -In the New API system, ratios are key parameters for calculating quota consumption. Quota is the internal billing unit of the system, and all API calls are ultimately converted into quota points for deduction. +In the LFAPI system, ratios are key parameters for calculating quota consumption. Quota is the internal billing unit of the system, and all API calls are ultimately converted into quota points for deduction. Quota Unit Conversion: @@ -36,7 +36,7 @@ Quota Unit Conversion: 配额消耗 = 模型固定价格 × 分组倍率 × 配额单位(500,000) ``` -#### Audio Models (Special handling, automatically processed internally by New API) +#### Audio Models (Special handling, automatically processed internally by LFAPI) ``` 配额消耗 = (文本输入token + 文本输出token × 补全倍率 + 音频输入token × 音频倍率 + 音频输出token × 音频倍率 × 音频补全倍率) × 模型倍率 × 分组倍率 @@ -44,7 +44,7 @@ Quota Unit Conversion: #### Pre-consumption and Post-consumption Mechanism -New API adopts a dual billing mechanism of pre-consumption and post-consumption: +LFAPI adopts a dual billing mechanism of pre-consumption and post-consumption: 1. **Pre-consumption Phase**: Before an API call, calculate and pre-deduct quota consumption based on estimated token count. 2. **Post-consumption Phase**: After an API call is completed, recalculate quota consumption based on actual token count. diff --git a/content/docs/en/guide/console/settings/system-settings.mdx b/content/docs/en/guide/console/settings/system-settings.mdx index a22cd5b..0210879 100644 --- a/content/docs/en/guide/console/settings/system-settings.mdx +++ b/content/docs/en/guide/console/settings/system-settings.mdx @@ -2,7 +2,7 @@ title: System Settings --- -Here you can configure NewAPI worker, mail server, and login and registration related settings. +Here you can configure LFAPI worker, mail server, and login and registration related settings. ![System Settings 1](/assets/guide/system-setting-1.png) diff --git a/content/docs/en/guide/console/user-management.mdx b/content/docs/en/guide/console/user-management.mdx index ae30f41..282f279 100644 --- a/content/docs/en/guide/console/user-management.mdx +++ b/content/docs/en/guide/console/user-management.mdx @@ -2,6 +2,6 @@ title: User Management --- -Here you can manage registered users of NewAPI. +Here you can manage registered users of LFAPI. ![User Management](/assets/guide/user-management.png) diff --git a/content/docs/en/guide/feature-guide/admin/system-setting-advanced.mdx b/content/docs/en/guide/feature-guide/admin/system-setting-advanced.mdx index c59ef1a..0a2ad3a 100644 --- a/content/docs/en/guide/feature-guide/admin/system-setting-advanced.mdx +++ b/content/docs/en/guide/feature-guide/admin/system-setting-advanced.mdx @@ -191,11 +191,11 @@ Different rate limiting strategies can be set for different user Groups: ## Ratio Settings -Ratio settings are the core configuration of the New API billing system. By setting different Ratios, you can flexibly control the billing standards for various models and user groups. +Ratio settings are the core configuration of the LFAPI billing system. By setting different Ratios, you can flexibly control the billing standards for various models and user groups. ### Ratio System Overview -New API uses a three-tier Ratio system to calculate user Quota consumption: +LFAPI uses a three-tier Ratio system to calculate user Quota consumption: 1. **Model Ratio** - Defines the base billing multiplier for different AI models. 2. **Completion Ratio** - Applies additional billing adjustments for output tokens. @@ -203,7 +203,7 @@ New API uses a three-tier Ratio system to calculate user Quota consumption: ### Relationship between Quota and Ratio -In the New API system, Ratios are key parameters for calculating Quota consumption. Quota is the internal billing unit of the system, and all API calls are ultimately converted into Quota points for deduction. +In the LFAPI system, Ratios are key parameters for calculating Quota consumption. Quota is the internal billing unit of the system, and all API calls are ultimately converted into Quota points for deduction. **Quota Unit Conversion:** @@ -233,7 +233,7 @@ Quota Consumption = (Text Input Token + Text Output Token × Completion Ratio + #### Pre-consumption and Post-consumption Mechanism -New API employs a dual billing mechanism of pre-consumption and post-consumption: +LFAPI employs a dual billing mechanism of pre-consumption and post-consumption: 1. **Pre-consumption Stage**: Before an API call, Quota consumption is calculated based on estimated Token count and pre-deducted. 2. **Post-consumption Stage**: After an API call is completed, Quota consumption is recalculated based on the actual Token count. diff --git a/content/docs/en/guide/feature-guide/index.mdx b/content/docs/en/guide/feature-guide/index.mdx index 02f2756..81571a4 100644 --- a/content/docs/en/guide/feature-guide/index.mdx +++ b/content/docs/en/guide/feature-guide/index.mdx @@ -1,12 +1,12 @@ --- title: Feature Guide Overview -description: New API feature guide, divided into User Guide and Admin Guide by role +description: LFAPI feature guide, divided into User Guide and Admin Guide by role --- import { Card, Cards } from 'fumadocs-ui/components/card'; import { User, Shield, Crown, Key, BarChart2, CreditCard, Bot, Settings } from 'lucide-react'; -New API is a unified LLM gateway platform that aggregates multiple AI provider APIs into a standard OpenAI-compatible interface, letting you access dozens of models through a single endpoint. This guide is divided into User Guide and Admin Guide by role. +LFAPI is a unified LLM gateway platform that aggregates multiple AI provider APIs into a standard OpenAI-compatible interface, letting you access dozens of models through a single endpoint. This guide is divided into User Guide and Admin Guide by role. ![Homepage](/assets/guide/home.png) diff --git a/content/docs/en/guide/feature-guide/user/chat-apps.mdx b/content/docs/en/guide/feature-guide/user/chat-apps.mdx index a0127c6..3a7bcf1 100644 --- a/content/docs/en/guide/feature-guide/user/chat-apps.mdx +++ b/content/docs/en/guide/feature-guide/user/chat-apps.mdx @@ -1,11 +1,11 @@ --- title: Chat Application Integration -description: Quickly import New API configuration into various AI chat applications +description: Quickly import LFAPI configuration into various AI chat applications --- import { Callout } from 'fumadocs-ui/components/callout'; -New API supports quick configuration import to various AI chat applications for easy testing and daily use. +LFAPI supports quick configuration import to various AI chat applications for easy testing and daily use. ## One-Click Configuration Import @@ -33,7 +33,7 @@ You can import configuration to supported chat applications with one click from - Lobe Chat currently does not support one-click import from New API and requires manual configuration + Lobe Chat currently does not support one-click import from LFAPI and requires manual configuration ### Configuration Steps @@ -44,13 +44,13 @@ You can import configuration to supported chat applications with one click from ![Lobe Chat configuration - Step 1](/assets/guide/lobechat-1.png) -- **API Address**: Fill in the Base URL of the New API platform -- **API Key**: Fill in the token created in New API +- **API Address**: Fill in the Base URL of the LFAPI platform +- **API Key**: Fill in the token created in LFAPI ![Lobe Chat configuration - Step 2](/assets/guide/lobechat-2.png) 4. Click "Save" to complete the configuration -5. You can now see all available models provided by New API in the model selection +5. You can now see all available models provided by LFAPI in the model selection ## AI as Workspace @@ -59,19 +59,19 @@ You can import configuration to supported chat applications with one click from - Supports one-click import from New API + Supports one-click import from LFAPI ### How to Use -1. Click "Import to AI as Workspace" on the New API token page +1. Click "Import to AI as Workspace" on the LFAPI token page 2. The system automatically redirects to AI as Workspace and fills in the configuration 3. Confirm the configuration and start using ## AMA Q&A - AMA Q&A is an intelligent Q&A assistant provided by New API, supporting multi-turn conversations and complex question answering. Users can communicate with AMA Q&A in natural language to obtain knowledge, technical support, or business consultation, improving communication efficiency and experience. + AMA Q&A is an intelligent Q&A assistant provided by LFAPI, supporting multi-turn conversations and complex question answering. Users can communicate with AMA Q&A in natural language to obtain knowledge, technical support, or business consultation, improving communication efficiency and experience. @@ -81,7 +81,7 @@ You can import configuration to supported chat applications with one click from ### How to Use 1. Download and install the AMA Q&A app from the app store -2. Click "Import to AMA Q&A" on the New API token page +2. Click "Import to AMA Q&A" on the LFAPI token page 3. The app automatically opens and completes the configuration 4. Start conversing with the AI assistant @@ -98,7 +98,7 @@ You can import configuration to supported chat applications with one click from ### How to Use 1. Download and install the OpenCat app from the app store -2. Click "Import to OpenCat" on the New API token page +2. Click "Import to OpenCat" on the LFAPI token page 3. The app automatically opens and completes the configuration 4. Select a model in OpenCat and start conversing @@ -108,7 +108,7 @@ For applications that don't support one-click import, you can configure manually ### Configuration Information -Get the following information from New API: +Get the following information from LFAPI: | Configuration Item | Description | Where to Get | | --- | --- | --- | @@ -124,5 +124,5 @@ Get the following information from New API: 4. Save the configuration and start using - Most applications that support OpenAI API can integrate with New API by filling in a custom API address + Most applications that support OpenAI API can integrate with LFAPI by filling in a custom API address diff --git a/content/docs/en/guide/wiki/basic-concepts/analytics-setup.mdx b/content/docs/en/guide/wiki/basic-concepts/analytics-setup.mdx index 19096df..1b023b2 100644 --- a/content/docs/en/guide/wiki/basic-concepts/analytics-setup.mdx +++ b/content/docs/en/guide/wiki/basic-concepts/analytics-setup.mdx @@ -4,7 +4,7 @@ title: Analytics Tool Setup Guide ### Overview -New API now supports integration with popular analytics platforms to help you track user behavior and website performance: +LFAPI now supports integration with popular analytics platforms to help you track user behavior and website performance: - **Google Analytics 4 (GA4)**: The latest version of Google's analytics platform - **Umami Analytics**: A privacy-focused, open-source analytics tool diff --git a/content/docs/en/guide/wiki/basic-concepts/performance-analysis.mdx b/content/docs/en/guide/wiki/basic-concepts/performance-analysis.mdx index a90ac7c..73576fc 100644 --- a/content/docs/en/guide/wiki/basic-concepts/performance-analysis.mdx +++ b/content/docs/en/guide/wiki/basic-concepts/performance-analysis.mdx @@ -4,7 +4,7 @@ title: Performance Analysis Setup Guide ### Overview -New API provides two types of performance analysis capabilities: +LFAPI provides two types of performance analysis capabilities: - **pprof (Built-in)**: Suitable for temporary diagnosis and offline analysis - **Pyroscope (Optional)**: Suitable for online continuous analysis and flame graph visualization diff --git a/content/docs/en/guide/wiki/basic-concepts/project-introduction.mdx b/content/docs/en/guide/wiki/basic-concepts/project-introduction.mdx index 5f6ba42..11e13d9 100644 --- a/content/docs/en/guide/wiki/basic-concepts/project-introduction.mdx +++ b/content/docs/en/guide/wiki/basic-concepts/project-introduction.mdx @@ -1,6 +1,6 @@ --- title: Project Introduction -description: Learn about New API, an AI API gateway and usage management system for legally authorized scenarios. +description: Learn about LFAPI, an AI API gateway and usage management system for legally authorized scenarios. --- import { Callout } from 'fumadocs-ui/components/callout'; @@ -8,15 +8,15 @@ import { Callout } from 'fumadocs-ui/components/callout';
New API Logo -

New API

+

LFAPI

NewAPI Trendshift Badge - New API seamlessly integrates with leading global AI service providers, including OpenAI, Anthropic, Google + LFAPI seamlessly integrates with leading global AI service providers, including OpenAI, Anthropic, Google Gemini, DeepSeek, Midjourney, Suno, and 30+ other model services. @@ -44,16 +44,16 @@ New API is an AI API gateway and usage management system designed for legally au ## License -New API adopts the **GNU AGPLv3** open-source license. It can be used for free as long as the open-source license is observed. +LFAPI adopts the **GNU AGPLv3** open-source license. It can be used for free as long as the open-source license is observed. - Before using New API, please read the full license terms in the [project + Before using LFAPI, please read the full license terms in the [project LICENSE](https://github.com/QuantumNous/new-api/blob/main/LICENSE). ### Open-Source License (AGPLv3) -Under AGPLv3, you are free to use, modify, and distribute New API. +Under AGPLv3, you are free to use, modify, and distribute LFAPI. **Key Terms:** @@ -67,7 +67,7 @@ If your organization's policy does not permit the use of AGPLv3 licensed softwar ### Contributions -All contributions to New API are licensed under AGPLv3. +All contributions to LFAPI are licensed under AGPLv3. **By submitting contributions, you agree that:** @@ -81,7 +81,7 @@ All contributions to New API are licensed under AGPLv3. ## Disclaimer -Before using New API, please read and understand these important statements. +Before using LFAPI, please read and understand these important statements. **1. Legal Authorization and Compliant Use** @@ -108,5 +108,5 @@ If users provide generative AI services to the general public, they shall indepe Users are responsible for ensuring compliance with all local, national, and international laws and regulations applicable to their jurisdiction and use case. - New API is provided "as is," without warranties of any kind. The developers and maintainers are not liable for any damages or legal issues arising from the use of this software. + LFAPI is provided "as is," without warranties of any kind. The developers and maintainers are not liable for any damages or legal issues arising from the use of this software. \ No newline at end of file diff --git a/content/docs/en/guide/wiki/changelog.mdx b/content/docs/en/guide/wiki/changelog.mdx index f000a1d..7de978c 100644 --- a/content/docs/en/guide/wiki/changelog.mdx +++ b/content/docs/en/guide/wiki/changelog.mdx @@ -4,1344 +4,1808 @@ title: Changelog import { Callout } from 'fumadocs-ui/components/callout'; - + To view all historical versions, please visit the [GitHub Releases page](https://github.com/QuantumNous/new-api/releases). This page automatically fetches the latest update information from that page. -## v1.0.0-rc.5 - - - -### Highlights -The default dashboard has been refreshed with built-in model performance metrics and a clearer health view. This release also adds DeepChat deeplink support and fixes several default UI, wallet, playground, and ratio-display regressions. - -### New Features -- Dashboard overview has been redesigned and now includes model performance metrics with a clearer performance health panel. -- DeepChat deeplinks are now supported, making it easier to open supported chat links directly in DeepChat. (#4668) - -### Bug Fixes -- Top-up gateway availability now uses the correct top-up configuration, so wallet payment options are shown accurately. (#4599) -- Group ratio displays now honor configured group-to-group ratio settings. (#4772) -- Default UI dropdown menu items now trigger their selection handlers reliably. (#4787) -- The playground now handles legacy classic-format messages without failing. (#4650) -- Default frontend pages now avoid several v1 UI regressions, including stray empty description areas and layout issues. (#4802) +## v1.0.0-rc.28 -### Improvements -- The default web UI and charts now follow shared theme presets for more consistent colors, controls, and corner radii. -- Docker images now include project and third-party license notices for easier compliance review. (#4739) - ---- + -### What's Changed -* feat: add DeepChat deeplink support by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4668 -* fix: exclude THIRD-PARTY-LICENSES.md from .dockerignore for Docker build by @yeying-xingchen in https://github.com/QuantumNous/new-api/pull/4739 -* fix(wallet): read topup gateway flags from topupInfo instead of status by @ImogeneOctaviap794 in https://github.com/QuantumNous/new-api/pull/4599 -* fix(web/default): use getUserGroups for ratio display to respect GroupGroupRatio by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4772 -* fix(default): support DropdownMenuItem onSelect by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4787 -* fix(web/default): guard playground messages against legacy classic shape by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4650 -* fix: defaut ui triage by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4802 - -### New Contributors -* @yeying-xingchen made their first contribution in https://github.com/QuantumNous/new-api/pull/4739 -* @lihan3238 made their first contribution in https://github.com/QuantumNous/new-api/pull/4787 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.4...v1.0.0-rc.5 - -**Download Resources** - - - - - ---- - -## v1.0.0-rc.4 - - - -### Highlights -OpenAI image editing is more reliable: image edit requests now preserve reference image data and related metadata, preventing edits from losing their intended context (#4646). This release also adds model performance badges and fixes several billing and dropdown UI issues. +### ⚠️ IMPORTANT WARNING / 重要警告 ⚠️ + +自 v1.0.0-rc.27 起引入的实验性插件系统仍处于测试阶段,并涉及较大的架构调整。如遇问题,请及时反馈。从 v1.0.0-rc.26 或更早版本升级的用户,**必须重新配置所有视频模型价格**;已在 v1.0.0-rc.27 完成配置的用户无需重复操作。**不推荐在生产环境中使用本版本。** + +The experimental plugin system introduced in v1.0.0-rc.27 remains under testing and includes major architectural changes. Please report any issues promptly. Users upgrading from v1.0.0-rc.26 or earlier **must reconfigure all video model prices**; users who already completed this step on v1.0.0-rc.27 do not need to repeat it. **This release is not recommended for production use.** ### New Features -- Added model performance badges to model lists so users can compare available models at a glance. -### Bug Fixes -- Fixed OpenAI image edit requests so reference images and related edit metadata are preserved when forwarded (#4646). -- Fixed billing settings forms so top-up and billing configuration inputs behave more reliably. -- Fixed dropdown and select controls so options render and select correctly after the UI component update (#4655). +* Added optional RSA-OAEP encryption for password-login request bodies. Enable it with `PASSWORD_LOGIN_ENCRYPTION_ENABLED=true`; this is an additional safeguard and does not replace HTTPS (#6743). +* Added AQBot to the default list of third-party chat options (#7079). +* Added support for channel model-mapping aliases and model-name case variants in task-plugin routing, including consistent upstream mapping and billing resolution. -### Breaking Changes -- Integrations should now read the top-up link from the top-up information API instead of the status API. +### Improvements -### Gallery -| Model availability rankings | Refreshed pricing and settings UI | -| --- | --- | -|| | +* Built-in task plugins now update with new-api releases; Marketplace actions no longer create unintended persistent overrides. +* Improved concurrent-write reliability for the default SQLite configuration by enabling WAL, a 30-second busy timeout, and immediate transactions (#7030). +* Improved PostgreSQL transaction-pooler compatibility by disabling prepared statements, and fixed JSON-column handling under the simple protocol. + +### Bug Fixes + +* Prevented unbounded memory retention and potential OOM when an upstream does not return response headers (#6949). `RELAY_RESPONSE_HEADER_TIMEOUT` now defaults to `1800` seconds; set it to `0` to restore the previous unbounded behavior. Streaming after response headers arrive is unaffected. +* Fixed the frontend display of the "subscription-only" preference when no valid subscription exists (#7086). +* Fixed setup-status detection after a page reload (#6968). +* Changed relay request-validation failures to return HTTP 400 (#6774). +* Fixed Ali image models to honor the requested response format (#7048). --- ### What's Changed -* fix: preserve OpenAI image edit reference fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4646 -* fix: migrate select to Base UI items API by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4655 +* fix(relay): 请求参数校验错误返回 HTTP 400 by @ax2 in https://github.com/QuantumNous/new-api/pull/6774 +* fix(web): recheck setup status after page reload by @seefs001 in https://github.com/QuantumNous/new-api/pull/6968 +* feat(chat): 将 AQBot 加入第三方聊天默认列表 by @Licoy in https://github.com/QuantumNous/new-api/pull/7079 +* fix(ali): honor image response format (#5513) by @PuppetKL in https://github.com/QuantumNous/new-api/pull/7048 +* fix(subscription): 无有效订阅时前端如实显示「仅用订阅」偏好 (#6222) by @CR-Yun in https://github.com/QuantumNous/new-api/pull/7086 +* fix(sqlite): enable WAL + working busy timeout + _txlock=immediate to stop concurrent write lockouts by @LinineTy in https://github.com/QuantumNous/new-api/pull/7030 +* fix(relay): bound the wait for upstream response headers (fixes unbounded heap growth → OOM) by @txgo in https://github.com/QuantumNous/new-api/pull/6949 +### New Contributors +* @ax2 made their first contribution in https://github.com/QuantumNous/new-api/pull/6774 +* @PuppetKL made their first contribution in https://github.com/QuantumNous/new-api/pull/7048 +* @CR-Yun made their first contribution in https://github.com/QuantumNous/new-api/pull/7086 +* @LinineTy made their first contribution in https://github.com/QuantumNous/new-api/pull/7030 +* @txgo made their first contribution in https://github.com/QuantumNous/new-api/pull/6949 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.3...v1.0.0-rc.4 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.27...v1.0.0-rc.28 **Download Resources** --- -## v1.0.0-rc.3 +## v1.0.0-rc.27 - + -### Highlights -v1.0.0-rc.3 adds a new model rankings experience with model availability and performance visibility, making it easier to compare reliability before choosing routes or providers. This release also refreshes key default UI areas, including pricing/settings pages and table controls. - -### New Features -- Added a model rankings dashboard with real availability and performance data so users can compare model reliability at a glance (#4633). - -### Improvements -- Refreshed the default web UI with Base UI components, updated theme presets, and cleaner table toolbar interactions (#4633). -- Reorganized the system settings pricing interface to make pricing configuration easier to scan and manage. - -### Bug Fixes -- Fixed channel table sorting so server-side sorting now works correctly (#4600). -- Corrected subscription payment information display in the default UI. - -### Gallery -| Model availability rankings | Refreshed pricing and settings UI | -| --- | --- | -|| | - ---- - -### What's Changed -* feat(web/default): unified UI overhaul — Base UI migration, theme presets, rankings dashboard, and table toolbar refactor by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4633 -* feat: collect model performance metrics by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4635 -* fix: enable channel table server-side sorting by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4600 - - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.2...v1.0.0-rc.3 +### ⚠️ IMPORTANT WARNING / 重要警告 ⚠️ -**Download Resources** +最新版已增加插件系统测试版本,系统架构大改,有bug请立即报告。对于切换到这个版本的用户,需要重新配置所有的视频模型价格!**不推荐生产环境使用**。 - +The latest version introduces an experimental plugin system with major architectural changes. Please report any bugs immediately. Users switching to this version MUST reconfigure all video model prices! **Not recommended for production environments.** - +### New Features +* Replaced built-in task adaptors with a new sandboxed JavaScript plugin system (#7076) +* Added support for GLM channel `/v1/responses` endpoint (#7050) +* Enabled passthrough of Claude Messages and OpenAI Responses for Ollama (#7051) + +### Bug Fixes +* Fixed an issue in billing where a constantly true time rule expression caused multipliers to apply all day (#6934) +* Restored the ability for administrators to unbind built-in providers in the web interface (#6987) +* Fixed docker development build context by adding relaykit go.mod (#7072) + +### Other +* Updated PR templates and removed the PR Check workflow (#7053) --- -## v1.0.0-rc.2 +### What's Changed +* feat: glm chanel /v1/responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/7050 +* feat(ollama): passthrough Claude Messages and OpenAI Responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/7051 +* docs: update PR template and remove PR Check workflow by @seefs001 in https://github.com/QuantumNous/new-api/pull/7053 +* fix(web): restore admin unbinding for built-in providers by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6987 +* fix(billing): 修复时间规则区间恒真表达式导致倍率全天生效 by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6934 +* fix(docker): add relaykit go.mod to dev build context by @VladKabiak in https://github.com/QuantumNous/new-api/pull/7072 +* feat(task): replace built-in task adaptors with a sandboxed JS plugin system by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/7076 - +### New Contributors +* @VladKabiak made their first contribution in https://github.com/QuantumNous/new-api/pull/7072 -### Highlights -v1.0.0-rc.2 officially opens up switching between the new and classic frontend, making it easier to test the redesigned UI, compare workflows, and fall back instantly when needed. This RC also refreshes key console pages and fixes several web issues affecting email binding, tiered pricing, API key grouping, and custom Vertex base URLs. - -### New Features -- Added a built-in switch between the new and classic frontend, so teams can adopt the redesigned UI gradually without losing access to the previous workflow. - -### Improvements -- Refreshed the web console with redesigned pricing pages, more consistent dashboard and log controls, better table and analytics filtering, smoother navigation, and improved mobile responsiveness. - -### Bug Fixes -- Fixed email binding in the redesigned frontend so the action completes correctly (#4551). -- Fixed tiered pricing number input behavior so editing values is more reliable (#4536). -- Fixed tiered pricing display issues that could cause values and labels to appear incorrectly (#4530). -- Fixed API key grouping in the default web theme so keys appear under the expected groups (#4548). -- Fixed custom Vertex base URLs so requests route correctly when a gateway prefix is configured (#4200). - -### Gallery - -| Refreshed pricing page | Dashboard and analytics controls | -| --- | --- | -| Refreshed pricing page | Dashboard and analytics controls | - -### What's Changed -* fix: 修复默认主题 API 密钥分组行为 by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4548 -* bug fix: 新版前端email绑定错误 by @SHLE1 in https://github.com/QuantumNous/new-api/pull/4551 -* fix: improve tiered pricing number input editing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4536 -* fix(vertex): honor custom base_url as gateway prefix by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4200 -* fix(web): 修复阶梯计费 Base64 解码失败与标签不匹配导致的显示错误 by @wans10 in https://github.com/QuantumNous/new-api/pull/4530 - -### New Contributors -* @SHLE1 made their first contribution in https://github.com/QuantumNous/new-api/pull/4551 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.1...v1.0.0-rc.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.26...v1.0.0-rc.27 **Download Resources** --- -## v1.0.0-rc.1 +## v1.0.0-rc.26 - + -v1.0.0-rc.1 is the first release candidate for the upcoming 1.0 release, and its main focus is the brand-new v1 frontend rebuilt from the ground up for a cleaner, faster, and more capable admin experience. - -This RC refreshes the interface across navigation, configuration, analytics, and logs, making day-to-day management much easier as the project moves toward the final v1 launch. - - - -### New Features -- Introduced the rebuilt v1 frontend with modern navigation and layouts, a visual channel editor for parameter overrides, and easier access to system settings and theme switching (#4265). - -### Improvements -- Upgraded dashboards and charts with clearer model analytics, better data sorting, and more informative tooltips for easier usage analysis. -- Improved usage logs with log type indicators, usernames and avatars, and cleaner tables that make activity easier to scan. -- Polished shared layouts, tables, and form styling across the default frontend for a cleaner and more consistent experience. - -### Bug Fixes -- Fixed themes loaded from the database so the selected frontend theme now applies correctly at runtime (#4518). -- Fixed forwarded requests so empty reasoning fields are preserved instead of being silently dropped (#4520). -- Fixed required-field markers so forms more consistently show which inputs are mandatory (#4533). - ---- - -### What's Changed -* 🚀 feat: launch v1.0 — next-generation frontend built from the ground up by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4265 -* fix: 修复 Message.ReasoningContent/Reasoning 空思考内容在请求转发时被静默丢弃 by @heimoshuiyu in https://github.com/QuantumNous/new-api/pull/4520 -* fix: sync theme to runtime when loaded from database by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4518 - -### New Contributors -* @Micah-Zheng made their first contribution in https://github.com/QuantumNous/new-api/pull/4518 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-alpha.1...v1.0.0-rc.1 +### ⚠️ Important Warnings / 重要警告 -**Download Resources** +* **Database Migration Risk / 数据库迁移风险**: This release changes quota fields to support values larger than 4,294,967,295. Upon startup, the system will check database table structures. Startup may fail if the column types are incorrect. In such cases, manual modification is required (instructions will be in the error message; consult AI if unsure how to proceed). +本次更新修复了额度上限问题,支持大于 42 亿的数值。启动时系统会检测数据库表结构,如果不匹配可能会导致启动失败。遇到此问题需根据错误提示手动修改数据库表结构(如不熟悉数据库操作,可寻求 AI 辅助)。 - +* **Deprecation of 32-bit Systems / 废弃 32 位系统支持**: Support for 32-bit operating systems has been temporarily deprecated to accommodate these changes. +为配合上述更改,我们已“临时”废弃对 32 位操作系统架构的支持。 - +### New Features +* Added support for `thinking_token_budget` in vLLM (#7027) + +### Bug Fixes +* Prevented browser auto-fill from incorrectly populating credentials in usage log filters (#6966) + +### Improvements +* Removed 32-bit integer limitations to allow quota values to exceed 4294 million (#7025) --- -## v1.0.0-alpha.1 - License boundary release +### What's Changed +* refactor(web): prevent credential autofill in usage log filters by @seefs001 in https://github.com/QuantumNous/new-api/pull/6966 +* refactor: deprecate int32 by @seefs001 in https://github.com/QuantumNous/new-api/pull/7025 +* feat: vllm thinking_token_budget by @seefs001 in https://github.com/QuantumNous/new-api/pull/7027 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.2...v1.0.0-alpha.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.25...v1.0.0-rc.26 **Download Resources** --- -## v0.13.2 +## v1.0.0-rc.25 - + + +### Highlights +Channel testing and gateway administration gain safer workflows, user/group-aware overrides, and request-field passthrough controls. This release also improves provider compatibility, Responses API accounting, and recharge/quota reliability. ### New Features -- Model sync now detects upstream models more accurately, refreshes pricing automatically from provider pricing endpoints, shows removed upstream models in the fetch-models dialog, and keeps pricing available during sync delays (#4452). -- User records now include account creation and last login timestamps for easier auditing and administration (#4450). -- Added configurable model matching for Ali native Messages APIs, making it easier to route requests to compatible upstream models (#4468). +- Channel testing has been expanded with safer test workflows, including an auto-disable-only mode for failing channels (#6917). +- Parameter overrides can now use requester user and group context for more flexible routing and policy rules (#6534). +- Gateway channels now let administrators choose which request fields are passed through to upstream providers (#6847). ### Bug Fixes -- Tool calls now accept raw JSON argument payloads, improving compatibility with providers that return tool arguments as JSON objects (#4469). -- Configuration updates now handle JSON object fields more reliably, preventing some settings from being saved incorrectly. +- Ali provider requests now avoid sending unset `top_p` values and correctly handle mapped image models (#6772). +- Qwen TTS models are now classified correctly so they route through the proper text-to-speech path (#6711). +- Responses API handling now preserves penalties and prompt-cache settings while settling cached-token usage accurately (#6892). +- Ollama and Claude conversions now preserve reasoning/tool-call context while avoiding invalid empty tool payloads (#6862). +- Gemini-style model listing requests to `/v1/models` now return correctly (#6199). +- Recharge, refund, and quota updates are now settled more consistently, including concurrent and uncreditable order cases (#6845). +- Web forms now keep fetched model selections in sync, and the mobile sidebar behaves correctly (#6841). +- Usage logs now record reasoning effort consistently (#6641). +- Request length validation is now enforced consistently on the backend (#5548). ### Improvements -- Retry messages now clearly explain when a channel was skipped because affinity is disabled (#4453). +- Billing logs now highlight the conditional multiplier that matched a request, making cost calculations easier to audit (#6561). +- Large server and model-list searches in the web UI are debounced, improving responsiveness on big installations (#6727). +- The playground now displays streamed output with smoother word fade-ins and a more robust editor experience (#6895). +- Custom channel route editing now has a more capable advanced editor (#6865). --- ### What's Changed -* fix(channel): load model mapping during upstream model checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4437 -* feat: sync upstream pricing from pricing endpoint by @seefs001 in https://github.com/QuantumNous/new-api/pull/4452 -* fix: clarify affinity disabled channel retry message by @seefs001 in https://github.com/QuantumNous/new-api/pull/4453 -* feat: configure native messages model matching for ali by @seefs001 in https://github.com/QuantumNous/new-api/pull/4468 -* fix: support raw JSON response tool arguments by @seefs001 in https://github.com/QuantumNous/new-api/pull/4469 -* feat: show removed upstream models in fetch models modal by @seefs001 in https://github.com/QuantumNous/new-api/pull/4470 -* 增加用户创建时间和最后登录时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4450 +* fix(ali): stop injecting top_p into requests that omit it by @ENCHIGO in https://github.com/QuantumNous/new-api/pull/6674 +* fix(channels): classify Qwen TTS models correctly by @seefs001 in https://github.com/QuantumNous/new-api/pull/6711 +* feat(channels): add auto-disable-only channel test mode by @seefs001 in https://github.com/QuantumNous/new-api/pull/6728 +* perf(web): debounce server and large-list searches by @seefs001 in https://github.com/QuantumNous/new-api/pull/6727 +* fix: record reasoning effort consistently in usage logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/6641 +* feat(relay): expose user and group context to parameter override by @seefs001 in https://github.com/QuantumNous/new-api/pull/6534 +* fix(ollama): preserve reasoning and tool-call context by @seefs001 in https://github.com/QuantumNous/new-api/pull/6605 +* fix: backend length validation by @seefs001 in https://github.com/QuantumNous/new-api/pull/5548 +* feat(billing): highlight matched conditional multipliers in logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/6561 +* fix(web): require confirmation before rotating access token by @seefs001 in https://github.com/QuantumNous/new-api/pull/6749 +* fix(relay): preserve presence/frequency penalty in Responses conversion by @UzkiS in https://github.com/QuantumNous/new-api/pull/6654 +* refactor(responses): remove compact model suffix handling by @seefs001 in https://github.com/QuantumNous/new-api/pull/6770 +* fix: mobile sidebar by @seefs001 in https://github.com/QuantumNous/new-api/pull/6760 +* fix(web): refresh Turnstile token after login attempt by @thiswod in https://github.com/QuantumNous/new-api/pull/6764 +* fix: 修复 Gemini 风格 /v1/models 列表请求 by @zhibisora in https://github.com/QuantumNous/new-api/pull/6199 +* fix(billing): 异步任务退款时同步减少 used_quota by @wans10 in https://github.com/QuantumNous/new-api/pull/6795 +* fix(web): keep fetched model selection in sync with form by @enwaiax in https://github.com/QuantumNous/new-api/pull/6841 +* fix(ali): 修复阿里图片模型映射后仍使用原始模型名判断协议的问题 by @wxwwt in https://github.com/QuantumNous/new-api/pull/6772 +* chore(deps): bump builder-util-runtime and electron-builder in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6467 +* chore(deps): bump dompurify from 3.4.11 to 3.4.13 in /web by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6735 +* chore(deps-dev): bump fast-uri from 3.1.4 to 3.1.5 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6846 +* chore(deps-dev): bump tar from 7.5.16 to 7.5.22 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6468 +* fix(topup): reject uncreditable orders before payment by @enwaiax in https://github.com/QuantumNous/new-api/pull/6845 +* chore(deps-dev): bump js-yaml from 4.3.0 to 4.3.1 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6704 +* chore(deps-dev): bump electron from 39.8.5 to 39.8.10 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6705 +* fix: prompt_cache_key openai chat -> openai responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/6861 +* feat: add field passthrough controls for gateway channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/6847 +* fix(relay): stop injecting empty tools into Claude requests that omit them by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6837 +* fix(oauth): align custom binding response fields in frontend by @seefs001 in https://github.com/QuantumNous/new-api/pull/6818 +* test(web): standardize frontend tests on Vitest by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6569 +* fix(relaykit): preserve parameterless tools in Claude conversion by @seefs001 in https://github.com/QuantumNous/new-api/pull/6862 +* refactor: advanced custom channel route editor by @seefs001 in https://github.com/QuantumNous/new-api/pull/6865 +* feat: channel test by @seefs001 in https://github.com/QuantumNous/new-api/pull/6917 +* feat(web): fade in streamed response words and harden playground editor by @RedwindA in https://github.com/QuantumNous/new-api/pull/6895 +* fix: settle Responses cached token usage by @LiaoQi98 in https://github.com/QuantumNous/new-api/pull/6892 +### New Contributors +* @ENCHIGO made their first contribution in https://github.com/QuantumNous/new-api/pull/6674 +* @UzkiS made their first contribution in https://github.com/QuantumNous/new-api/pull/6654 +* @thiswod made their first contribution in https://github.com/QuantumNous/new-api/pull/6764 +* @zhibisora made their first contribution in https://github.com/QuantumNous/new-api/pull/6199 +* @enwaiax made their first contribution in https://github.com/QuantumNous/new-api/pull/6841 +* @zcxads666 made their first contribution in https://github.com/QuantumNous/new-api/pull/6837 +* @LiaoQi98 made their first contribution in https://github.com/QuantumNous/new-api/pull/6892 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1-patch.1...v0.13.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.24...v1.0.0-rc.25 **Download Resources** --- -## v0.13.1-patch.1 +## v1.0.0-rc.24 - + -### Highlights -This patch adds support for using `len` in tier conditions and the LLM prompt helper, making it easier to build rules based on prompt length. +### Release: v1.0.0-rc.24 -### New Features -- Added a `len` variable to tier conditions and the LLM prompt helper so you can define rules based on prompt length. +#### New Features + +* Added user critical rate limiting middleware for access token and affiliate transfer routes to enhance security and stability. +* Refined the categorization of fetched models in channels to improve organization and retrieval. + +#### Bug Fixes + +* Resolved an issue with redemption code quotas experiencing precision loss, ensuring accurate credit allocation (#6685). +* Addressed an HTTP/2 transport issue where upstream stream resets could prevent transparent retries by correctly setting `Request.GetBody` in the relay (#6249). +* Ensured Claude and Gemini endpoints are tested with the native request format for improved compatibility. + +#### Other + +* Enhanced the release synchronization workflow with optional file syncing capabilities in CI. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1...v0.13.1-patch.1 +### What's Changed +* fix(relay): set Request.GetBody so the HTTP/2 transport can transparently retry after an upstream stream reset by @BlockchainHe in https://github.com/QuantumNous/new-api/pull/6249 +* feat(channels): refine fetched model categorization by @seefs001 in https://github.com/QuantumNous/new-api/pull/6632 +* fix: test Claude/Gemini endpoints with native request format by @seefs001 in https://github.com/QuantumNous/new-api/pull/6698 +* fix: 修复兑换码额度精度损失(#6680) by @lihu-001 in https://github.com/QuantumNous/new-api/pull/6685 + +### New Contributors +* @BlockchainHe made their first contribution in https://github.com/QuantumNous/new-api/pull/6249 +* @lihu-001 made their first contribution in https://github.com/QuantumNous/new-api/pull/6685 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.23...v1.0.0-rc.24 **Download Resources** --- -## v0.13.1 +## v1.0.0-rc.23 - + -#### New Features -* Added support for handling DeepSeek V4 reasoning suffixes (#4428) +Highlights: This release expands provider and channel compatibility with New API channels, DeepSeek Responses API support, zstd request decompression, and automatic group routing. It also improves operational accuracy with stream visibility in logs, more reliable tiered-retry billing, and upstream Bedrock cancellation when clients disconnect. -#### Bug Fixes -* Fixed an issue where tiered billing models were excluded from the model listing (#4431) +### New Features +- Added New API channel support with Gemini-to-OpenAI streaming conversion, Advanced Custom Responses Compact handling, and multipart image edit support (#6559). +- Added DeepSeek Responses API support (#6562). +- Added automatic group selection for request routing (#6590). +- Added per-channel HTTP transport controls so administrators can tune connection behavior per channel. +- Added support for zstd-compressed requests (#6545). +- Log owners can now see whether a request was streamed (#6558). + +### Bug Fixes +- Qwen `thinking_budget` is now preserved when requests are relayed (#5836). +- Tiered retry billing now settles usage against the final selected group, including group-switch retries (#6570). +- Bedrock requests are now cancelled when clients disconnect, reducing wasted upstream work (#6589). + +### Improvements +- Public header navigation links now use a consistent font size (#6557). --- ### What's Changed -* fix: include tiered billing models in model listing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4431 -* feat: implement DeepSeek V4 reasoning suffix handling and tests by @HynoR in https://github.com/QuantumNous/new-api/pull/4428 +* refactor: extract protocol conversion layer into standalone relaykit module by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6369 +* fix: 慢查询/错误 SQL 日志参数化 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6493 +* feat(oidc): 支持自定义 OIDC 登录显示名称 by @mrchi in https://github.com/QuantumNous/new-api/pull/6012 +* fix: preserve Qwen thinking_budget passthrough by @wxwwt in https://github.com/QuantumNous/new-api/pull/5836 +* feat: support zstd request decompression by @seefs001 in https://github.com/QuantumNous/new-api/pull/6545 +* feat(logs): expose stream status to log owners by @seefs001 in https://github.com/QuantumNous/new-api/pull/6558 +* fix(relay): preserve multipart image edits for New API channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/6559 +* fix(oauth): stop treating a foreign window.opener as a bind flow by @neimaravila in https://github.com/QuantumNous/new-api/pull/6425 +* style: unify public header nav link font size to 14px (text-sm) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6557 +* feat: deepseek responses api by @seefs001 in https://github.com/QuantumNous/new-api/pull/6562 +* fix(billing): settle tiered retries with final group by @faithleysath in https://github.com/QuantumNous/new-api/pull/6518 +* fix(billing): harden tiered retry group-switch billing (follow-up to #6518) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6570 +* fix(aws): cancel Bedrock requests on client disconnect by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6589 +* Feat/auto group by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6590 +### New Contributors +* @mrchi made their first contribution in https://github.com/QuantumNous/new-api/pull/6012 +* @neimaravila made their first contribution in https://github.com/QuantumNous/new-api/pull/6425 +* @faithleysath made their first contribution in https://github.com/QuantumNous/new-api/pull/6518 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.0...v0.13.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.22...v1.0.0-rc.23 **Download Resources** --- -## v0.13.0 +## v1.0.0-rc.22 - + -### Highlights -This release introduces powerful support for `expr` expression-based tiered billing, allowing administrators to configure complex, dynamic pricing rules. A simple use case for this feature is a pricing expression like `tokens <= 128000 ? 0.002 : 0.004`, where the system will automatically apply a lower rate for usage under 128K tokens and a higher rate for anything above that threshold. +This release expands channel and model administration with upstream model discovery, new Gemini image models, configurable billing options, and Sub2API support. It also improves reliability across streaming, pricing, refunds, user management, and admin UI workflows. ### New Features -* Introduces support for evaluating `expr` expressions in the billing system, enabling dynamic tiered pricing with configurable presets (#4409). -* Adds a UI for tool pricing settings and improves tool call quota calculations. -* Displays the user ID in admin top-up bills for easier tracking (#4349). -* Adds a 'last used time' column to the tokens table (#4372). -* Relaxes token key column length requirements to support the migration of longer legacy token keys (#4401). +- Channels can now discover available models from advanced custom and Codex-compatible upstreams (#6184). +- Added support for the latest Gemini image GA models (#6371). +- Added configurable tool pricing with Sub2API channel support and alpha-search billing. +- OpenAI Realtime GA models are now available with improved routing compatibility (#6032). ### Bug Fixes -* Ensures the pricing calculation logic only applies the N ratio to image models (#4412). -* Preserves text tool surcharges properly during tiered billing settlement (#4162). -* Corrects the completion ratio configuration for the `gpt-5.5` model (#4414). -* Fixes the model pricing UI to use the correct display type (#4426). -* Resolves runtime crashes and edge cases within the tiered pricing editor and settlement logic. -* Updates channel testing to properly support and evaluate tiered billing models. +- Responses-to-Chat streaming no longer emits duplicate tool calls (#6225). +- Creating a model with an existing name no longer clears its saved pricing (#6365). +- The unset-price models view now lists only models available from the selected channels (#6126). +- Very large user quota values are now handled without overflow (#6134). +- User list sorting now works correctly with paginated results (#6194). +- MiniMax models are now correctly associated with the MiniMax vendor (#6164). +- Playground model group selectors now handle auto-group listings and long options correctly (#6163). +- Task refunds are no longer duplicated during concurrent status updates (#6074). +- Top-up amount fields can now be cleared completely while editing (#6473). +- Channel inline priority updates are more reliable (#6415). ### Improvements -* Adds preset pricing tiers for Doubao Seed 1.8 to enhance discount calculations. -* Replaces Card components with divs to improve overall layout consistency. -* Updates internal billing calculations to use quota per unit for better accuracy. +- Admin JSON editing now has a more consistent experience and avoids UI issues that could hide content (#6421). +- Users page search is debounced to reduce unnecessary requests and improve responsiveness (#6474). +- Proxy-backed channel requests are more compatible and stable (#6157). +- Upstream error logs now provide more useful fallback details when providers return unclear errors (#6431). --- ### What's Changed -* fix(channel-test): support tiered billing model tests by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4145 -* 在管理员充值账单中显示用户 ID by @uskyu in https://github.com/QuantumNous/new-api/pull/4349 -* 增加令牌最后使用时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4372 -* chore(deps): bump github.com/jackc/pgx/v5 from 5.9.0 to 5.9.2 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4397 -* chore(deps-dev): bump @xmldom/xmldom from 0.8.12 to 0.8.13 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4399 -* Relax token key column length for legacy migration compatibility by @XiaoAI1024 in https://github.com/QuantumNous/new-api/pull/4401 -* fix(billing): preserve text tool surcharges in tiered settlement by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4162 -* feat: support for tiered billing expressions in the billing system by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4409 -* fix(image): only price image model use N ratio by @xyfacai in https://github.com/QuantumNous/new-api/pull/4412 -* fix: correct gpt-5.5 completion ratio by @jingx8885 in https://github.com/QuantumNous/new-api/pull/4414 -* fix: model pricing use correct display type by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4426 +* fix: list only channel models in unset price models tab by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6126 +* fix: purge authentication data on hard user deletion by @seefs001 in https://github.com/QuantumNous/new-api/pull/6168 +* fix(users): prevent large quota values from overflowing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6134 +* fix: infer MiniMax vendor for MiniMax models by @fux-dev in https://github.com/QuantumNous/new-api/pull/6164 +* fix: add server-side sorting to user list, prevent client-side sort on paged data by @DawnMoon1542 in https://github.com/QuantumNous/new-api/pull/6194 +* fix(data-table): update table body immediately when toggling columns by @DawnMoon1542 in https://github.com/QuantumNous/new-api/pull/6253 +* fix: prevent duplicate tool calls in Responses-to-Chat streaming by @nikuleo in https://github.com/QuantumNous/new-api/pull/6225 +* feat(channel): support Codex upstream model discovery by @seefs001 in https://github.com/QuantumNous/new-api/pull/6184 +* feat: support upstream model fetch for advanced custom channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/5971 +* refactor(auth): replace dashboard sessions with stateless tokens and session control by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6329 +* fix: 中转 gpt-realtime 系列 GA 模型时不再发送 realtime beta 标识 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6032 +* fix(playground): prevent model group option stretching by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6120 +* perf(data-table): optimize action column width allocation by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6135 +* fix(web): show used quota for unlimited API keys by @RedwindA in https://github.com/QuantumNous/new-api/pull/6224 +* fix(channel): improve proxy client compatibility and cache lifecycle by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/6157 +* fix(playground): resolve auto group model listing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6163 +* fix: prevent duplicate suno task refunds via cas status update by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6074 +* chore(github): migrate issue templates to required forms by @seefs001 in https://github.com/QuantumNous/new-api/pull/6452 +* fix(github): restore issue form visibility by @seefs001 in https://github.com/QuantumNous/new-api/pull/6454 +* fix: log response body when parsed upstream error message is empty by @bigsongeth in https://github.com/QuantumNous/new-api/pull/6431 +* fix: prevent model create from wiping existing pricing for same name by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6365 +* fix(web/channel): stabilize inline priority updates by @RedwindA in https://github.com/QuantumNous/new-api/pull/6415 +* perf(json-editor): unify admin JSON editing experience by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6421 +* feat: add gemini-3-pro-image and gemini-3.1-flash-image GA models by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6371 +* feat: support Tencent TokenHub API key via OpenAI-compatible protocol by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6232 +* fix: allow topup amount input to be fully cleared by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6473 +* fix: debounce users page search input by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6474 ### New Contributors -* @uskyu made their first contribution in https://github.com/QuantumNous/new-api/pull/4349 -* @XiaoAI1024 made their first contribution in https://github.com/QuantumNous/new-api/pull/4401 -* @jingx8885 made their first contribution in https://github.com/QuantumNous/new-api/pull/4414 +* @fux-dev made their first contribution in https://github.com/QuantumNous/new-api/pull/6164 +* @DawnMoon1542 made their first contribution in https://github.com/QuantumNous/new-api/pull/6194 +* @nikuleo made their first contribution in https://github.com/QuantumNous/new-api/pull/6225 +* @bigsongeth made their first contribution in https://github.com/QuantumNous/new-api/pull/6431 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.15...v0.13.0 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.21...v1.0.0-rc.22 **Download Resources** --- -## v0.12.15 +## v1.0.0-rc.21 - + -#### New Features -- Added Waffo Pay support for account top-ups and payment workflows (#4089). +### Highlights +The headline change is GPT-5.6 cache write billing: OpenAI `cache_write_tokens` are now charged at the cache-creation rate, with accounting safeguards around cached and uncached prompt tokens. This release also improves pricing workflows, Playground controls, channel table usability, and billing/logging reliability. -#### Bug Fixes -- Fixed a recharge card issue in the top-up flow that could break parts of the card interface (#4388). +### New Features +- Added GPT-5.6 cache write billing support, charging OpenAI `cache_write_tokens` at the cache-creation rate while keeping cached and uncached prompt token accounting consistent. +- Pricing pages now support group-aware dynamic calculations and avoid showing sample-only special groups (#5906). +- Model pricing settings now include an Unset Price Models tab plus status and sync filters, making it easier to find and configure models without prices (#6124). +- The Playground now includes request parameter panels for chat and generation tuning, so users can adjust model behavior directly in the UI (#6044). +- Channel lists now support manual column resizing and keep resized tables filling the available width (#5948). +- Logs now show stream timing metrics and task detail views for clearer troubleshooting. +- Added enhanced text protocol conversion and advanced custom routing capabilities for more flexible channel routing (#5825). -#### Improvements -- Added support for Gemini's `IncludeServerSideToolInvocations` setting in `ToolConfig`, improving compatibility with newer Gemini tool-calling behavior (#4311). -- Improved Codex channel reliability and usability by refreshing credentials for auto-disabled channels, using streaming for automatic tests, and refining the usage modal (#4324). +### Bug Fixes +- Browser translation can no longer corrupt React-rendered pages (#5963). +- Custom model names that differ only by case can now be added consistently, including from multi-select controls (#6061). +- Billing now handles quota pre-consumption and image-stream disconnect edge cases more accurately. +- Subscription reset handling is more reliable under concurrent updates (#6057). +- Codex response passthrough fields now sync correctly (#6018). +- Playground model selector lists now stay synchronized after model changes. +- Custom home iframes can trigger top navigation after a user action as intended (#5955). +- Restored paste behavior for default channel connection settings. + +### Improvements +- Upstream price sync tables in model pricing now load and render more efficiently (#6092). +- Refined table badges, pricing layouts, sync dialogs, and default theme styling for a cleaner admin UI. +- Font assets now resolve correctly across workspace layouts. --- ### What's Changed -* fix(gemini): add IncludeServerSideToolInvocations field to ToolConfig by @KoellM in https://github.com/QuantumNous/new-api/pull/4311 -* rafactor: payment by @seefs001 in https://github.com/QuantumNous/new-api/pull/4089 -* fix(topup): import missing Tag in recharge card by @gaoren002 in https://github.com/QuantumNous/new-api/pull/4388 -* chore: refine codex usage modal layout by @seefs001 in https://github.com/QuantumNous/new-api/pull/4386 -* fix: use stream for codex auto test by @seefs001 in https://github.com/QuantumNous/new-api/pull/4325 -* fix: refresh codex credentials for auto-disabled channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/4324 -* fix: require proper verification for passkey changes by @seefs001 in https://github.com/QuantumNous/new-api/pull/4393 +* fix(web): prevent browser translation from mutating React roots by @cat0825 in https://github.com/QuantumNous/new-api/pull/5963 +* feat(web): 支持渠道列表手动调整列宽 by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/5948 +* fix(web): let channel table fill available width by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/6031 +* chore: remove dead files resurrected by v1.0 launch commit by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6041 +* fix: use GORM v2 row locking for subscription resets by @seefs001 in https://github.com/QuantumNous/new-api/pull/6057 +* feat(playground): add playground parameter settings panel by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6044 +* fix: allow adding model names that differ only by case in multi-select by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6061 +* fix: remove sample special usable groups leaking into pricing page by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5906 +* perf(model-pricing): optimize upstream price sync tables by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6092 +* fix(web): allow user-activated top navigation for custom home iframe by @Heykode in https://github.com/QuantumNous/new-api/pull/5955 +* chore(deps): bump golang.org/x/crypto from 0.51.0 to 0.52.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6096 +* fix: sync codex responses passthrough fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/6018 +* feat: enhance text protocol conversion and advanced custom routing by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5825 +* feat: add unset price models tab to model pricing settings by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6124 ### New Contributors -* @KoellM made their first contribution in https://github.com/QuantumNous/new-api/pull/4311 -* @gaoren002 made their first contribution in https://github.com/QuantumNous/new-api/pull/4388 +* @cat0825 made their first contribution in https://github.com/QuantumNous/new-api/pull/5963 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.14...v0.12.15 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.20...v1.0.0-rc.21 **Download Resources** --- -## v0.12.14 +## v1.0.0-rc.20 - + -### Improvements -- Improved user-visible management and top-up logs with a cleaner display, preserved row expansion, and clearer handling of legacy records. +### Highlights +This release adds GPT-5.6 pricing support and stale instance cleanup tools for administrators. It also fixes several quota and pricing edge cases, including wallet reward transfers and decimal ratio input. + +### New Features +- Added token pricing support for GPT-5.6 models. +- Added system-info actions for cleaning up stale instances. (#5953) + +### Bug Fixes +- Wallet reward transfers now respect the configured quota unit instead of using an incorrect fixed unit. (#5808) +- Group ratio fields now allow decimal values such as `0.05` to be typed normally. (#5995) +- Tiered pricing now uses a default token estimate during pre-consumption, improving quota calculation for affected pricing rules. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.13...v0.12.14 +### What's Changed +* fix: 分组倍率 Ratio 输入框保留小数中间态,修复无法输入 0.05 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5995 +* feat(system-info): add stale instance cleanup actions by @seefs001 in https://github.com/QuantumNous/new-api/pull/5953 +* fix(wallet): honor configured quota units for reward transfers by @A-Words in https://github.com/QuantumNous/new-api/pull/5808 + +### New Contributors +* @A-Words made their first contribution in https://github.com/QuantumNous/new-api/pull/5808 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.19-i18nfix.2...v1.0.0-rc.20 **Download Resources** --- -## v0.12.13 - - - -This release improves admin workflows for top-ups and makes account status changes apply more consistently. - -#### Bug Fixes -- Disabling a user now takes effect immediately instead of being delayed by stale cached account data. - -#### Improvements -- Top-up logs now include additional admin-only audit details to make review and troubleshooting easier. - -#### Breaking Changes -- Top-up searches are now limited to a maximum 30-day date range to keep queries responsive and reliable. +## v1.0.0-rc.19-i18nfix.2 ---- + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.12...v0.12.13 +Fix i18n error **Download Resources** --- -## v0.12.12 +## v1.0.0-rc.19 - - -This release adds support for Claude Opus 4.7, expanding the set of available models in the API. + ### New Features -- Added support for the Claude Opus 4.7 model, making it available through the API alongside existing model options (#4293). +- Admins can now reset subscription quotas and review quota saturation events for auditing, making quota management easier (#5952). +- Added Traditional Chinese (zh-TW) localization for the new UI (#5942). + +### Bug Fixes +- Fixed billing quota calculations for very large quotas so limits are applied correctly. --- ### What's Changed -* feat: support claude-opus-4-7 by @prnake in https://github.com/QuantumNous/new-api/pull/4293 -* chore(deps): bump github.com/jackc/pgx/v5 from 5.7.1 to 5.9.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4294 +* Localized new ui to zh-TW by @MeowTechOpenSource in https://github.com/QuantumNous/new-api/pull/5942 +* feat(subscription): add admin quota reset actions by @seefs001 in https://github.com/QuantumNous/new-api/pull/5952 +### New Contributors +* @MeowTechOpenSource made their first contribution in https://github.com/QuantumNous/new-api/pull/5942 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.11...v0.12.12 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.18...v1.0.0-rc.19 **Download Resources** --- -## v0.12.11 +## v1.0.0-rc.18 - + -#### New Features -* Added payment method tracking and validation for top-ups. +Billing quota handling is more reliable in this release, with stricter quantity validation to prevent incorrect quota calculations. -#### Bug Fixes -* Improved handling of empty string content during OpenAI to Claude message conversion. +**Bug Fixes** +- Improved billing quantity validation so quota and usage calculations handle invalid or extreme values more reliably. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.10...v0.12.11 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.17...v1.0.0-rc.18 **Download Resources** --- -## v0.12.10 +## v1.0.0-rc.17 + + - +### Highlights +This release improves channel testing, redemption management, theme handling, and several web UI flows. It also fixes usage reporting, classic web builds, streaming disconnect handling, and quota/video duration calculations. ### New Features -- Added passthrough support for Claude `cache_control` and `speed` options, giving you more control over request behavior when using Claude models (#4247). +- Redemption management now supports status filtering and cleanup actions for easier administration. +- Group ratio editing is easier to use, with clearer visibility behavior and more robust JSON input handling. +- Redeem failures now show clearer messages so users can understand what went wrong. ### Bug Fixes -- Fixed OpenAI Responses API compatibility issues when `instructions` contain structured content instead of plain text (#4260). +- AI Elements integrations now read nested usage data so token usage is reported correctly. +- Classic web builds now complete successfully again (#5892). +- Field passthrough controls now appear correctly for Codex channels (#5902). +- Home iframes now stay in sync with the selected theme and language (#5917). +- Custom HTML rendered inside Shadow DOM now follows light and dark mode changes correctly (#5890). +- Logged-in users are now redirected away from the sign-up page consistently with the login and classic themes (#5910). +- Streaming responses no longer continue writing after the client disconnects (#5710). +- Quota settlement and Ali video duration handling were corrected after task balance settlement (#5923). +- Build date generation no longer fails when DNS lookup fails (#5945). ### Improvements -- Improved Stripe payment processing to better handle asynchronous webhook events, making delayed payment confirmations more reliable. -- Quota adjustment logs now record the acting admin username, making administrative audit trails easier to follow (#4216). +- Channel and model test dialogs are more compact and easier to operate (#5886). +- Dynamic pricing details now use styling consistent with the log details dialog (#5905). +- Mobile user cards have been refined for better readability and layout. +- Legacy top-up warning text is clearer and easier to understand (#5855). --- ### What's Changed -* fix: use json.RawMessage for Instructions field in OpenAIResponsesResponse by @linbin524 in https://github.com/QuantumNous/new-api/pull/4260 -* fix(channel): 修复多密钥管理弹窗索引显示,将索引值调整为从1开始 by @wans10 in https://github.com/QuantumNous/new-api/pull/4231 -* feat(claude): add cache_control and speed passthrough controls by @seefs001 in https://github.com/QuantumNous/new-api/pull/4247 -* feat: include admin username in quota adjustment logs by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4216 +* chore(deps-dev): bump tmp from 0.2.5 to 0.2.7 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5147 +* chore(web): update default web dependencies by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5884 +* perf(web): refine channel test dialog interactions by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5886 +* fix(classic): fix classic web build failures by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5892 +* fix(channels): show field passthrough controls for Codex by @seefs001 in https://github.com/QuantumNous/new-api/pull/5902 +* fix: align dynamic pricing style with log details dialog sections by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5905 +* fix: 任务差额结算后 quota 和阿里视频时长优化 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5923 +* fix(web): sync home iframe theme and language by @guoruqiang in https://github.com/QuantumNous/new-api/pull/5917 +* fix(web): 修复 Shadow DOM 隔离渲染下自定义 HTML 深浅色失效的问题 by @olwater in https://github.com/QuantumNous/new-api/pull/5890 +* fix(web): 注册页补充已登录重定向守卫,与登录页 / classic 主题保持一致 (#5908) by @Heykode in https://github.com/QuantumNous/new-api/pull/5910 +* feat: optimize legacy top-up warning banner copy (#5851) by @Gravirei in https://github.com/QuantumNous/new-api/pull/5855 +* fix: avoid stale stream writes after client disconnect by @seefs001 in https://github.com/QuantumNous/new-api/pull/5710 +* Fix/build date dns error by @seefs001 in https://github.com/QuantumNous/new-api/pull/5945 ### New Contributors -* @linbin524 made their first contribution in https://github.com/QuantumNous/new-api/pull/4260 +* @Heykode made their first contribution in https://github.com/QuantumNous/new-api/pull/5910 +* @Gravirei made their first contribution in https://github.com/QuantumNous/new-api/pull/5855 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.9...v0.12.10 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.16...v1.0.0-rc.17 **Download Resources** --- -## v0.12.9 +## v1.0.0-rc.16 - + -### New Features -- Subscription cards now show the next quota reset time, making it easier to see when usage limits will refresh (#4181). +**Highlights** -### Bug Fixes -- Claude requests are now more reliable by avoiding incompatible Top P settings when needed. -- Azure channels now correctly support the `/v1/responses/compact` route (#4149). -- Editing values in GroupTable no longer forces the cursor to jump to the end on each keystroke (#4208). +This release expands model and media compatibility with Responses/Chat interoperability, Doubao Seedance 2.0 updates, and Wan2.7 i2v media mapping. It also improves the web experience around Playground rendering, channel management, page state retention, and graceful restarts. -### Improvements -- Dashboard charts have been refined to present rankings and chart sizing more clearly for easier monitoring. +**New Features** + +- Added Responses API to Chat compatibility so providers and clients using either format can interoperate more reliably (#5787). +- Expanded Doubao Seedance 2.0 support with material asset APIs, resolution-aware billing, video-input billing, 4K billing, and new request options (#5824). +- Added Wan2.7 image-to-video media mapping support (#4984). +- Added graceful shutdown support to reduce interrupted replies and avoid losing cached panel data during restarts (#4258). +- Improved channel management with a clearer layout and a more capable advanced custom route editor. + +**Bug Fixes** + +- Fixed the model pricing tiered expression editor so it refreshes correctly when switching between models (#5752). +- Fixed async task usage logs so usage is attributed to the node that initiated the task (#5684). +- Fixed theme switching so the app returns to the home page instead of landing on a 404 route (#5612). +- Fixed custom HTML and Markdown rendering so content keeps consistent styling and spacing, including isolated HTML views (#5795). +- Fixed page state resets when switching tabs within the same route, including dashboard time ranges (#5796). +- Fixed channel status filters so they persist across page navigation (#5863). +- Fixed Ollama non-streaming tool call handling (#5865). +- Fixed Waffo product information and webhook behavior (#5704). + +**Improvements** + +- Improved the Playground chat experience and Markdown rendering (#5217). +- Streamlined table actions and destructive confirmation dialogs for a cleaner web UI (#5645). +- Improved ClickHouse log filtering for LIKE queries. +- Optimized the frontend build pipeline for faster web builds (#5786). --- ### What's Changed -* fix(GroupTable): prevent Input cursor jumping to end on keystroke by @Xbang0222 in https://github.com/QuantumNous/new-api/pull/4208 -* feat: display next quota reset time in subscription card by @ShengM97 in https://github.com/QuantumNous/new-api/pull/4181 -* fix: add Azure channel support for /v1/responses/compact URL routing by @woan1136 in https://github.com/QuantumNous/new-api/pull/4149 +* chore(deps): bump dompurify from 3.4.5 to 3.4.11 in /web/default by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5718 +* fix(ci): install classic workspace dependencies for releases by @seefs001 in https://github.com/QuantumNous/new-api/pull/5719 +* perf(web): streamline table actions and destructive dialogs by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5645 +* fix: add Waffo goods info and webhook SDK update by @zhongyuanzhao-alt in https://github.com/QuantumNous/new-api/pull/5704 +* fix(model-pricing): refresh tiered expression editor when switching models by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5752 +* fix: sync bun.lock with dompurify 3.4.11 to restore frozen-lockfile build by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5738 +* fix(theme): 切换前端主题后重置到首页,避免路由 404 by @zhangzhichaolove in https://github.com/QuantumNous/new-api/pull/5612 +* fix(task): attribute async task usage log to the initiating node by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5684 +* feat: add Casbin admin permissions by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5755 +* feat(playground): improve Playground chat experience and Markdown rendering by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5217 +* fix(auth): align password validation copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5759 +* fix(web): render custom HTML and Markdown content consistently by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5760 +* fix(openai): harden Chat-to-Responses compatibility by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5772 +* feat: support Responses to Chat by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5787 +* feat: doubao-seedance-2-0-260128支持按分辨率区分计费 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5300 +* feat: support doubao seedance 2.0 safety_identifier/priority and 4k billing by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5824 +* fix(web): 修复自定义 HTML 样式被过滤及排版间距异常的问题 by @olwater in https://github.com/QuantumNous/new-api/pull/5795 +* feat: support Wan2.7 i2v media mapping by @wxwwt in https://github.com/QuantumNous/new-api/pull/4984 +* perf(web): optimize web Rsbuild and Tailwind build pipeline by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5786 +* fix(makefile): run only default web dev server from dev-web by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5794 +* fix(web): inject app styles into isolated HTML by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5860 +* fix: preserve route state when switching same-route tabs (dashboard time range resets) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5796 +* 支持服务优雅关闭,避免重启回复中断和面板缓存数据丢失 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4258 +* fix: only treat 401 as session expiry in default theme auth guard by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5872 +* fix: persist channel status filter across page navigation by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5863 +* chore(deps): bump golang.org/x/net from 0.50.0 to 0.55.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5862 +* chore(deps): bump golang.org/x/image from 0.38.0 to 0.41.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5873 +* fix: handle ollama non-stream tool calls by @stevenjoezhang in https://github.com/QuantumNous/new-api/pull/5865 ### New Contributors -* @Xbang0222 made their first contribution in https://github.com/QuantumNous/new-api/pull/4208 -* @ShengM97 made their first contribution in https://github.com/QuantumNous/new-api/pull/4181 -* @woan1136 made their first contribution in https://github.com/QuantumNous/new-api/pull/4149 +* @zhangzhichaolove made their first contribution in https://github.com/QuantumNous/new-api/pull/5612 +* @olwater made their first contribution in https://github.com/QuantumNous/new-api/pull/5795 +* @wxwwt made their first contribution in https://github.com/QuantumNous/new-api/pull/4984 +* @stevenjoezhang made their first contribution in https://github.com/QuantumNous/new-api/pull/5865 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.8...v0.12.9 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.15...v1.0.0-rc.16 **Download Resources** --- -## v0.12.8 +## v1.0.0-rc.15 - + -#### Bug Fixes -* Correctly report the stream status in error logs instead of defaulting to false (#4195). +### Highlights +This release adds several operations-focused controls, including passive channel monitoring, ClickHouse-backed log storage, system task execution, and instance visibility. It also improves frontend reliability and polish across usage logs, markdown rendering, channel selection, and optional wallet UI behavior. + +### New Features +- Added passive channel monitoring mode for checking channel health without actively disrupting traffic (#5592). +- Added support for storing logs in ClickHouse for deployments that need scalable log storage and querying (#5663). +- Added a system task runner with persistent cleanup progress tracking for long-running maintenance jobs (#5680). +- Added a system instance information panel to make deployment/node status easier to inspect (#5716). +- Added a user token limit configuration section in system settings (#5678). +- Added channel testing controls for environment selection and asynchronous polling delay configuration. +- Default node names now fall back to the machine hostname when `NODE_NAME` is not set (#5659). + +### Bug Fixes +- Usage logs now show provider icons correctly for CN models (#5631). +- Corrected the Stepfun provider display name (#5636). +- Fixed SMTP compatibility with STARTTLS mode and NTLM authentication (#5426). +- Fixed classic theme build failures related to timezone date handling (#5676). +- Improved markdown rendering and expanded syntax support in the web UI (#5689). +- Fixed channel card selection state so the UI stays in sync with the selected channel (#5700). +- Hid the wallet entry from the profile dropdown when the wallet module is disabled (#5708). + +### Improvements +- Simplified log cleanup behavior as part of the new ClickHouse logging and system task maintenance flow. --- ### What's Changed -* fix: isStream status in error logs instead of hardcoded false by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4195 -* chore(deps): bump axios from 1.13.5 to 1.15.0 in /web by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4201 +* fix(usage-logs): show provider icons for CN models (align with classic frontend) by @DeliciousBuding in https://github.com/QuantumNous/new-api/pull/5631 +* fix: StepFun -> Stepfun by @seefs001 in https://github.com/QuantumNous/new-api/pull/5636 +* feat: add passive channel monitoring mode by @exherb in https://github.com/QuantumNous/new-api/pull/5592 +* feat: default node name to hostname when NODE_NAME unset by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5659 +* feat: support ClickHouse log database by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5663 +* fix: support SMTP STARTTLS mode and NTLM auth by @bensonfx in https://github.com/QuantumNous/new-api/pull/5426 +* chore(deps): bump github.com/ClickHouse/ch-go from 0.58.2 to 0.65.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5664 +* fix: date-fns-tz classic theme build error by @seefs001 in https://github.com/QuantumNous/new-api/pull/5676 +* feat: add system task runner by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5680 +* feat: add system instance info panel by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5716 +* fix(web): replace default markdown renderer and expand syntax support by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5689 +* fix(web): sync channel card selection state by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5700 +* fix(web): hide wallet entry in profile dropdown when wallet module disabled by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5708 +* feat(system-settings): add user token limit configuration section by @RedwindA in https://github.com/QuantumNous/new-api/pull/5678 +### New Contributors +* @DeliciousBuding made their first contribution in https://github.com/QuantumNous/new-api/pull/5631 +* @exherb made their first contribution in https://github.com/QuantumNous/new-api/pull/5592 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.7...v0.12.8 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.14...v1.0.0-rc.15 **Download Resources** --- -## v0.12.7 +## v1.0.0-rc.14 - + +### Highlights +This release adds a new dashboard traffic flow Sankey chart for visualizing token routing and flow patterns, with interactive highlighting, persistent filters, and limits to keep large graphs readable. Channel management also gets a faster, cleaner card layout for easier browsing and reduced UI re-rendering. + +### New Features +- Added a dashboard traffic flow Sankey chart to help admins understand token flow and routing behavior at a glance (#5465). +- Added routing reliability management for better control and visibility over routing behavior. + +### Gallery +| Traffic flow chart | Channel management card layout | +| --- | --- | +|QQ_1781965314487| | + +### Bug Fixes +- Fixed log filtering by login type in the new frontend (#5620). +- Fixed the billing history dialog layout so pagination no longer overlaps the list (#5627). +- Fixed model pricing entries that could not be deleted from the visual pricing list (#5628). +- Fixed repeated database column migrations running again after restarts (#5361, #5616). + ### Improvements -- Quota management now uses an amount-first input flow and applies changes atomically, making balance adjustments simpler and more reliable. -- Model pricing errors now use cleaner, role-aware messages so it is easier to understand and resolve failed pricing actions. +- Improved the channel management card layout and reduced unnecessary re-renders for a smoother experience. +- Simplified the model list for easier scanning and management. +- Updated channel icons for better visual consistency. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.6...v0.12.7 +### What's Changed +* fix: stop repeated allow_balance_pay column migration on restart by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5361 +* fix: stop repeated allow_wallet_overflow column migration on restart by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5616 +* feat(dashboard): 增加分流图,查看token流量。add traffic flow sankey chart by @Quaternijkon in https://github.com/QuantumNous/new-api/pull/5465 +* fix(log): 修复新前端日志按登录类型(type=7)筛选失效 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5620 +* fix(wallet): 修复计费历史弹窗分页与列表重叠 (#5624) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5627 +* fix(model-pricing): 修复模型定价列表项无法删除 (#5623) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5628 + +### New Contributors +* @Quaternijkon made their first contribution in https://github.com/QuantumNous/new-api/pull/5465 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.13...v1.0.0-rc.14 **Download Resources** --- -## v0.12.6 +## v1.0.0-rc.13 - + -#### New Features -* Fill in custom fields for vllm-omini (#4154) +v1.0.0-rc.13 focuses on a more polished and responsive frontend experience, especially around channel management and data-heavy pages. The channel page now supports a card-style display with improved mobile layouts, while logs, metrics, endpoint selection, date picking, and usage views received UI/UX refinements. -#### Bug Fixes -* Accept string usage values in Alibaba task polling (#4155) -* Use correct endpoint for coding plan image generation in Zhipu 4V (#4146) -* Prefer explicit pricing for compact models (#4156) -* Fix document rendering (#4153) +### New Features +- Added a reusable card/table view toggle for data tables, including a new card layout that makes channel and table-heavy pages easier to browse on different screen sizes. +- Added locale-aware number formatting so numeric values are displayed more naturally for users in different regions. -#### Improvements -* Refine PR template and add PR submission checks (#4076) +### Improvements +- Improved the channel page card layout with a clearer left/right structure and better mobile handling for small screens. +- Refined logs, metrics, endpoint selection, date picker, toolbar controls, and model drawer interfaces for a cleaner and more consistent UI/UX. +- Updated the Codex usage interface for better readability and usability (#5595). +- Reduced unnecessary data refreshes when returning focus to the browser window, improving frontend performance. +- Updated frontend branding copy and visual styling for a more consistent product experience. + +### Bug Fixes +- Improved timestamp precision in drawing-related displays by including milliseconds where needed. --- ### What's Changed -* fix(zhipu_4v): use correct endpoint for coding plan image generation by @NyaMisty in https://github.com/QuantumNous/new-api/pull/4146 -* fix: prefer explicit pricing for compact models by @seefs001 in https://github.com/QuantumNous/new-api/pull/4156 -* fix(ali): accept string usage values in task polling by @seefs001 in https://github.com/QuantumNous/new-api/pull/4155 -* feat: fill in some custom fields for vllm-omini by @seefs001 in https://github.com/QuantumNous/new-api/pull/4154 -* fix: document render by @seefs001 in https://github.com/QuantumNous/new-api/pull/4153 -* ci: refine PR template and add PR submission checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4076 +* chore(web): enforce default frontend oxc quality checks by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5585 +* refactor: codex usage ui by @seefs001 in https://github.com/QuantumNous/new-api/pull/5595 -### New Contributors -* @NyaMisty made their first contribution in https://github.com/QuantumNous/new-api/pull/4146 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.5...v0.12.6 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.12...v1.0.0-rc.13 **Download Resources** --- -## nightly-20260409-4d2993e +## v1.0.0-rc.12 - + -#### Highlights / 重点更新 - -This release introduces comprehensive support for **tiered billing (阶梯计费)**. It allows for flexible pricing expressions, detailed tool call quota calculations, and channel test support for tiered models. -本次发布重点增加了对**阶梯计费**的全面支持,支持灵活的计费表达式解析、自定义工具调用额度计算,并完善了UI配置项和渠道测试支持。 +Highlights: This release introduces AdvancedCustom channels for more flexible custom routing, makes channel batch testing easier to act on, and expands model marketplace performance monitoring with clearer success-rate and latency insights. -**Docker image:** `calciumion/new-api:nightly` -**Docker 镜像:** `calciumion/new-api:nightly` - - +### New Features +- Added AdvancedCustom channels with improved custom route matching for more flexible provider and model routing (#5590). +- Enhanced channel model batch testing with complete test execution, refreshed status updates, clearer results, failed-model deletion, and copying selected models (#5532). +- Expanded model marketplace performance monitoring with uptime calculations, recent success rates, success-rate grading, and compact latency/throughput displays. +- Added persistent table preferences so page size and column visibility are remembered across navigation and sessions (#5403). -#### New Features -* Added comprehensive support for tiered billing, including flexible expression evaluation, tool pricing settings UI, and channel test support (#4145). -* Added custom fields support for vllm-omini models (#4154). +### Bug Fixes +- Fixed tool-call handling so empty `arguments` values still preserve the expected `tool_use` block (#5543). +- Fixed the CC Switch model selector so model choices display and update correctly (#5515). +- Fixed several UI clipping and overflow issues in lists, data tables, usage log details, and custom home iframes (#5510, #5536, #5533, #5545). -#### Bug Fixes -* Fixed an issue in Alibaba Cloud task polling to correctly accept string usage values (#4155). -* Fixed the endpoint for Zhipu 4v coding plan image generation (#4146). -* Fixed pricing calculation to prefer explicit pricing for compact models (#4156). +### Improvements +- Improved payment and recharge UI with clearer payment method buttons, icons, and minimum top-up information. +- Improved subscription plan presentation with purchase descriptions, wallet overflow handling, and downgrade group support. +- Refined settings, overview setup guide, wallet/profile interactions, and log statistic card layouts for better readability. -#### Improvements -* Improved UI layout consistency by replacing card components with divs. -* Added nightly branch trigger to Docker image CI workflows. -* Refined PR templates and added PR submission checks (#4076). +### Breaking Changes +- Subscription product option and catalog endpoints now use `GET`, which may require client integrations to update their request method. +- Removed the “All” period option from rankings filters. --- ### What's Changed -* fix(zhipu_4v): use correct endpoint for coding plan image generation by @NyaMisty in https://github.com/QuantumNous/new-api/pull/4146 -* fix: prefer explicit pricing for compact models by @seefs001 in https://github.com/QuantumNous/new-api/pull/4156 -* fix(ali): accept string usage values in task polling by @seefs001 in https://github.com/QuantumNous/new-api/pull/4155 -* feat: fill in some custom fields for vllm-omini by @seefs001 in https://github.com/QuantumNous/new-api/pull/4154 -* fix: document render by @seefs001 in https://github.com/QuantumNous/new-api/pull/4153 -* ci: refine PR template and add PR submission checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4076 -* fix(channel-test): support tiered billing model tests by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4145 +* fix(web): prevent list cell text and badge overflow by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5510 +* fix(keys): refresh API key form options by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5512 +* fix: fix CC Switch model selector by @seefs001 in https://github.com/QuantumNous/new-api/pull/5515 +* fix(data-table): capture row selection state in memo comparison by @RedwindA in https://github.com/QuantumNous/new-api/pull/5524 +* fix(channels): refresh channel test dialog status by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5517 +* fix: restore custom home iframe viewport height by @seefs001 in https://github.com/QuantumNous/new-api/pull/5545 +* fix(web): prevent usage log details dialog from clipping bottom content by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5533 +* fix: aws ak/sk context management by @seefs001 in https://github.com/QuantumNous/new-api/pull/5547 +* test: clean up reward-hacking backend tests by @seefs001 in https://github.com/QuantumNous/new-api/pull/5563 +* fix: 工具调用 arguments 为空时保留 tool_use 块 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5543 +* fix: complete channel model batch testing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5532 +* feat: 持久化表格每页条数,跨导航/会话记忆 (#5377) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5403 +* fix(data-table): prevent component cell clipping by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5536 +* fix(oauth): clear bindings when hard deleting users by @seefs001 in https://github.com/QuantumNous/new-api/pull/5582 +* feat: advanced custom channel by @seefs001 in https://github.com/QuantumNous/new-api/pull/5590 -### New Contributors -* @NyaMisty made their first contribution in https://github.com/QuantumNous/new-api/pull/4146 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.5...nightly-20260409 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.11...v1.0.0-rc.12 **Download Resources** --- -## v0.12.5 +## v1.0.0-rc.11 - + -#### New Features -* Add support for Minimax image generation relay (#4103). - -#### Improvements -* Redesign group ratio rules with a collapsible layout for better usability. -* Enhance dashboard chart axes and sorting logic. -* Add a convenient copy button next to the API link in the dashboard info panel. - -#### Bug Fixes -* Resolve email delivery issues for Outlook and similar providers (#4112). - - - - ---- - -### What's Changed -* feat: 支持强制使用 AUTH LOGIN 以解决 outlook 等邮箱的发件问题 by @Hoshino-Yumetsuki in https://github.com/QuantumNous/new-api/pull/4112 -* feat(minimax): add image generation relay support by @forsakenyang in https://github.com/QuantumNous/new-api/pull/4103 - -### New Contributors -* @Hoshino-Yumetsuki made their first contribution in https://github.com/QuantumNous/new-api/pull/4112 -* @forsakenyang made their first contribution in https://github.com/QuantumNous/new-api/pull/4103 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.4...v0.12.5 +Highlights: This release adds support for Claude Opus 4.8, improves OpenAI image API compatibility, and makes the model pricing editor and data-heavy tables easier to use. It also fixes several UI, quota display, relay compatibility, and provider-specific issues. + +### New Features +- Added support for Claude Opus 4.8 (#5177). +- Added an option to control whether channel stickiness is cleared when a channel is disabled (#5306). +- Added a subscription balance redemption toggle for more flexible balance handling. +- Added user ID visibility on the profile page (#5317). +- Added support for streaming image relay and image edits in the OpenAI images API (#4608). + +### Bug Fixes +- Forms now focus the first validation error after submission, making errors easier to find and correct (#5163). +- Fixed custom cc-switch names being reset after losing focus (#5170). +- Fixed custom model icons not staying in sync in pricing views (#5224). +- Fixed advanced channel validation errors so they are shown without incorrectly expanding unrelated settings (#5239). +- Fixed quota and balance displays so currency conversion updates both the unit and the displayed value (#5296). +- Fixed Dify remote-image handling in file-based requests (#5134). +- Fixed model resolution for video generation task lookups (#5133). +- Improved Anthropic-compatible GLM relay behavior to avoid compatibility failures (#5307). +- Narrowed OpenAI o-series model adaptation to avoid applying it to unsupported models (#5293). +- Fixed multiselect popovers so they respect the active theme (#5328). +- Fixed Kimi K2.6 temperature normalization (#5390). +- Added support for filtering deleted users by status (#5464). +- Fixed deployment settings loading so they are only fetched on the deployments page (#5466). + +### Improvements +- Improved admin log and batch update performance for smoother large-scale operations (#5116). +- Improved the model pricing editor with clearer layouts, better draft saving, reusable JSON editing, and support for six-decimal pricing steps (#5275). +- Improved channel search responsiveness with debouncing and better IME input handling (#5393). +- Improved frontend table rendering, pinned columns, table layout, and badge display (#5405). +- Improved dialog sizing and footer layout across the frontend (#5346). +- Simplified public page hero copy for a cleaner landing page (#5339). + +--- + +### What's Changed +* fix(web): improve form validation error focus by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5163 +* feat(keys/cc-switch-dialog): 修复自定义cc-switch名称失焦后重置问题 by @GnezIew in https://github.com/QuantumNous/new-api/pull/5170 +* fix(model): correct idx_created_at_id index column order to (created_at, id) by @realRoc in https://github.com/QuantumNous/new-api/pull/5191 +* perf: order admin logs by created_at to use composite index by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5116 +* chore(deps): bump axios from 1.15.2 to 1.16.0 in /web/classic by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5185 +* feat: support claude-opus-4-8 by @hjxwz123 in https://github.com/QuantumNous/new-api/pull/5177 +* fix(pricing): sync custom model icons by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5224 +* chore(web): centralize shared frontend dependency versions by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5227 +* feat(web): support classic Rsbuild dev and build by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5232 +* fix(channels): reveal advanced validation errors by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5239 +* docs: refine issue templates by @seefs001 in https://github.com/QuantumNous/new-api/pull/5271 +* fix: 修复余额显示时只切换了单位未切换数值 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5296 +* fix(dify): initialize file pointer before remote-image field assignment by @Pluviobyte in https://github.com/QuantumNous/new-api/pull/5134 +* fix(distributor): resolve model for GET /v1/video/generations/:task_id by @Pluviobyte in https://github.com/QuantumNous/new-api/pull/5133 +* fix: add relay idle connection timeout config by @seefs001 in https://github.com/QuantumNous/new-api/pull/5309 +* feat: 支持配置渠道被禁用后是否清空渠道粘性 by @GuangYiDing in https://github.com/QuantumNous/new-api/pull/5306 +* fix(relay): fix Anthropic-compatible compatibility for GLM (avoid chunked encoding) by @Chen011214 in https://github.com/QuantumNous/new-api/pull/5307 +* fix: limit anonymous request body by @seefs001 in https://github.com/QuantumNous/new-api/pull/5244 +* fix(i18n): clarify thinking adapter copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5242 +* fix: 收窄 OpenAI o 系列模型适配范围 by @USER-HFC in https://github.com/QuantumNous/new-api/pull/5293 +* fix: reuse stream scanner buffer in channel handlers by @xujiantop-crypto in https://github.com/QuantumNous/new-api/pull/5225 +* feat(web): show user id on profile page by @P2K0 in https://github.com/QuantumNous/new-api/pull/5317 +* perf(model-pricing): improve model pricing editor UX by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5275 +* perf(web): simplify public page hero copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5339 +* perf(web): improve frontend dialog layout and sizing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5346 +* fix: respect theme for multiselect combobox popover by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5328 +* fix: align mobile usage log cost badge by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5161 +* fix: support six-decimal steps in model pricing editor by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5332 +* fix(openai): support streaming image relay and image edit for images API by @gaoren002 in https://github.com/QuantumNous/new-api/pull/4608 +* perf(web): add debounce channel search and skip during IME composition by @QAbot-zh in https://github.com/QuantumNous/new-api/pull/5393 +* fix: normalize kimi k2.6 temperature by @bensonfx in https://github.com/QuantumNous/new-api/pull/5390 +* perf(web): improve frontend table rendering and pinned columns/UI table by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5405 +* perf(data-table): improve data table layout and badge display by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5460 +* feat(audit): add localized security audit logs by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5462 +* chore: update Codex channel by @seefs001 in https://github.com/QuantumNous/new-api/pull/5461 +* fix: add deleted user status filter by @seefs001 in https://github.com/QuantumNous/new-api/pull/5464 +* fix: only fetch deployment settings on deployments page by @seefs001 in https://github.com/QuantumNous/new-api/pull/5466 + +### New Contributors +* @GnezIew made their first contribution in https://github.com/QuantumNous/new-api/pull/5170 +* @realRoc made their first contribution in https://github.com/QuantumNous/new-api/pull/5191 +* @hjxwz123 made their first contribution in https://github.com/QuantumNous/new-api/pull/5177 +* @Pluviobyte made their first contribution in https://github.com/QuantumNous/new-api/pull/5134 +* @GuangYiDing made their first contribution in https://github.com/QuantumNous/new-api/pull/5306 +* @Chen011214 made their first contribution in https://github.com/QuantumNous/new-api/pull/5307 +* @USER-HFC made their first contribution in https://github.com/QuantumNous/new-api/pull/5293 +* @xujiantop-crypto made their first contribution in https://github.com/QuantumNous/new-api/pull/5225 +* @P2K0 made their first contribution in https://github.com/QuantumNous/new-api/pull/5317 +* @bensonfx made their first contribution in https://github.com/QuantumNous/new-api/pull/5390 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.10...v1.0.0-rc.11 **Download Resources** --- -## v0.12.4 +## v1.0.0-rc.10 - + + +### Highlights +v1.0.0-rc.10 focuses on UI polish, relay reliability, and admin workflow fixes. It adds new theme options and subscription balance purchases while tightening logs, channel behavior, webhooks, payments, and provider tool-call handling. ### New Features -* Added an `IncludeModelName` option to channel affinity rules for per-model affinity tracking (#3488) -* Added an ErrorBoundary component to the web UI to prevent full-page crashes (#3350) -* Added support for `Duration` in `TaskSubmitReq` (#4068) -* Added admin user analytics to the dashboard +- New theme customization options add Anthropic and Simple Large presets, configurable serif typography, and an extra-large scaling option. +- Subscription billing now supports balance purchases. ### Bug Fixes -* Fixed pricing filtering based on usable groups (#4123) -* Fixed an issue where Claude streaming interruptions incorrectly overwrote usage data instead of preserving cache billing fields (#4128) -* Fixed an issue where the "do not retry after failure" configuration was incorrectly overwritten in memory (#4142) +- Automatically disabled channels are no longer selected for new requests, and channel actions no longer show duplicate notifications (#4983). +- Tool-call relays between Gemini and Claude are more reliable, including concurrent tool calls (#5095). +- Image relay requests now apply the requested quality setting correctly (#5103). +- Usage log filters now match exact values unless a wildcard is explicitly used, and very large upstream errors are shortened to keep logs usable (#5097). +- Webhook processing now completes more reliably (#5047). +- Waffo payment settings now save consistently and hide legacy options (#5110). +- System Settings now detects unsaved changes correctly and handles numeric inputs without invalid values. ### Improvements -* Added support for enabling error logging via environment variables (#4131) -* Wrapped scope tag labels with `t()` for better i18n support -* Fixed chart labels on the dashboard +- Large media relay requests now use less memory, improving stability under load. +- System Settings and channel creation/editing pages have clearer, more compact layouts with improved controls. +- Usage logs and the default web UI are easier to use on mobile and easier to scan, with better table spacing, badges, charts, and dark-mode readability. +- The homepage hero section has been refreshed with a cleaner two-column layout and updated copy. --- ### What's Changed -* feat: add IncludeModelName option to channel affinity rules by @clansty in https://github.com/QuantumNous/new-api/pull/3488 -* feat: add ErrorBoundary to prevent full-page crashes by @goodmorning10 in https://github.com/QuantumNous/new-api/pull/3350 -* fix: Claude 流式断流时不再整份覆盖 usage,保留 cache 计费字段 by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/4128 -* fix(pricing): add filtering for pricing based on usable groups by @bbbugg in https://github.com/QuantumNous/new-api/pull/4123 -* chore(deps): bump github.com/aws/aws-sdk-go-v2/service/bedrockruntime from 1.50.0 to 1.50.4 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4136 -* add 添加 启用错误日志记录到env配置中 by @binorxin in https://github.com/QuantumNous/new-api/pull/4131 -* Seedance support duration by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4068 -* fix: 修复 失败后不重试 配置项写到内存被覆盖 by @seefs001 in https://github.com/QuantumNous/new-api/pull/4142 +* 🐛 fix(channel): evict auto-disabled multi-key channels from cache by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4983 +* [BugFix] fix webhook process by @Hill-waffo in https://github.com/QuantumNous/new-api/pull/5047 +* fix(payment): hide classic Waffo Pancake settings by @seefs001 in https://github.com/QuantumNous/new-api/pull/5085 +* fix(relay): correct image quality parameter handling by @lanfunoe in https://github.com/QuantumNous/new-api/pull/5103 +* fix: truncate oversized upstream error logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/5083 +* fix: 移除 fcIdx -1 偏移,修复并发工具调用撞键问题 by @learner-i in https://github.com/QuantumNous/new-api/pull/5095 +* fix:gemini to claude tool_use err by @nekohy in https://github.com/QuantumNous/new-api/pull/5041 +* fix: handle paginated API key search response by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5014 +* fix: prevent duplicate channel action toasts by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5015 +* fix: consolidate Waffo payment settings save flow by @seefs001 in https://github.com/QuantumNous/new-api/pull/5110 +* fix: use actual user id for channel tests by @seefs001 in https://github.com/QuantumNous/new-api/pull/5109 +* fix: keep usage log filters exact unless wildcard is explicit by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5097 ### New Contributors -* @clansty made their first contribution in https://github.com/QuantumNous/new-api/pull/3488 -* @goodmorning10 made their first contribution in https://github.com/QuantumNous/new-api/pull/3350 -* @zuiho-kai made their first contribution in https://github.com/QuantumNous/new-api/pull/4128 -* @bbbugg made their first contribution in https://github.com/QuantumNous/new-api/pull/4123 +* @learner-i made their first contribution in https://github.com/QuantumNous/new-api/pull/5095 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.3...v0.12.4 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.8...v1.0.0-rc.10 **Download Resources** --- -## v0.12.3 +## v1.0.0-rc.8 - + -This is a small polish release focused on making configuration easier to navigate by simplifying the settings layout and consolidating model pricing controls. +#### Highlights +This release adds Waffo Pancake gateway support with admin catalog/product binding and focuses on polishing admin/API behavior. It also improves model metadata and pricing consistency, channel-test diagnostics, dashboard/reporting filters, and request-processing efficiency. -### Improvements -- Refined the settings interface with a unified model pricing view and a cleaner tab structure to make configuration easier to navigate. +#### New Features +- Added Waffo Pancake gateway support with admin catalog/product binding (#4935). + +#### Bug Fixes +- Dashboard content now follows configured visibility settings consistently (#4975). +- Performance metric summaries now include only active groups (#4976). +- Model pricing displays are now normalized to avoid inconsistent values (#4985). +- Model ownership metadata is now resolved from active channels for more accurate model listings (#4416). +- Default frontend links now point to the correct routes (#5016). +- Restored the previous usage-log filtering behavior to avoid regressions from the earlier filter change. + +#### Improvements +- Channel tests now show clearer failure details when checks fail (#4988). +- Reduced request-processing overhead to improve performance under load (#5009). --- ### What's Changed -* feat(token): add batch API for fetching token keys by @RedwindA in https://github.com/QuantumNous/new-api/pull/4114 +* fix: expose param override audits for sensitive message fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4974 +* fix: respect dashboard content visibility settings by @seefs001 in https://github.com/QuantumNous/new-api/pull/4975 +* fix: filter perf metrics summary by active groups by @seefs001 in https://github.com/QuantumNous/new-api/pull/4976 +* fix: improve channel test failure details UX by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4988 +* fix: normalize model pricing display drift by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4985 +* fix: resolve model owned_by from active channels by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4416 +* perf: optimize request metadata extraction and disabled field filtering by @seefs001 in https://github.com/QuantumNous/new-api/pull/5009 +* fix: update default frontend hardcoded route links by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5016 +* 修复 切换新版前端Turnstile 开启后注册页未显示验证的问题 by @JunXiaoRuo in https://github.com/QuantumNous/new-api/pull/5011 +* [Feature Request] Waffo Pancake gateway — full integration with subscription support + admin catalog binding flow by @Hill-waffo in https://github.com/QuantumNous/new-api/pull/4935 +* fix: enforce Waffo subscription compliance and product ID update by @seefs001 in https://github.com/QuantumNous/new-api/pull/5038 + +### New Contributors +* @JunXiaoRuo made their first contribution in https://github.com/QuantumNous/new-api/pull/5011 +* @Hill-waffo made their first contribution in https://github.com/QuantumNous/new-api/pull/4935 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.7...v1.0.0-rc.8 + +**Download Resources** + + + + + +--- +## v1.0.0-rc.7 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.2...v0.12.3 + + +#### New Features +- Added support for `request_header` key source (#4903). + +#### Bug Fixes +- Batch fixed multiple UI issues in the default web interface (#4880, #4893, #4817, #4877, #4898, #4876). +- Addressed an issue where channel remarks could not be cleared (#4886). +- Corrected the filtering behavior for usage logs (#4883). +- Fixed validation for unlimited API key quotas in the web interface (#4881). +- Enforced access control on header navigation for public modules (#4889). +- Applied group filters correctly to channel list queries (#4847, #4885). +- Fixed an ambiguity issue with column names during `PerfMetric` upserts (#4684). +- Added missing analytics placeholders to the default theme (#4928). +- Fixed forgot password form submission by properly typing the button (#4910). +- Normalized the layout of model detail tabs in the web interface (#4938). +- Fixed user creation and deletion handling in the management panel (#4818). +- Gated the sign-up link on the login page based on registration settings (#4871). +- Updated pagination button labels in the ModelCardGrid (#4675). +- Localized the reset password confirmation message (#4769). +- Made recharge preset selections visible in dark mode (#4897). +- Fixed an issue where the API info color dot showed the wrong color due to a semantic token mismatch (#4824). +- Corrected silent failures when saving API info with invalid colors (#4823). +- Used the correct `aff_code` field name in registration payloads (#4965). +- Made the faceted filter popover width adaptive in data tables (#4966). +- Resolved stale form linkage issues when submitting keys (#4967). + +#### Improvements +- Improved performance by avoiding eager formatting in debug log calls (#4929). + +--- + +### What's Changed +* fix: allow clearing channel remark by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4886 +* fix: correct usage logs filtering by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4883 +* fix(web): handle unlimited API key quota validation by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4881 +* fix: enforce header nav access control for public modules by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4889 +* fix: GetAllChannels ignores group filter parameter by @draftgo in https://github.com/QuantumNous/new-api/pull/4847 +* fix: qualify column names in PerfMetric upsert to avoid PG ambiguity by @SAY-5 in https://github.com/QuantumNous/new-api/pull/4684 +* fix: apply group filter to channel list queries by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4885 +* feat: support request_header key source by @seefs001 in https://github.com/QuantumNous/new-api/pull/4903 +* fix: 修复新 UI 语言与文案显示问题 by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/4876 +* fix: add umami & ga4 placeholder in index.html of default theme by @NitroRCr in https://github.com/QuantumNous/new-api/pull/4928 +* perf: avoid eager formatting in debug log calls by @seefs001 in https://github.com/QuantumNous/new-api/pull/4929 +* fix: add type="submit" to forgot password form button by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4910 +* fix(web): normalize model detail tabs layout by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4938 +* fix(user): fix user create and delete handling in management panel by @bugmaker2 in https://github.com/QuantumNous/new-api/pull/4818 +* fix(auth): expose register_enabled in /api/status and gate sign-up link on login page by @Gnonymous in https://github.com/QuantumNous/new-api/pull/4871 +* fix(web/default): clarify pagination button labels in ModelCardGrid by @ellisfan in https://github.com/QuantumNous/new-api/pull/4675 +* fix(auth): localize reset password confirmation by @neow021 in https://github.com/QuantumNous/new-api/pull/4769 +* fix(web/default/wallet): make recharge preset selection visible in dark mode by @xinnyu in https://github.com/QuantumNous/new-api/pull/4897 +* fix(web/default): api-info color dot shows wrong color due to semantic token mismatch by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4824 +* fix(web/default): api-info save silently fails when color is invalid or result unchecked by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4823 +* fix(auth): use aff_code field name in registration payload (#4945) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4965 +* fix(data-table): make faceted filter popover width adaptive (#4905) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4966 +* fix(keys): call submit handler directly to avoid stale form linkage (#4858) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4967 + +### New Contributors +* @draftgo made their first contribution in https://github.com/QuantumNous/new-api/pull/4847 +* @SAY-5 made their first contribution in https://github.com/QuantumNous/new-api/pull/4684 +* @bugmaker2 made their first contribution in https://github.com/QuantumNous/new-api/pull/4818 +* @Gnonymous made their first contribution in https://github.com/QuantumNous/new-api/pull/4871 +* @ellisfan made their first contribution in https://github.com/QuantumNous/new-api/pull/4675 +* @neow021 made their first contribution in https://github.com/QuantumNous/new-api/pull/4769 +* @xinnyu made their first contribution in https://github.com/QuantumNous/new-api/pull/4897 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.6...v1.0.0-rc.7 **Download Resources** - + + +--- + +## v1.0.0-rc.6 + + + +### Highlights +This release improves observability by recording upstream request IDs in logs and adds a compliance confirmation step for paid features. If your `logs` table is large, pre-apply the `upstream_request_id` column and index with online DDL before upgrading to avoid a potentially long migration. + +### New Features +- Added upstream request ID tracking in request logs for easier upstream call tracing, while avoiding unintended response header overrides. +- Added a compliance confirmation step before paid features can be used. + +### Bug Fixes +- Fixed the channel combobox so focusing it no longer hides valid channel options (#4829). + +### Other +- Upgrade notice: the `logs` table now includes a new `upstream_request_id` column and index; on large installations, run the appropriate online DDL below before upgrading to avoid a long or blocking automatic migration. ---- +MySQL / InnoDB: -## v0.12.2 +```sql +-- 1. Add the column using online DDL. +ALTER TABLE logs + ADD COLUMN upstream_request_id VARCHAR(128) NOT NULL DEFAULT '', + ALGORITHM=INPLACE, LOCK=NONE; - +-- 2. Add the index using online DDL. +ALTER TABLE logs + ADD INDEX idx_logs_upstream_request_id (upstream_request_id), + ALGORITHM=INPLACE, LOCK=NONE; +``` -#### New Features -* Add support for PDF conversion between OpenAI and Claude APIs. -* Support differential billing for Seedance 2.0 based on video vs. no-video input. -* Enhance max_tokens handling and input sanitization in the playground (#4106). -* Enhance stream status display with error tooltips in usage logs. +PostgreSQL 11+: -#### Bug Fixes -* Fix usage calculation issues when converting between Claude and OpenAI APIs by emitting `message_delta` for the final stream chunk (#4090). -* Fix Gemini stream detection by checking the `:streamGenerateContent` URL path (#4087). -* Fix Claude request requirements by properly setting TopP to nil. +```sql +-- 1. Add the column without rewriting the table on PG 11+. +ALTER TABLE logs + ADD COLUMN IF NOT EXISTS upstream_request_id VARCHAR(128) NOT NULL DEFAULT ''; -#### Improvements -* Unify file source creation and enhance caching mechanisms. +-- 2. Add the index concurrently to avoid blocking reads and writes. +CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_logs_upstream_request_id + ON logs (upstream_request_id); +``` --- ### What's Changed -* fix(gemini): detect streaming from URL path :streamGenerateContent by @D26FORWARD in https://github.com/QuantumNous/new-api/pull/4087 -* fix: emit claude message_delta for usage-only final stream chunk by @seefs001 in https://github.com/QuantumNous/new-api/pull/4090 -* chore(deps-dev): bump electron from 35.7.5 to 39.8.5 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4080 -* chore(deps-dev): bump @xmldom/xmldom from 0.8.11 to 0.8.12 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3523 -* chore(deps-dev): bump lodash from 4.17.23 to 4.18.1 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4097 -* feat(playground): enhance max_tokens handling and input sanitization by @HynoR in https://github.com/QuantumNous/new-api/pull/4106 +* chore(deps): bump axios from 1.15.0 to 1.15.2 in /web/classic by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4634 +* chore(deps-dev): bump ip-address from 10.1.0 to 10.2.0 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4811 +* 修复渠道列表显示不全问题 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4829 -### New Contributors -* @D26FORWARD made their first contribution in https://github.com/QuantumNous/new-api/pull/4087 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.1...v0.12.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.5...v1.0.0-rc.6 **Download Resources** --- -## v0.12.1 +## v1.0.0-rc.5 - + -This release adds Seedance 2.0 video support and broadens media compatibility across providers. It also makes failures easier to understand with clearer Seedance and performance-related error messages. +### Highlights +The default dashboard has been refreshed with built-in model performance metrics and a clearer health view. This release also adds DeepChat deeplink support and fixes several default UI, wallet, playground, and ratio-display regressions. ### New Features -- Added Seedance 2.0 video generation API support with duration control in seconds, clearer failure reporting, and better prompt handling for single-text requests (#4042). -- Added HEIC/HEIF image support, including Gemini channel compatibility and more reliable handling of HEIF images (#4049). -- Added basic inline file support for Claude relay so compatible requests can include media directly (#3505). +- Dashboard overview has been redesigned and now includes model performance metrics with a clearer performance health panel. +- DeepChat deeplinks are now supported, making it easier to open supported chat links directly in DeepChat. (#4668) + +### Bug Fixes +- Top-up gateway availability now uses the correct top-up configuration, so wallet payment options are shown accurately. (#4599) +- Group ratio displays now honor configured group-to-group ratio settings. (#4772) +- Default UI dropdown menu items now trigger their selection handlers reliably. (#4787) +- The playground now handles legacy classic-format messages without failing. (#4650) +- Default frontend pages now avoid several v1 UI regressions, including stray empty description areas and layout issues. (#4802) ### Improvements -- Improved performance-related error messages to make request failures easier to understand. +- The default web UI and charts now follow shared theme presets for more consistent colors, controls, and corner radii. +- Docker images now include project and third-party license notices for easier compliance review. (#4739) --- ### What's Changed -* fix: add basic inline file support for Claude relay by @seefs001 in https://github.com/QuantumNous/new-api/pull/3505 -* 新增seedance2.0视频接口支持 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4042 -* feat: add HEIC/HEIF image format support for Gemini channel by @RedwindA in https://github.com/QuantumNous/new-api/pull/4049 +* feat: add DeepChat deeplink support by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4668 +* fix: exclude THIRD-PARTY-LICENSES.md from .dockerignore for Docker build by @yeying-xingchen in https://github.com/QuantumNous/new-api/pull/4739 +* fix(wallet): read topup gateway flags from topupInfo instead of status by @ImogeneOctaviap794 in https://github.com/QuantumNous/new-api/pull/4599 +* fix(web/default): use getUserGroups for ratio display to respect GroupGroupRatio by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4772 +* fix(default): support DropdownMenuItem onSelect by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4787 +* fix(web/default): guard playground messages against legacy classic shape by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4650 +* fix: defaut ui triage by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4802 +### New Contributors +* @yeying-xingchen made their first contribution in https://github.com/QuantumNous/new-api/pull/4739 +* @lihan3238 made their first contribution in https://github.com/QuantumNous/new-api/pull/4787 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.0...v0.12.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.4...v1.0.0-rc.5 **Download Resources** --- -## v0.12.0 +## v1.0.0-rc.4 - + -v0.12.0 adds Wan 2.7 image generation support and streamlines channel setup in the admin UI. It also improves billing accuracy and fixes several model and dashboard issues. +### Highlights +OpenAI image editing is more reliable: image edit requests now preserve reference image data and related metadata, preventing edits from losing their intended context (#4646). This release also adds model performance badges and fixes several billing and dropdown UI issues. + +### New Features +- Added model performance badges to model lists so users can compare available models at a glance. + +### Bug Fixes +- Fixed OpenAI image edit requests so reference images and related edit metadata are preserved when forwarded (#4646). +- Fixed billing settings forms so top-up and billing configuration inputs behave more reliably. +- Fixed dropdown and select controls so options render and select correctly after the UI component update (#4655). + +### Breaking Changes +- Integrations should now read the top-up link from the top-up information API instead of the status API. + +### Gallery +| Model availability rankings | Refreshed pricing and settings UI | +| --- | --- | +|| | + +--- + +### What's Changed +* fix: preserve OpenAI image edit reference fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4646 +* fix: migrate select to Base UI items API by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4655 + + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.3...v1.0.0-rc.4 -### New Features -- Added support for Wan 2.7 image generation, including control over how many images are generated per request (#3526). +**Download Resources** -### Bug Fixes -- Fixed image-generation billing and usage statistics so request counts and costs are reported more accurately without double-counting (#3512). -- Fixed a UI issue that caused the consumption distribution chart to make the page scrollbar flicker on hover (#3474). -- Fixed xAI Grok-3-mini compatibility when no completion token limit is set, reducing failed requests. + -### Improvements -- Made channel setup faster and smoother by letting you create a channel from a copied token, remembering advanced settings in the edit dialog, and improving clipboard handling. + --- -### What's Changed -* fix(dashboard): 修复消耗分布图表悬浮时滚动条闪烁 by @wans10 in https://github.com/QuantumNous/new-api/pull/3474 -* docs(zh-TW): fix missing content and add partner logo by @DaZuiZui in https://github.com/QuantumNous/new-api/pull/3462 -* chore(deps-dev): bump picomatch from 4.0.3 to 4.0.4 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3450 -* fix: prevent double-counting of image count n in billing by @imlhb in https://github.com/QuantumNous/new-api/pull/3512 -* 支持wan2.7生图-wan2.7-image by @feitianbubu in https://github.com/QuantumNous/new-api/pull/3526 +## v1.0.0-rc.3 -### New Contributors -* @DaZuiZui made their first contribution in https://github.com/QuantumNous/new-api/pull/3462 -* @imlhb made their first contribution in https://github.com/QuantumNous/new-api/pull/3512 + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9...v0.12.0 +### Highlights +v1.0.0-rc.3 adds a new model rankings experience with model availability and performance visibility, making it easier to compare reliability before choosing routes or providers. This release also refreshes key default UI areas, including pricing/settings pages and table controls. + +### New Features +- Added a model rankings dashboard with real availability and performance data so users can compare model reliability at a glance (#4633). + +### Improvements +- Refreshed the default web UI with Base UI components, updated theme presets, and cleaner table toolbar interactions (#4633). +- Reorganized the system settings pricing interface to make pricing configuration easier to scan and manage. + +### Bug Fixes +- Fixed channel table sorting so server-side sorting now works correctly (#4600). +- Corrected subscription payment information display in the default UI. + +### Gallery +| Model availability rankings | Refreshed pricing and settings UI | +| --- | --- | +|| | + +--- + +### What's Changed +* feat(web/default): unified UI overhaul — Base UI migration, theme presets, rankings dashboard, and table toolbar refactor by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4633 +* feat: collect model performance metrics by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4635 +* fix: enable channel table server-side sorting by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4600 + + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.2...v1.0.0-rc.3 **Download Resources** --- -## v0.12.0-alpha.2 - - - -### Release Highlights -This release includes minor improvements to the `EditChannelModal` component to enhance clipboard handling reliability. - -### Bug Fixes -- **EditChannelModal:** Enhance clipboard handling with error checks (`670abee`) +## v1.0.0-rc.2 ---- + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.0-alpha.1...v0.12.0-alpha.2 +### Highlights +v1.0.0-rc.2 officially opens up switching between the new and classic frontend, making it easier to test the redesigned UI, compare workflows, and fall back instantly when needed. This RC also refreshes key console pages and fixes several web issues affecting email binding, tiered pricing, API key grouping, and custom Vertex base URLs. + +### New Features +- Added a built-in switch between the new and classic frontend, so teams can adopt the redesigned UI gradually without losing access to the previous workflow. + +### Improvements +- Refreshed the web console with redesigned pricing pages, more consistent dashboard and log controls, better table and analytics filtering, smoother navigation, and improved mobile responsiveness. + +### Bug Fixes +- Fixed email binding in the redesigned frontend so the action completes correctly (#4551). +- Fixed tiered pricing number input behavior so editing values is more reliable (#4536). +- Fixed tiered pricing display issues that could cause values and labels to appear incorrectly (#4530). +- Fixed API key grouping in the default web theme so keys appear under the expected groups (#4548). +- Fixed custom Vertex base URLs so requests route correctly when a gateway prefix is configured (#4200). + +### Gallery + +| Refreshed pricing page | Dashboard and analytics controls | +| --- | --- | +| Refreshed pricing page | Dashboard and analytics controls | + +### What's Changed +* fix: 修复默认主题 API 密钥分组行为 by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4548 +* bug fix: 新版前端email绑定错误 by @SHLE1 in https://github.com/QuantumNous/new-api/pull/4551 +* fix: improve tiered pricing number input editing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4536 +* fix(vertex): honor custom base_url as gateway prefix by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4200 +* fix(web): 修复阶梯计费 Base64 解码失败与标签不匹配导致的显示错误 by @wans10 in https://github.com/QuantumNous/new-api/pull/4530 + +### New Contributors +* @SHLE1 made their first contribution in https://github.com/QuantumNous/new-api/pull/4551 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.1...v1.0.0-rc.2 **Download Resources** --- -## v0.12.0-alpha.1 +## v1.0.0-rc.1 - + -### Highlights -This release introduces a new clipboard magic string feature for quick channel creation and includes important security and UI improvements. +v1.0.0-rc.1 is the first release candidate for the upcoming 1.0 release, and its main focus is the brand-new v1 frontend rebuilt from the ground up for a cleaner, faster, and more capable admin experience. + +This RC refreshes the interface across navigation, configuration, analytics, and logs, making day-to-day management much easier as the project moves toward the final v1 launch. + + + +### New Features +- Introduced the rebuilt v1 frontend with modern navigation and layouts, a visual channel editor for parameter overrides, and easier access to system settings and theme switching (#4265). + +### Improvements +- Upgraded dashboards and charts with clearer model analytics, better data sorting, and more informative tooltips for easier usage analysis. +- Improved usage logs with log type indicators, usernames and avatars, and cleaner tables that make activity easier to scan. +- Polished shared layouts, tables, and form styling across the default frontend for a cleaner and more consistent experience. + +### Bug Fixes +- Fixed themes loaded from the database so the selected frontend theme now applies correctly at runtime (#4518). +- Fixed forwarded requests so empty reasoning fields are preserved instead of being silently dropped (#4520). +- Fixed required-field markers so forms more consistently show which inputs are mandatory (#4533). + +--- + +### What's Changed +* 🚀 feat: launch v1.0 — next-generation frontend built from the ground up by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4265 +* fix: 修复 Message.ReasoningContent/Reasoning 空思考内容在请求转发时被静默丢弃 by @heimoshuiyu in https://github.com/QuantumNous/new-api/pull/4520 +* fix: sync theme to runtime when loaded from database by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4518 + +### New Contributors +* @Micah-Zheng made their first contribution in https://github.com/QuantumNous/new-api/pull/4518 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-alpha.1...v1.0.0-rc.1 -### New Features -* Add clipboard magic string for quick channel creation from token copy +**Download Resources** -### Bug Fixes -* 修复消耗分布图表悬浮时滚动条闪烁 (Fix dashboard scrollbar flickering) (#3474) -* Fix xAI MaxTokens mapping for grok-3-mini model + -### Improvements -* Security improvements -* Enhance footer layout and styling -* Update Traditional Chinese README with missing content and partner logo (#3462) -* Refactor account binding endpoints to use POST and normalize reset responses + --- -### What's Changed -* fix(dashboard): 修复消耗分布图表悬浮时滚动条闪烁 by @wans10 in https://github.com/QuantumNous/new-api/pull/3474 -* docs(zh-TW): fix missing content and add partner logo by @DaZuiZui in https://github.com/QuantumNous/new-api/pull/3462 +## v1.0.0-alpha.1 - License boundary release -### New Contributors -* @DaZuiZui made their first contribution in https://github.com/QuantumNous/new-api/pull/3462 + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9...v0.12.0-alpha.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.2...v1.0.0-alpha.1 **Download Resources** --- -## v0.11.9 - - +## v0.13.2 -### Release Notes for v0.11.9 + -#### New Features -* Add slide-in animations and update translations for new UI elements -* Prevent metadata from overriding model fields (#3461) -* Record stream interruption reasons via StreamStatus -* Expose i18n instance to the global window object for easier access +### New Features +- Model sync now detects upstream models more accurately, refreshes pricing automatically from provider pricing endpoints, shows removed upstream models in the fetch-models dialog, and keeps pricing available during sync delays (#4452). +- User records now include account creation and last login timestamps for easier auditing and administration (#4450). +- Added configurable model matching for Ali native Messages APIs, making it easier to route requests to compatible upstream models (#4468). -#### Bug Fixes -* Restore pre-3400 OpenRouter billing semantics (#3438) -* Restore doubao coding plan deprecation and regex ignored models lost during conflict resolution -* Preserve cache usage in openai-to-claude response conversion +### Bug Fixes +- Tool calls now accept raw JSON argument payloads, improving compatibility with providers that return tool arguments as JSON objects (#4469). +- Configuration updates now handle JSON object fields more reliably, preventing some settings from being saved incorrectly. -#### Improvements -* Expose skip-retry option and show it in the rules list (#3440) -* Harden Docker and release CI workflows to improve security +### Improvements +- Retry messages now clearly explain when a channel was skipped because affinity is disabled (#4453). --- ### What's Changed -* fix: restore pre-3400 OpenRouter billing semantics by @seefs001 in https://github.com/QuantumNous/new-api/pull/3438 -* refactor: expose skip-retry option and show it in rules list by @seefs001 in https://github.com/QuantumNous/new-api/pull/3440 -* feat: prevent metadata from overriding model fields by @feitianbubu in https://github.com/QuantumNous/new-api/pull/3461 -* chore(deps): bump golang.org/x/image from 0.23.0 to 0.38.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3507 +* fix(channel): load model mapping during upstream model checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4437 +* feat: sync upstream pricing from pricing endpoint by @seefs001 in https://github.com/QuantumNous/new-api/pull/4452 +* fix: clarify affinity disabled channel retry message by @seefs001 in https://github.com/QuantumNous/new-api/pull/4453 +* feat: configure native messages model matching for ali by @seefs001 in https://github.com/QuantumNous/new-api/pull/4468 +* fix: support raw JSON response tool arguments by @seefs001 in https://github.com/QuantumNous/new-api/pull/4469 +* feat: show removed upstream models in fetch models modal by @seefs001 in https://github.com/QuantumNous/new-api/pull/4470 +* 增加用户创建时间和最后登录时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4450 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9-alpha.1...v0.11.9 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1-patch.1...v0.13.2 **Download Resources** diff --git a/content/docs/en/guide/wiki/meta.json b/content/docs/en/guide/wiki/meta.json index 4384eec..8ae4465 100644 --- a/content/docs/en/guide/wiki/meta.json +++ b/content/docs/en/guide/wiki/meta.json @@ -1,6 +1,6 @@ { "title": "Wiki", - "description": "New API project documentation and basics", + "description": "LFAPI project documentation and basics", "icon": "BookOpen", "pages": ["basic-concepts", "project-records"] } diff --git a/content/docs/en/guide/wiki/project-records/changelog.mdx b/content/docs/en/guide/wiki/project-records/changelog.mdx index 71200b3..6f354eb 100644 --- a/content/docs/en/guide/wiki/project-records/changelog.mdx +++ b/content/docs/en/guide/wiki/project-records/changelog.mdx @@ -1441,7 +1441,7 @@ feat: Sora task optimization ### Google Analytics Setup Documentation -https://docs.newapi.pro/wiki/analytics-setup/ +https://ai.liangfeng.net.cn/docs/wiki/analytics-setup/ ### New Contributors diff --git a/content/docs/en/index.mdx b/content/docs/en/index.mdx index 365ee1e..c1c54fe 100644 --- a/content/docs/en/index.mdx +++ b/content/docs/en/index.mdx @@ -3,6 +3,8 @@ title: Quick Start description: Choose the deployment method that best suits your needs --- +> LFAPI is derived from NewAPI. API paths, parameters, and compatibility protocols remain unchanged. + import { Server, Network, @@ -28,7 +30,7 @@ Choose the appropriate deployment method based on your environment and technical } title="Docker Single Container Deployment" - description="Quickly deploy New API using a Docker image, suitable for personal use or small-scale applications." + description="Quickly deploy LFAPI using a Docker image, suitable for personal use or small-scale applications." href="/en/docs/installation/deployment-methods/docker-installation" /> } title="AI Applications" - description="Explore various AI application examples developed based on New API." + description="Explore various AI application examples developed based on LFAPI." href="/en/docs/apps" /> - New API supports reading environment variables from `.env` files. Please refer to the `.env.example` + LFAPI supports reading environment variables from `.env` files. Please refer to the `.env.example` file and rename it to `.env` when using it. @@ -45,7 +45,7 @@ This document provides all environment variables supported by New API and their | `BATCH_UPDATE_ENABLED` | Enable database batch update aggregation | `false` | `BATCH_UPDATE_ENABLED=true` | | `BATCH_UPDATE_INTERVAL` | Batch update aggregation interval (seconds) | `5` | `BATCH_UPDATE_INTERVAL=10` | -`REDIS_CONN_STRING` must point to one Redis-compatible endpoint. New API does not natively parse Redis Cluster or Sentinel node lists. For Redis high availability, use a managed service or proxy that exposes one compatible endpoint. +`REDIS_CONN_STRING` must point to one Redis-compatible endpoint. LFAPI does not natively parse Redis Cluster or Sentinel node lists. For Redis high availability, use a managed service or proxy that exposes one compatible endpoint. The database is authoritative for dashboard Sessions. Redis caches each Session for the smaller of its remaining lifetime and the effective `SYNC_FREQUENCY`, and reads do not renew that TTL. With independent Redis per node, Session revocation and version changes therefore converge after a database fallback within this window. Delayed active-cache fills keep only the unused portion of their original database-observation window. diff --git a/content/docs/en/installation/config-maintenance/system-update.mdx b/content/docs/en/installation/config-maintenance/system-update.mdx index 1568270..7f9cf5d 100644 --- a/content/docs/en/installation/config-maintenance/system-update.mdx +++ b/content/docs/en/installation/config-maintenance/system-update.mdx @@ -2,7 +2,7 @@ title: System Update Guide --- -This document provides methods and best practices for updating the New API system to ensure a smooth upgrade to the latest version. +This document provides methods and best practices for updating the LFAPI system to ensure a smooth upgrade to the latest version. ## Pre-update Preparations @@ -17,7 +17,7 @@ Before updating the system, it is recommended to perform the following preparati ### Method One: Single Container Deployment Update -If you have deployed New API using a single Docker container, you can update by following these steps: +If you have deployed LFAPI using a single Docker container, you can update by following these steps: ```shell # 拉取最新镜像 @@ -68,7 +68,7 @@ docker compose pull && docker compose down && docker compose up -d If you are deploying using the 1Panel panel, you can update by following these steps: 1. Log in to the 1Panel panel, go to **App Store** -> **Upgradable Page** -2. Find the New API application and click the **Upgrade** button +2. Find the LFAPI application and click the **Upgrade** button 3. Select the **Target version to upgrade to** 4. Click the **Confirm** button, and the system will automatically pull the latest image to upgrade the application @@ -77,13 +77,13 @@ If you are deploying using the 1Panel panel, you can update by following these s If you are deploying using the Baota Panel, you can update by following these steps: 1. Log in to the Baota Panel, go to **Docker Management** -> **Container List** -2. Find the New API container, click **More** -> **Recreate** +2. Find the LFAPI container, click **More** -> **Recreate** 3. Check the **Pull latest image** option, ensuring other configurations remain unchanged 4. Click **Submit**, and the system will automatically pull the latest image and recreate the container ## Update Method from Source Code Compilation -If you have deployed New API by compiling from source code, the update steps are as follows: +If you have deployed LFAPI by compiling from source code, the update steps are as follows: ```shell # 进入项目目录 diff --git a/content/docs/en/installation/deployment-methods/1panel-installation.mdx b/content/docs/en/installation/deployment-methods/1panel-installation.mdx index 1b930f9..00298e7 100644 --- a/content/docs/en/installation/deployment-methods/1panel-installation.mdx +++ b/content/docs/en/installation/deployment-methods/1panel-installation.mdx @@ -2,7 +2,7 @@ title: 1Panel Panel Deployment --- -This document provides a graphical tutorial for deploying New API using the 1Panel panel. +This document provides a graphical tutorial for deploying LFAPI using the 1Panel panel. ## Prerequisites @@ -22,12 +22,12 @@ This document provides a graphical tutorial for deploying New API using the 1Pan ![1panel](/assets/1panel/1panel.jpg) -## Step 2: Install New API +## Step 2: Install LFAPI ### Search for Applications - Go to the application list in the App Store, find the New API application under the [AI] category, and install it. + Go to the application list in the App Store, find the LFAPI application under the [AI] category, and install it. ![1panel-newapi](/assets/1panel/1panel-newapi.jpg) @@ -35,12 +35,12 @@ This document provides a graphical tutorial for deploying New API using the 1Pan ### Configure Parameters - Configure New API application parameters on the installation page: + Configure LFAPI application parameters on the installation page: -- **Name**: The name of the New API application to be created -- **Version**: Select the version of New API -- **Port**: The service port for the New API application +- **Name**: The name of the LFAPI application to be created +- **Version**: Select the version of LFAPI +- **Port**: The service port for the LFAPI application - **Timezone**: Enter the timezone where the server is located (default Asia/Shanghai) - **Advanced Settings**: Be sure to check external port access @@ -49,7 +49,7 @@ This document provides a graphical tutorial for deploying New API using the 1Pan ### Confirm Installation - Click Confirm to start the installation. The page will automatically redirect to the installed applications list. Wait for the New API application status to change to Started. + Click Confirm to start the installation. The page will automatically redirect to the installed applications list. Wait for the LFAPI application status to change to Started. ![newapi-start](/assets/1panel/newapi-start.jpg) @@ -67,7 +67,7 @@ After installation, it is recommended to configure the following key environment ### Configuration Method -1. In the 1Panel application list, click the **Parameters** button for the New API application +1. In the 1Panel application list, click the **Parameters** button for the LFAPI application 2. Add in the environment variables section: - `SESSION_SECRET=your_random_secret_key` - `CRYPTO_SECRET=your_crypto_secret_key` (optional) @@ -84,10 +84,10 @@ openssl rand -hex 16 head -c 16 /dev/urandom | xxd -p ``` -## Step 4: Access New API +## Step 4: Access LFAPI - - On the `Installed` page, click `Jump` to enter the New API WebUI page + - On the `Installed` page, click `Jump` to enter the LFAPI WebUI page - Before use, it is recommended to set the `Default Access Address` on the `Panel Settings` page @@ -110,7 +110,7 @@ Ensure the `SESSION_SECRET` environment variable is set and not empty. ### How to update version 1. Log in to 1Panel panel, go to **App Store** → **Upgradable page** -2. Find the New API application, click the **Upgrade** button +2. Find the LFAPI application, click the **Upgrade** button 3. Select the target version, click **Confirm** ### How to persist data diff --git a/content/docs/en/installation/deployment-methods/bt-docker-installation.mdx b/content/docs/en/installation/deployment-methods/bt-docker-installation.mdx index 2b1bd0d..20f5be7 100644 --- a/content/docs/en/installation/deployment-methods/bt-docker-installation.mdx +++ b/content/docs/en/installation/deployment-methods/bt-docker-installation.mdx @@ -2,7 +2,7 @@ title: Deploying with Baota Panel --- -This document provides a graphical tutorial for deploying New API using the Baota Panel Docker feature. +This document provides a graphical tutorial for deploying LFAPI using the Baota Panel Docker feature. ## Prerequisites @@ -24,7 +24,7 @@ This document provides a graphical tutorial for deploying New API using the Baot 2. The first time you enter, you will be prompted to install the Docker service. Click **Install Now** 3. Follow the prompts to complete the Docker service installation -## Step 3: Install New API +## Step 3: Install LFAPI ### Method One: Using Baota App Store (Recommended) diff --git a/content/docs/en/installation/deployment-methods/cluster-deployment.mdx b/content/docs/en/installation/deployment-methods/cluster-deployment.mdx index 6d8989a..1379119 100644 --- a/content/docs/en/installation/deployment-methods/cluster-deployment.mdx +++ b/content/docs/en/installation/deployment-methods/cluster-deployment.mdx @@ -2,7 +2,7 @@ title: Cluster Deployment --- -This document provides detailed configuration steps and best practices for New API cluster deployment, helping you build a highly available, load-balanced distributed system. +This document provides detailed configuration steps and best practices for LFAPI cluster deployment, helping you build a highly available, load-balanced distributed system. ## Prerequisites @@ -14,7 +14,7 @@ This document provides detailed configuration steps and best practices for New A ## Cluster Architecture Overview -The New API cluster adopts a master-slave architecture design: +The LFAPI cluster adopts a master-slave architecture design: 1. **Master Node**: Responsible for handling all write operations and some read operations 2. **Slave Nodes**: Primarily responsible for handling read operations, improving overall system throughput @@ -185,7 +185,7 @@ Data synchronization between cluster nodes depends on the following environment ### Redis High Availability Configuration -New API connects through one Redis-compatible endpoint in `REDIS_CONN_STRING`; it does not natively parse Redis Cluster or Sentinel node lists. For Redis high availability, use a managed service or proxy that exposes one compatible endpoint: +LFAPI connects through one Redis-compatible endpoint in `REDIS_CONN_STRING`; it does not natively parse Redis Cluster or Sentinel node lists. For Redis high availability, use a managed service or proxy that exposes one compatible endpoint: ```yaml environment: diff --git a/content/docs/en/installation/deployment-methods/docker-compose-installation.mdx b/content/docs/en/installation/deployment-methods/docker-compose-installation.mdx index 69e59d6..1bc0cd8 100644 --- a/content/docs/en/installation/deployment-methods/docker-compose-installation.mdx +++ b/content/docs/en/installation/deployment-methods/docker-compose-installation.mdx @@ -2,7 +2,7 @@ title: Docker Compose Deployment --- -This document provides detailed steps for deploying New API using Docker Compose. +This document provides detailed steps for deploying LFAPI using Docker Compose. ## Prerequisites @@ -39,7 +39,7 @@ nano docker-compose.yml If you cannot access GitHub or clone the repository, you can manually create the configuration file: -1. Create a directory for New API deployment: +1. Create a directory for LFAPI deployment: ```shell mkdir new-api diff --git a/content/docs/en/installation/deployment-methods/docker-installation.mdx b/content/docs/en/installation/deployment-methods/docker-installation.mdx index 1dd5988..bb45e7e 100644 --- a/content/docs/en/installation/deployment-methods/docker-installation.mdx +++ b/content/docs/en/installation/deployment-methods/docker-installation.mdx @@ -2,7 +2,7 @@ title: Docker Deployment --- -This document provides detailed steps for deploying New API using Docker. +This document provides detailed steps for deploying LFAPI using Docker. We highly recommend using the [Docker Compose installation @@ -33,7 +33,7 @@ docker run --name new-api -d --restart always \ ``` - PostgreSQL is preferred for production. New API remains compatible with + PostgreSQL is preferred for production. LFAPI remains compatible with MySQL, while SQLite is intended for local evaluation and temporary tests. diff --git a/content/docs/en/installation/deployment-methods/local-development.mdx b/content/docs/en/installation/deployment-methods/local-development.mdx index 1cb8a5e..05f0130 100644 --- a/content/docs/en/installation/deployment-methods/local-development.mdx +++ b/content/docs/en/installation/deployment-methods/local-development.mdx @@ -2,7 +2,7 @@ title: Local Development and Deployment --- -This document provides detailed steps for setting up and developing the New API project in a local environment, suitable for developers who wish to contribute to the project or perform custom development. +This document provides detailed steps for setting up and developing the LFAPI project in a local environment, suitable for developers who wish to contribute to the project or perform custom development. ## Development Environment Requirements @@ -26,7 +26,7 @@ Before starting local development, please ensure that the following software is ## Clone Project -First, clone the New API repository from GitHub to your local machine: +First, clone the LFAPI repository from GitHub to your local machine: ```bash git clone https://github.com/Calcium-Ion/new-api.git @@ -43,7 +43,7 @@ go mod download ### Configure Development Environment -New API supports configuring environment variables via a `.env` file. Create a `.env` file (you can copy from `.env.example`): +LFAPI supports configuring environment variables via a `.env` file. Create a `.env` file (you can copy from `.env.example`): ```bash cp .env.example .env @@ -78,7 +78,7 @@ The service runs on `http://localhost:3000` by default. ## Frontend Development Setup -The frontend code for New API is located in the `web` directory and is developed using React and the [semi design component library](https://semi.design/zh-CN). +The frontend code for LFAPI is located in the `web` directory and is developed using React and the [semi design component library](https://semi.design/zh-CN). ### Install Bun (Recommended) @@ -162,7 +162,7 @@ The built files will be generated in `web/dist`, and the backend service will au ## Project Structure -The directory structure of the New API project: +The directory structure of the LFAPI project: ``` new-api/ # Project root directory diff --git a/content/docs/en/installation/index.mdx b/content/docs/en/installation/index.mdx index 723d6b7..4fdecee 100644 --- a/content/docs/en/installation/index.mdx +++ b/content/docs/en/installation/index.mdx @@ -17,7 +17,7 @@ import { ## Overview -New API supports multiple deployment methods. You can choose the most suitable solution based on your technical background and usage scenario. +LFAPI supports multiple deployment methods. You can choose the most suitable solution based on your technical background and usage scenario. ## Deployment Methods @@ -78,7 +78,7 @@ New API supports multiple deployment methods. You can choose the most suitable s } title="System Update" - description="Learn how to safely update New API to the latest version." + description="Learn how to safely update LFAPI to the latest version." href="/en/docs/installation/config-maintenance/system-update" /> diff --git a/content/docs/en/legal/acceptable-use.mdx b/content/docs/en/legal/acceptable-use.mdx index ed9bc12..6c6d0c1 100644 --- a/content/docs/en/legal/acceptable-use.mdx +++ b/content/docs/en/legal/acceptable-use.mdx @@ -1,17 +1,17 @@ --- title: Compliance and Acceptable Use Policy -description: Compliance Statement and Acceptable Use Policy for the New API Project +description: Compliance Statement and Acceptable Use Policy for the LFAPI Project --- import { Callout } from 'fumadocs-ui/components/callout'; - Before using New API, please read and understand this policy carefully. + Before using LFAPI, please read and understand this policy carefully. ## Project Positioning -New API is an AI API gateway and usage management system designed for legally authorized scenarios, primarily intended for self-use, internal team use, and enterprise private deployment. Its core capabilities include: +LFAPI is an AI API gateway and usage management system designed for legally authorized scenarios, primarily intended for self-use, internal team use, and enterprise private deployment. Its core capabilities include: - Unified authentication and multi-model routing within the enterprise - Usage statistics and access control within the organization @@ -20,7 +20,7 @@ New API is an AI API gateway and usage management system designed for legally au ## Legal Authorization Requirements -When using New API, users must meet the following requirements: +When using LFAPI, users must meet the following requirements: - Legally obtain authorization for upstream API Keys, model services, payment services, and other third-party services - Comply with upstream terms of service and platform rules @@ -74,5 +74,5 @@ Community discussions for this project should revolve around legal authorization ## Maintainer Stance - New API is provided "as is" without warranties of any kind. Maintainers only provide technical discussions and community support for legally compliant use cases and may process issues, PRs, discussions, and tutorial links that do not meet project compliance requirements according to community rules. Developers and maintainers are not liable for any damages or legal issues arising from the use of this software. + LFAPI is provided "as is" without warranties of any kind. Maintainers only provide technical discussions and community support for legally compliant use cases and may process issues, PRs, discussions, and tutorial links that do not meet project compliance requirements according to community rules. Developers and maintainers are not liable for any damages or legal issues arising from the use of this software. \ No newline at end of file diff --git a/content/docs/en/skills/index.mdx b/content/docs/en/skills/index.mdx index 141cdf7..3aa077a 100644 --- a/content/docs/en/skills/index.mdx +++ b/content/docs/en/skills/index.mdx @@ -1,6 +1,6 @@ --- title: Skills -description: Official New API Skill plugins for Claude Code, Codex, and OpenClaw. Manage models, tokens, groups, balance, and ask New API usage questions directly inside your AI coding workflow. +description: Official LFAPI Skill plugins for Claude Code, Codex, and OpenClaw. Manage models, tokens, groups, balance, and ask LFAPI usage questions directly inside your AI coding workflow. --- import { Card, Cards } from 'fumadocs-ui/components/card'; @@ -8,23 +8,23 @@ import { User, Shield } from 'lucide-react'; ## Overview -**Skills** are a lightweight extension protocol that allows AI editors (such as Claude Code, Codex, OpenClaw, Cursor, Windsurf, etc.) to interact with New API directly from within your coding environment — no browser or admin panel needed. +**Skills** are a lightweight extension protocol that allows AI editors (such as Claude Code, Codex, OpenClaw, Cursor, Windsurf, etc.) to interact with LFAPI directly from within your coding environment — no browser or admin panel needed. -New API Skills already work in Claude Code, Codex, OpenClaw, and other Skills-compatible tools for model queries, token management, balance checks, and New API usage questions. +LFAPI Skills already work in Claude Code, Codex, OpenClaw, and other Skills-compatible tools for model queries, token management, balance checks, and LFAPI usage questions. -New API currently offers the following Skills: +LFAPI currently offers the following Skills: } title="newapi" - description="User-level Skill — query models, manage tokens, view groups, check balance, and ask New API usage questions in Claude Code, Codex, and OpenClaw." + description="User-level Skill — query models, manage tokens, view groups, check balance, and ask LFAPI usage questions in Claude Code, Codex, and OpenClaw." href="/en/docs/skills/newapi" /> } title="newapi-admin (Coming Soon)" - description="Admin-level Skill — channel management, user management, system configuration and more. For New API administrators." + description="Admin-level Skill — channel management, user management, system configuration and more. For LFAPI administrators." href="/en/docs/skills/newapi-admin" /> @@ -42,9 +42,9 @@ All Skills work with the following AI coding tools: | **Cline** | VS Code AI extension | Open-source AI coding agent | | **Codex CLI** | Terminal AI programming assistant | Official OpenAI CLI | -> Any tool that supports the Skills protocol can use New API Skills. +> Any tool that supports the Skills protocol can use LFAPI Skills. ## Learn More - GitHub Repository: [github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) -- New API Website: [www.newapi.ai](https://www.newapi.ai) +- LFAPI Website: [www.ai.liangfeng.net.cn/docs](https://www.ai.liangfeng.net.cn/docs) diff --git a/content/docs/en/skills/meta.json b/content/docs/en/skills/meta.json index 3136528..718663a 100644 --- a/content/docs/en/skills/meta.json +++ b/content/docs/en/skills/meta.json @@ -1,6 +1,6 @@ { "title": "Skills", - "description": "New API Skills for Claude Code, Codex, and OpenClaw with usage help", + "description": "LFAPI Skills for Claude Code, Codex, and OpenClaw with usage help", "icon": "Puzzle", "root": true, "pages": [ diff --git a/content/docs/en/skills/newapi-admin.mdx b/content/docs/en/skills/newapi-admin.mdx index 8b6566e..992eaf9 100644 --- a/content/docs/en/skills/newapi-admin.mdx +++ b/content/docs/en/skills/newapi-admin.mdx @@ -1,6 +1,6 @@ --- title: newapi-admin (Coming Soon) -description: newapi-admin is the official New API admin-level Skill plugin, enabling channel management, user management, system configuration, log queries and more directly from Claude Code, Cursor, Windsurf and other AI editors. Currently under development. +description: newapi-admin is the official LFAPI admin-level Skill plugin, enabling channel management, user management, system configuration, log queries and more directly from Claude Code, Cursor, Windsurf and other AI editors. Currently under development. --- import { Callout } from 'fumadocs-ui/components/callout'; @@ -11,7 +11,7 @@ import { Callout } from 'fumadocs-ui/components/callout'; ## Introduction -**newapi-admin** is a Skill plugin designed for New API administrators. Unlike the user-level [newapi](/en/docs/skills/newapi) Skill, newapi-admin focuses on **admin operations**, allowing site administrators to perform daily management tasks from within their AI editor using natural language commands — no need to log into the admin dashboard. +**newapi-admin** is a Skill plugin designed for LFAPI administrators. Unlike the user-level [newapi](/en/docs/skills/newapi) Skill, newapi-admin focuses on **admin operations**, allowing site administrators to perform daily management tasks from within their AI editor using natural language commands — no need to log into the admin dashboard. ## Planned Features diff --git a/content/docs/en/skills/newapi.mdx b/content/docs/en/skills/newapi.mdx index 2343650..6c0f5f3 100644 --- a/content/docs/en/skills/newapi.mdx +++ b/content/docs/en/skills/newapi.mdx @@ -1,27 +1,27 @@ --- title: newapi -description: newapi is the official New API user-level Skill for Claude Code, Codex, and OpenClaw. Query models, manage tokens, view groups, check balance, and ask New API usage questions directly inside your AI coding workflow. +description: newapi is the official LFAPI user-level Skill for Claude Code, Codex, and OpenClaw. Query models, manage tokens, view groups, check balance, and ask LFAPI usage questions directly inside your AI coding workflow. --- import { Callout } from 'fumadocs-ui/components/callout'; import { Step, Steps } from 'fumadocs-ui/components/steps'; - **newapi-skills** is the official AI editor Skill plugin from New API. Skills are a lightweight extension protocol that enables AI coding assistants — such as Claude Code, Codex, OpenClaw, Cursor, Windsurf, and Cline — to **call New API endpoints directly from within the editor**, performing model queries, token management, balance checks, and answering New API deployment, configuration, and API usage questions without ever leaving your coding environment. + **newapi-skills** is the official AI editor Skill plugin from LFAPI. Skills are a lightweight extension protocol that enables AI coding assistants — such as Claude Code, Codex, OpenClaw, Cursor, Windsurf, and Cline — to **call LFAPI endpoints directly from within the editor**, performing model queries, token management, balance checks, and answering LFAPI deployment, configuration, and API usage questions without ever leaving your coding environment. - GitHub Repository: [github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) - It now also works inside OpenClaw, so you can run `/newapi` commands for models, tokens, groups, and balance, and ask New API usage questions without leaving your agent workflow. + It now also works inside OpenClaw, so you can run `/newapi` commands for models, tokens, groups, and balance, and ask LFAPI usage questions without leaving your agent workflow. ## Why Use Skills -During everyday AI development, developers frequently switch between their editor and the New API management dashboard — checking available models, creating API tokens, inspecting balance, adjusting group quotas. These context switches disrupt coding flow. +During everyday AI development, developers frequently switch between their editor and the LFAPI management dashboard — checking available models, creating API tokens, inspecting balance, adjusting group quotas. These context switches disrupt coding flow. **What newapi-skills solves:** - **Zero context-switching**: Issue natural language commands directly in Claude Code, Codex, OpenClaw, or other AI IDEs — no browser or admin panel needed -- **Built-in help**: Ask about New API deployment, configuration, groups, and API call formats directly from your coding workflow +- **Built-in help**: Ask about LFAPI deployment, configuration, groups, and API call formats directly from your coding workflow - **Security-first design**: Keys are never shown in plain text; token copy and injection use secure channels (`sk-` prefixed keys never appear in terminal output or logs) - **Instant setup**: A single `npx` command handles installation; runtime auto-detection (Bun / Node.js / Deno) - **Cross-editor compatibility**: Works with any AI editor or coding assistant that implements the Skills protocol @@ -43,13 +43,13 @@ newapi-skills works with the following AI coding tools: ## Commands Reference -Below is the complete list of commands provided by newapi-skills. These commands interact with the New API REST API to query and manage resources on your New API instance. +Below is the complete list of commands provided by newapi-skills. These commands interact with the LFAPI REST API to query and manage resources on your LFAPI instance. ### Query Commands | Command | Description | Use Case | |---------|-------------|----------| -| `/newapi models` | List available AI models | View all models configured on your New API instance (OpenAI, Claude, Gemini, etc.) | +| `/newapi models` | List available AI models | View all models configured on your LFAPI instance (OpenAI, Claude, Gemini, etc.) | | `/newapi groups` | List user groups | View your account's groups with quota and rate multiplier settings | | `/newapi balance` | Show account balance | Real-time query of current user's balance and usage | @@ -67,7 +67,7 @@ Below is the complete list of commands provided by newapi-skills. These commands | Command | Description | Use Case | |---------|-------------|----------| -| `/newapi help ` | Ask about New API | Get help on New API deployment, configuration, API call formats, and more | +| `/newapi help ` | Ask about LFAPI | Get help on LFAPI deployment, configuration, API call formats, and more | ## Installation & Configuration @@ -86,7 +86,7 @@ Below is the complete list of commands provided by newapi-skills. These commands ### Set Environment Variables - newapi-skills requires three environment variables to connect to your New API instance. Add them to your shell profile: + newapi-skills requires three environment variables to connect to your LFAPI instance. Add them to your shell profile: ```bash # ~/.bashrc or ~/.zshrc @@ -97,7 +97,7 @@ Below is the complete list of commands provided by newapi-skills. These commands | Variable | Description | Example | |----------|-------------|---------| - | `NEWAPI_BASE_URL` | New API service URL | `https://api.example.com` | + | `NEWAPI_BASE_URL` | LFAPI service URL | `https://api.example.com` | | `NEWAPI_ACCESS_TOKEN` | Admin or user access token | From "Personal Settings → Account → Security → System Access Token" | | `NEWAPI_USER_ID` | User ID | `1` (admin default is 1) | @@ -111,7 +111,7 @@ Below is the complete list of commands provided by newapi-skills. These commands - Type `/newapi models` to list available models - Type `/newapi balance` to check your current balance - Type `/newapi create-token my-app` to create a new token named `my-app` - - Type `/newapi help how do I configure groups and tokens?` to ask New API usage questions directly + - Type `/newapi help how do I configure groups and tokens?` to ask LFAPI usage questions directly - In OpenClaw, you can also run `/newapi models`, `/newapi balance`, and token commands directly in your agent workflow @@ -140,5 +140,5 @@ newapi-skills has multiple layers of security built in to protect your API keys: newapi-skills is under active development — commands and features may change with updates. Refer to the repository README for the latest information and changelog: - GitHub Repository: [github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) -- New API Website: [www.newapi.ai](https://www.newapi.ai) -- New API GitHub: [github.com/QuantumNous/new-api](https://github.com/QuantumNous/new-api) +- LFAPI Website: [www.ai.liangfeng.net.cn/docs](https://www.ai.liangfeng.net.cn/docs) +- LFAPI GitHub: [github.com/QuantumNous/new-api](https://github.com/QuantumNous/new-api) diff --git a/content/docs/en/support/community-interaction.mdx b/content/docs/en/support/community-interaction.mdx index 3b89f7d..f5f32ac 100644 --- a/content/docs/en/support/community-interaction.mdx +++ b/content/docs/en/support/community-interaction.mdx @@ -2,7 +2,7 @@ title: Community Interaction --- -Welcome to the New API open-source community! Here, you can exchange experiences and share ideas with other developers. +Welcome to the LFAPI open-source community! Here, you can exchange experiences and share ideas with other developers. ## 📜 Group Rules @@ -13,9 +13,9 @@ To maintain a positive community atmosphere, please adhere to the following rule 1. Group administrators and owners are not obligated to provide any technical support. If you have questions, please submit an [issue](/en/docs/support/feedback-issues) -2. Chat content should focus on the use, deployment, development, and feedback of New API's open-source project. Do not post information related to account trading, purchase guidance, or solicitations. +2. Chat content should focus on the use, deployment, development, and feedback of LFAPI's open-source project. Do not post information related to account trading, purchase guidance, or solicitations. 3. This group is solely for open-source community communication. Please obtain project information through official repositories, documentation, and community channels. -4. New API adopts the GNU AGPLv3 open-source license. It can be used for free as long as the license is complied with. For details, please refer to [Project Introduction](/en/docs/guide/wiki/basic-concepts/project-introduction) +4. LFAPI adopts the GNU AGPLv3 open-source license. It can be used for free as long as the license is complied with. For details, please refer to [Project Introduction](/en/docs/guide/wiki/basic-concepts/project-introduction) 5. When using this project, you should comply with relevant laws and regulations, upstream terms of service, platform rules, and content security requirements. 6. Community discussions should revolve around legal authorization, compliant deployment, and legitimate engineering issues. Related messages and group member management will be handled according to community rules. diff --git a/content/docs/en/support/faq.mdx b/content/docs/en/support/faq.mdx index 66c5fce..0d32539 100644 --- a/content/docs/en/support/faq.mdx +++ b/content/docs/en/support/faq.mdx @@ -20,7 +20,7 @@ import { Accordions, Accordion } from 'fumadocs-ui/components/accordion'; **Notes:** - In non-streaming mode, the official API returns the total tokens consumed, but the consumption ratios for prompt and completion are different. - - The default ratio of New API is consistent with the official ratio and has been adjusted. + - The default ratio of LFAPI is consistent with the official ratio and has been adjusted. diff --git a/content/docs/en/support/feedback-issues.mdx b/content/docs/en/support/feedback-issues.mdx index 45a9dbc..26fe5eb 100644 --- a/content/docs/en/support/feedback-issues.mdx +++ b/content/docs/en/support/feedback-issues.mdx @@ -6,7 +6,7 @@ Your feedback is highly valued and crucial for project improvement. If you encou ## 📝 How to Submit an Issue -Please visit our GitHub Issues page: [New API Issues](https://github.com/Calcium-Ion/new-api/issues) +Please visit our GitHub Issues page: [LFAPI Issues](https://github.com/Calcium-Ion/new-api/issues) Before submitting a new issue, we recommend that you: diff --git a/content/docs/ja/api/index.mdx b/content/docs/ja/api/index.mdx index a6e6f92..cac98b8 100644 --- a/content/docs/ja/api/index.mdx +++ b/content/docs/ja/api/index.mdx @@ -1,6 +1,6 @@ --- title: APIリファレンス -description: New API の完全なインターフェースドキュメント +description: LFAPI の完全なインターフェースドキュメント --- import { Card, Cards } from 'fumadocs-ui/components/card'; @@ -37,10 +37,10 @@ import { ## 概要 -New API は完全なRESTful APIインターフェースを提供し、**AIモデルインターフェース**と**管理インターフェース**の2つの主要なカテゴリに分けられます。これらのインターフェースを通じて、AI機能の呼び出しとシステム管理機能を実現できます。 +LFAPI は完全なRESTful APIインターフェースを提供し、**AIモデルインターフェース**と**管理インターフェース**の2つの主要なカテゴリに分けられます。これらのインターフェースを通じて、AI機能の呼び出しとシステム管理機能を実現できます。 - 以下にアクセスして [Apifox 操練場](https://apifox.newapi.ai/) APIインターフェースをオンラインでテストおよびデバッグするか、以下のAPIドキュメントを参照してください。 + 以下にアクセスして [Apifox 操練場](https://apifox.ai.liangfeng.net.cn/docs/) APIインターフェースをオンラインでテストおよびデバッグするか、以下のAPIドキュメントを参照してください。 ## AIモデルインターフェース diff --git a/content/docs/ja/api/meta.json b/content/docs/ja/api/meta.json index 98cf0e3..054d4e1 100644 --- a/content/docs/ja/api/meta.json +++ b/content/docs/ja/api/meta.json @@ -1,6 +1,6 @@ { "title": "APIリファレンス", - "description": "New API の完全なインターフェースドキュメント", + "description": "LFAPI の完全なインターフェースドキュメント", "icon": "Code", "root": true, "pages": ["index", "ai-model", "management"] diff --git a/content/docs/ja/apps/aionui.mdx b/content/docs/ja/apps/aionui.mdx index 43b4116..de6acb3 100644 --- a/content/docs/ja/apps/aionui.mdx +++ b/content/docs/ja/apps/aionui.mdx @@ -1,6 +1,6 @@ --- title: AionUi - 無料オープンソースのデスクトップオフィスエージェント -description: AionUi チュートリアル — 無料オープンソースのデスクトップオフィスエージェント。Gemini CLI、Claude Code、Codex など、さまざまなAIエージェントをサポート。New API と連携してマルチモデルワークフローを実現します。 +description: AionUi チュートリアル — 無料オープンソースのデスクトップオフィスエージェント。Gemini CLI、Claude Code、Codex など、さまざまなAIエージェントをサポート。LFAPI と連携してマルチモデルワークフローを実現します。 --- @@ -49,19 +49,19 @@ description: AionUi チュートリアル — 無料オープンソースのデ - **Feishu連携** - Feishuを介したアクセスとインタラクションをサポートします - **ローカルデータセキュリティ** - すべてのデータはローカルのSQLiteデータベースに保存され、サーバーデプロイメントに適しています -## NewAPI接続方法 +## LFAPI接続方法 ### パラメータ入力 -プロバイダータイプ:NewAPIがサポートするタイプ -APIキー:NewAPIで取得 -APIアドレス:NewAPIサイトアドレス(例:`https:///v1`) +プロバイダータイプ:LFAPIがサポートするタイプ +APIキー:LFAPIで取得 +APIアドレス:LFAPIサイトアドレス(例:`https:///v1`) -ご自身でデプロイしたNew API、またはサービスプロバイダーが合法的なアップストリーム認証とコンプライアンス義務を持つNew APIサービスを使用してください。出所の不明なAPIアドレスやキーを本番環境に接続しないでください。 +ご自身でデプロイしたLFAPI、またはサービスプロバイダーが合法的なアップストリーム認証とコンプライアンス義務を持つLFAPIサービスを使用してください。出所の不明なAPIアドレスやキーを本番環境に接続しないでください。 ### 設定手順 -1. **NewAPIでAPIキーをコピー** +1. **LFAPIでAPIキーをコピー** ![APIキーをコピー](/assets/aionui/copy_apikey.png) 2. **AionUi設定を開く** @@ -72,21 +72,21 @@ APIアドレス:NewAPIサイトアドレス(例:`https:///v1`) - - APIキー:NewAPIコンソールからコピーしたAPIキーを貼り付けます + - APIアドレス:LFAPIサイトアドレスを入力します(形式:`https:///v1`) + - APIキー:LFAPIコンソールからコピーしたAPIキーを貼り付けます 5. **モデルを追加** - ドロップダウンから追加したいモデルを選択します - - モデル名はNewAPIで設定されているモデル名と一致している必要があります + - モデル名はLFAPIで設定されているモデル名と一致している必要があります - 適切なリクエストプロトコルを選択します 6. **使用を開始** - チャットページに戻ります - - 設定済みのNewAPIモデルを選択して会話を開始します + - 設定済みのLFAPIモデルを選択して会話を開始します ## 関連リンク diff --git a/content/docs/ja/apps/aqbot.mdx b/content/docs/ja/apps/aqbot.mdx index 2beb6ef..0fa6742 100644 --- a/content/docs/ja/apps/aqbot.mdx +++ b/content/docs/ja/apps/aqbot.mdx @@ -1,10 +1,10 @@ --- title: AQBot - ローカル優先のデスクトップ AI ワークベンチ -description: AQBot ガイド — ローカル優先のデスクトップ AI ワークベンチを New API に接続します。aqbot:// によるワンクリック導入と、OpenAI / Claude / Gemini プロトコルの手動設定に対応します。 +description: AQBot ガイド — ローカル優先のデスクトップ AI ワークベンチを LFAPI に接続します。aqbot:// によるワンクリック導入と、OpenAI / Claude / Gemini プロトコルの手動設定に対応します。 --- - New API コンソールのシステム設定 -> チャット設定で、以下のショートカットオプションを追加できます。これにより、トークン管理ページから + LFAPI コンソールのシステム設定 -> チャット設定で、以下のショートカットオプションを追加できます。これにより、トークン管理ページから AQBot へワンクリックで入力できます: @@ -39,37 +39,37 @@ description: AQBot ガイド — ローカル優先のデスクトップ AI ワ - **Agent** — 対話内 Agent(設定済みプロバイダー API を使用)と ACP Agent ワークベンチ - **ローカルデータ** — アプリ状態は `~/.aqbot/`、ユーザーファイルは `~/Documents/aqbot/` -全機能は [AQBot 公式サイト](https://app.aqbot.top) を参照してください。このページでは New API との接続のみを扱います。 +全機能は [AQBot 公式サイト](https://app.aqbot.top) を参照してください。このページでは LFAPI との接続のみを扱います。 -## NewAPI 接続方法 +## LFAPI 接続方法 -自己ホストした New API を使うか、正規の上流認可とコンプライアンス義務を備えた New API サービスであることを確認してください。出所不明の API アドレスやキーを本番環境に接続しないでください。 +自己ホストした LFAPI を使うか、正規の上流認可とコンプライアンス義務を備えた LFAPI サービスであることを確認してください。出所不明の API アドレスやキーを本番環境に接続しないでください。 ### 方法一:ワンクリック導入(推奨) 1. AQBot デスクトップアプリをインストールし、一度は起動して `aqbot://` プロトコルを登録します -2. New API コンソールの「システム設定 → チャット設定」に上記 JSON を追加します +2. LFAPI コンソールの「システム設定 → チャット設定」に上記 JSON を追加します 3. 「トークン管理」を開き、対象トークンの操作から **AQBot** を選びます 4. ブラウザが AQBot を起動します。確認ダイアログでプロバイダー名、APIホスト、タイプ `openai`、キーのプレフィックスを確認します 5. 確認後、AQBot は **設定 → プロバイダー管理** を開きます。同じ APIホスト + タイプのプロバイダーがあれば再利用し、なければ新規作成します 6. そのプロバイダーを開き、**モデルを同期** をクリックしてから、対話画面でモデルを選んで使い始めます -`{address}` は New API のサイトルート(例:`https://your-newapi.example`)で、クエリ文字列は付けません。OpenAI タイプでは AQBot が自動で `/v1` を補完します。導入時にキー検証やモデル同期は行われません。 +`{address}` は LFAPI のサイトルート(例:`https://your-newapi.example`)で、クエリ文字列は付けません。OpenAI タイプでは AQBot が自動で `/v1` を補完します。導入時にキー検証やモデル同期は行われません。 ### 方法二:手動設定 -1. New API のトークン管理ページで API キーをコピーします +1. LFAPI のトークン管理ページで API キーをコピーします 2. AQBot で **設定 → プロバイダー管理 → プロバイダーを追加** を開きます 3. 次の項目を入力します: | 項目 | 入力内容 | | --- | --- | -| プロバイダー名 | 例:`New API` | +| プロバイダー名 | 例:`LFAPI` | | プロバイダータイプ | `OpenAI`(推奨) | -| APIホスト | New API のサイトアドレス。例:`https://your-newapi.example` | -| API キー | New API のトークン | +| APIホスト | LFAPI のサイトアドレス。例:`https://your-newapi.example` | +| API キー | LFAPI のトークン | -4. **モデルを同期** をクリックし、New API が公開しているモデルを取得します +4. **モデルを同期** をクリックし、LFAPI が公開しているモデルを取得します 5. 対話画面に戻り、同期したモデルを選択して使い始めます ![モデルを切り替え](/assets/aqbot/switch-model.png) @@ -82,7 +82,7 @@ description: AQBot ガイド — ローカル優先のデスクトップ AI ワ ### オプション:ネイティブプロトコル -New API が Claude / Gemini のネイティブ API も提供している場合は、プロバイダーを追加できます: +LFAPI が Claude / Gemini のネイティブ API も提供している場合は、プロバイダーを追加できます: | 用途 | プロバイダータイプ | APIホスト | | --- | --- | --- | @@ -95,7 +95,7 @@ New API が Claude / Gemini のネイティブ API も提供している場合 ## よくある質問 - **AQBot をクリックしてもアプリが開かない**:先にデスクトップアプリをインストールして起動してください。公式サイトや開発サーバーだけでは `aqbot://` は登録されません -- **導入は成功したが対話できない**:先に「モデルを同期」をクリックし、モデル ID が New API が公開している名前と一致することを確認してください +- **導入は成功したが対話できない**:先に「モデルを同期」をクリックし、モデル ID が LFAPI が公開している名前と一致することを確認してください - **macOS で「破損している」または「開発元を検証できない」と表示される**:[AQBot README](https://github.com/AQBot-Desktop/AQBot) と[公式クイックスタート](https://app.aqbot.top/ja/guide/getting-started) に従い、このアプリだけを許可してください。Gatekeeper 全体をオフにする必要はありません - **ワンクリックリンクに API キーが含まれる**:ログイン済みのトークンページでのみ生成し、実キーを含む URL を公開ページに載せないでください diff --git a/content/docs/ja/apps/astrbot.mdx b/content/docs/ja/apps/astrbot.mdx index c1a21b7..2800719 100644 --- a/content/docs/ja/apps/astrbot.mdx +++ b/content/docs/ja/apps/astrbot.mdx @@ -1,6 +1,6 @@ --- title: AstrBot - Agent チャットボット -description: AstrBot 設定チュートリアル — オープンソースの Agent チャットボットプラットフォームを New API に接続し、QQ、Feishu、DingTalk、WeChat Work などのインスタントメッセンジャーに AI 機能を提供します。 +description: AstrBot 設定チュートリアル — オープンソースの Agent チャットボットプラットフォームを LFAPI に接続し、QQ、Feishu、DingTalk、WeChat Work などのインスタントメッセンジャーに AI 機能を提供します。 --- @@ -11,15 +11,15 @@ description: AstrBot 設定チュートリアル — オープンソースの Ag - 公式ドキュメント:[https://docs.astrbot.app](https://docs.astrbot.app) - プロジェクトホームページ:[https://github.com/astrbotdevs/astrbot](https://github.com/astrbotdevs/astrbot) -## NewAPI 接続方法 +## LFAPI 接続方法 -AstrBot は、モデルプロバイダーとして NewAPI への接続をサポートしており、ユーザーは NewAPI を通じて様々な AI モデルサービスにアクセスし、利用することができます。 +AstrBot は、モデルプロバイダーとして LFAPI への接続をサポートしており、ユーザーは LFAPI を通じて様々な AI モデルサービスにアクセスし、利用することができます。 ### 設定手順 -#### NewAPI API Key の取得 +#### LFAPI API Key の取得 -NewAPI に登録してログインした後、上部ナビゲーションバーの「コンソール」をクリックし、「トークン管理」をクリックして、「トークンを追加」ボタンをクリックし、新しい API Key を作成し、適切な権限を選択してから「作成」をクリックします。 +LFAPI に登録してログインした後、上部ナビゲーションバーの「コンソール」をクリックし、「トークン管理」をクリックして、「トークンを追加」ボタンをクリックし、新しい API Key を作成し、適切な権限を選択してから「作成」をクリックします。 ![APIキーの作成](/assets/astrbot/image.png) @@ -27,24 +27,24 @@ NewAPI に登録してログインした後、上部ナビゲーションバー ![APIキーのコピー](/assets/astrbot/image-1.png) -#### AstrBot での NewAPI サービスプロバイダーの設定 +#### AstrBot での LFAPI サービスプロバイダーの設定 AstrBot 管理パネルを開き、「モデルプロバイダー」ページに移動し、「新しいモデルプロバイダーを追加」ボタンをクリックします。 -NewAPI は OpenAI Chat Completion および Responses インターフェースを完全にサポートしています。「OpenAI」をクリックして、OpenAI プロバイダーの設定ページに進みます。 +LFAPI は OpenAI Chat Completion および Responses インターフェースを完全にサポートしています。「OpenAI」をクリックして、OpenAI プロバイダーの設定ページに進みます。 -ポップアップダイアログで、API Base URL を NewAPI のインターフェースアドレスに設定します。ご自身でデプロイした New API を使用するか、サービスプロバイダーが合法的なアップストリーム認証とコンプライアンス義務を持つ New API サービスであることを確認してください。NewAPI をローカルにデプロイしている場合は、`http://localhost:3000/v1` のようなローカルアドレスを入力します。出所不明の API アドレスやキーを本番環境に接続しないでください。 +ポップアップダイアログで、API Base URL を LFAPI のインターフェースアドレスに設定します。ご自身でデプロイした LFAPI を使用するか、サービスプロバイダーが合法的なアップストリーム認証とコンプライアンス義務を持つ LFAPI サービスであることを確認してください。LFAPI をローカルにデプロイしている場合は、`http://localhost:3000/v1` のようなローカルアドレスを入力します。出所不明の API アドレスやキーを本番環境に接続しないでください。 次に、「API Key」フィールドに API Key を入力し、「保存」ボタンをクリックします。 ![AstrBotプロバイダー設定](/assets/astrbot/image-2.png) -次に「保存」をクリックして、NewAPI プロバイダーの設定を完了します。 +次に「保存」をクリックして、LFAPI プロバイダーの設定を完了します。 #### サービスプロバイダーの適用 -「プロファイル」ページに移動し、モデルセクションを見つけて、「デフォルトチャットモデル」を先ほど作成した NewAPI プロバイダーに変更し、「保存」ボタンをクリックします。 +「プロファイル」ページに移動し、モデルセクションを見つけて、「デフォルトチャットモデル」を先ほど作成した LFAPI プロバイダーに変更し、「保存」ボタンをクリックします。 ![適用](/assets/astrbot/image-3.png) -これで、NewAPI を AstrBot のモデルプロバイダーとして正常に設定できました。NewAPI が提供する様々な AI モデルサービスに、AstrBot を通じてアクセスし、利用できるようになりました。 \ No newline at end of file +これで、LFAPI を AstrBot のモデルプロバイダーとして正常に設定できました。LFAPI が提供する様々な AI モデルサービスに、AstrBot を通じてアクセスし、利用できるようになりました。 \ No newline at end of file diff --git a/content/docs/ja/apps/cc-switch.mdx b/content/docs/ja/apps/cc-switch.mdx index 4fc4ad2..01dece7 100644 --- a/content/docs/ja/apps/cc-switch.mdx +++ b/content/docs/ja/apps/cc-switch.mdx @@ -1,10 +1,10 @@ --- title: CC Switch - AI CLI 統合管理ツール -description: CC Switch チュートリアル — Claude Code・Codex・Gemini CLI の Provider 設定、MCP サーバー、システムプロンプトを統合管理するクロスプラットフォームツール。New API からワンクリック入力対応。 +description: CC Switch チュートリアル — Claude Code・Codex・Gemini CLI の Provider 設定、MCP サーバー、システムプロンプトを統合管理するクロスプラットフォームツール。LFAPI からワンクリック入力対応。 --- - New API コンソールのシステム設定->チャット設定で、以下のショートカットを追加すると、トークン管理ページから CC Switch にワンクリックで入力できます: + LFAPI コンソールのシステム設定->チャット設定で、以下のショートカットを追加すると、トークン管理ページから CC Switch にワンクリックで入力できます: ```json @@ -43,13 +43,13 @@ description: CC Switch チュートリアル — Claude Code・Codex・Gemini CL - **Web バージョン** — ヘッドレスサーバー / SSH 環境向けのブラウザアクセス方式 - **CLI バージョン** — インタラクティブメニュー方式とコマンドライン方式の両対応 -## NewAPI 接続方法 +## LFAPI 接続方法 -CC Switch は `ccswitch://` Deep Link プロトコルに対応しており、New API のトークン管理ページからワンクリックで Provider 設定をインポートできます。 +CC Switch は `ccswitch://` Deep Link プロトコルに対応しており、LFAPI のトークン管理ページからワンクリックで Provider 設定をインポートできます。 ### 設定手順 -1. **New API のトークン管理ページで、対象トークンのドロップダウンメニューをクリック** +1. **LFAPI のトークン管理ページで、対象トークンのドロップダウンメニューをクリック** メニューから **CC Switch** オプションを選択すると、CC Switch アプリが自動的に起動し、設定ダイアログが表示されます。 2. **ダイアログで設定を完了** diff --git a/content/docs/ja/apps/cherry-studio.mdx b/content/docs/ja/apps/cherry-studio.mdx index 8460c84..64f69a5 100644 --- a/content/docs/ja/apps/cherry-studio.mdx +++ b/content/docs/ja/apps/cherry-studio.mdx @@ -1,10 +1,10 @@ --- title: Cherry Studio - デスクトップAIクライアント -description: Cherry Studio チュートリアル — デスクトップAIクライアントをNew APIに接続し、ワンクリックでAPIキーを入力します。30以上のプロフェッショナルAIアシスタントを内蔵し、さまざまな作業シナリオに対応します。 +description: Cherry Studio チュートリアル — デスクトップAIクライアントをLFAPIに接続し、ワンクリックでAPIキーを入力します。30以上のプロフェッショナルAIアシスタントを内蔵し、さまざまな作業シナリオに対応します。 --- - New API + LFAPI コンソールのシステム設定->チャット設定で、以下のショートカットオプションを追加できます。これにより、トークン管理ページからCherry Studioにワンクリックで入力するのに便利です。 @@ -20,19 +20,19 @@ description: Cherry Studio チュートリアル — デスクトップAIクラ - ダウンロード:[https://cherry-ai.com/download](https://cherry-ai.com/download) - 公式ドキュメント:[https://docs.cherry-ai.com](https://docs.cherry-ai.com) -## NewAPI 接続方法 +## LFAPI 接続方法 ### パラメータ入力 -プロバイダータイプ:NewAPIがサポートするタイプ -APIキー:NewAPIで取得 -APIアドレス:NewAPIサイトアドレス +プロバイダータイプ:LFAPIがサポートするタイプ +APIキー:LFAPIで取得 +APIアドレス:LFAPIサイトアドレス -ご自身でデプロイしたNew APIを使用するか、サービスプロバイダーが合法的なアップストリームライセンスとコンプライアンス義務を持つNew APIサービスであることを確認してください。出所不明のAPIアドレスやキーを本番環境に接続しないでください。 +ご自身でデプロイしたLFAPIを使用するか、サービスプロバイダーが合法的なアップストリームライセンスとコンプライアンス義務を持つLFAPIサービスであることを確認してください。出所不明のAPIアドレスやキーを本番環境に接続しないでください。 ### 図解ガイド -1. NewAPIでAPIキーをコピー +1. LFAPIでAPIキーをコピー ![APIキーをコピー](/assets/cherry_studio/copy_api_key.png) 2. プロバイダーを追加 @@ -44,7 +44,7 @@ APIアドレス:NewAPIサイトアドレス 4. チャットページに戻る ![チャットページに戻る](/assets/cherry_studio/back_to_chat.png) -5. NewAPIモデルに切り替える +5. LFAPIモデルに切り替える ![モデルを切り替える](/assets/cherry_studio/switch_model.png) ## Cherry Studioで絵を描く diff --git a/content/docs/ja/apps/claude-code.mdx b/content/docs/ja/apps/claude-code.mdx index 3d1dbfa..1af8f61 100644 --- a/content/docs/ja/apps/claude-code.mdx +++ b/content/docs/ja/apps/claude-code.mdx @@ -1,6 +1,6 @@ --- title: Claude Code -description: Claude Code 設定ガイド — Anthropic のターミナルベースのコーディングエージェントを New API で利用。コード理解、マルチファイル編集、IDE統合に対応。 +description: Claude Code 設定ガイド — Anthropic のターミナルベースのコーディングエージェントを LFAPI で利用。コード理解、マルチファイル編集、IDE統合に対応。 --- diff --git a/content/docs/ja/apps/codex-cli.mdx b/content/docs/ja/apps/codex-cli.mdx index 8cd1115..4a37ff6 100644 --- a/content/docs/ja/apps/codex-cli.mdx +++ b/content/docs/ja/apps/codex-cli.mdx @@ -1,6 +1,6 @@ --- -title: OpenAI Codex CLI インストールガイド - Windows、macOS、LinuxでターミナルAIプログラミングアシスタントをインストールし、New APIと連携します。サンドボックスポリシーとアトミックパッチ編集をサポート。 -description: OpenAI Codex CLI インストールガイド - Windows、macOS、LinuxでターミナルAIプログラミングアシスタントをインストールし、New APIと連携します。サンドボックスポリシーとアトミックパッチ編集をサポート。 +title: OpenAI Codex CLI インストールガイド - Windows、macOS、LinuxでターミナルAIプログラミングアシスタントをインストールし、LFAPIと連携します。サンドボックスポリシーとアトミックパッチ編集をサポート。 +description: OpenAI Codex CLI インストールガイド - Windows、macOS、LinuxでターミナルAIプログラミングアシスタントをインストールし、LFAPIと連携します。サンドボックスポリシーとアトミックパッチ編集をサポート。 --- @@ -150,7 +150,7 @@ Windowsで最高のパフォーマンスを得るには、Windows Subsystem for ![windows-img-14.webp](/assets/codex/windows-img-14.webp) -> 注意:インターフェースアドレスを変更した後、すべてのモデル(公式プリセットモデルを含む)は、設定された、合法的に承認された独自のまたは組織のアクセスポイントを呼び出します。ご自身でデプロイしたNew APIを使用するか、サービスプロバイダーが合法的なアップストリーム承認とコンプライアンス義務を負うNew APIサービスであることを確認してください。出所不明のAPIアドレスやキーを本番環境に接続しないでください。 +> 注意:インターフェースアドレスを変更した後、すべてのモデル(公式プリセットモデルを含む)は、設定された、合法的に承認された独自のまたは組織のアクセスポイントを呼び出します。ご自身でデプロイしたLFAPIを使用するか、サービスプロバイダーが合法的なアップストリーム承認とコンプライアンス義務を負うLFAPIサービスであることを確認してください。出所不明のAPIアドレスやキーを本番環境に接続しないでください。 ### macOS版の図解ガイド diff --git a/content/docs/ja/apps/deepchat.mdx b/content/docs/ja/apps/deepchat.mdx index c5a43ad..ecd6f0c 100644 --- a/content/docs/ja/apps/deepchat.mdx +++ b/content/docs/ja/apps/deepchat.mdx @@ -1,10 +1,10 @@ --- title: DeepChat - フル機能AI Agentクライアント -description: DeepChat ガイド — オープンソースで商用利用に配慮したフル機能AI Agentクライアントを New API に接続し、DeepLink で DeepChat 設定をワンクリック導入します。 +description: DeepChat ガイド — オープンソースで商用利用に配慮したフル機能AI Agentクライアントを LFAPI に接続し、DeepLink で DeepChat 設定をワンクリック導入します。 --- - New API コンソールのシステム設定 -> チャット設定で、以下のショートカットオプションを追加できます。これにより、トークン管理ページから + LFAPI コンソールのシステム設定 -> チャット設定で、以下のショートカットオプションを追加できます。これにより、トークン管理ページから DeepChat へワンクリックで入力できます: @@ -23,11 +23,11 @@ description: DeepChat ガイド — オープンソースで商用利用に配 - GitHub リポジトリ:[https://github.com/ThinkInAIXYZ/deepchat](https://github.com/ThinkInAIXYZ/deepchat) - ダウンロードURL:[https://deepchat.thinkinai.xyz/#/download](https://deepchat.thinkinai.xyz/#/download) -## NewAPI 接続方法 +## LFAPI 接続方法 ### 方法一:ワンクリック導入 -1. New API コンソールのサイドバーで「トークン管理」を開き、使用するトークンを見つけます +1. LFAPI コンソールのサイドバーで「トークン管理」を開き、使用するトークンを見つけます トークン管理を開く 2. トークン操作で **DeepChat** を選択します @@ -39,18 +39,18 @@ description: DeepChat ガイド — オープンソースで商用利用に配 4. DeepChat の Provider 導入プレビューで設定を確認します ![DeepChat 設定を確認](/assets/deepchat/4-deepchat-ok.png) -5. モデル一覧を開き、New API モデルを選択して利用を開始します +5. モデル一覧を開き、LFAPI モデルを選択して利用を開始します ![モデル一覧を開く](/assets/deepchat/5-open-models.png) ### 方法二:手動導入 -1. New API コンソールで API Key とサイトアドレスをコピーします - ![New API 手動設定ガイド](/assets/deepchat/7-new-api-manual-guidance.png) +1. LFAPI コンソールで API Key とサイトアドレスをコピーします + ![LFAPI 手動設定ガイド](/assets/deepchat/7-new-api-manual-guidance.png) -2. DeepChat 設定で New API Provider を追加または編集し、API アドレスと API Key を入力します +2. DeepChat 設定で LFAPI Provider を追加または編集し、API アドレスと API Key を入力します ![DeepChat 手動設定ガイド](/assets/deepchat/6-deepchat-manual-guidance.png) -3. モデル一覧を開き、New API モデルを選択して利用を開始します +3. モデル一覧を開き、LFAPI モデルを選択して利用を開始します ![モデル一覧を開く](/assets/deepchat/5-open-models.png) ## 関連リンク diff --git a/content/docs/ja/apps/factory-droid-cli.mdx b/content/docs/ja/apps/factory-droid-cli.mdx index 4277805..6b26c92 100644 --- a/content/docs/ja/apps/factory-droid-cli.mdx +++ b/content/docs/ja/apps/factory-droid-cli.mdx @@ -1,6 +1,6 @@ --- title: Factory Droid CLI -description: Factory Droid CLI セットアップガイド — AIソフトウェアエンジニアリングエージェントを New API で設定。計画からテストまでのエンドツーエンド開発を自動化。 +description: Factory Droid CLI セットアップガイド — AIソフトウェアエンジニアリングエージェントを LFAPI で設定。計画からテストまでのエンドツーエンド開発を自動化。 --- diff --git a/content/docs/ja/apps/fluent-read.mdx b/content/docs/ja/apps/fluent-read.mdx index 528fea1..26ede6b 100644 --- a/content/docs/ja/apps/fluent-read.mdx +++ b/content/docs/ja/apps/fluent-read.mdx @@ -1,10 +1,10 @@ --- title: FluentRead - オープンソース翻訳プラグイン -description: FluentRead 設定ガイド — 20以上の翻訳エンジンとAIモデルに対応したオープンソースブラウザ翻訳プラグイン。New API と接続してバイリンガル読書を実現。 +description: FluentRead 設定ガイド — 20以上の翻訳エンジンとAIモデルに対応したオープンソースブラウザ翻訳プラグイン。LFAPI と接続してバイリンガル読書を実現。 --- - New API + LFAPI コンソールの「システム設定」->「チャット設定」で、以下のショートカットオプションを追加できます。これにより、トークン管理ページからFluentReadにワンクリックで入力できるようになります。 @@ -51,9 +51,9 @@ description: FluentRead 設定ガイド — 20以上の翻訳エンジンとAI ## 🚀 設定方法 -### New API コンソールから設定をインポート(推奨) +### LFAPI コンソールから設定をインポート(推奨) -ブラウザにFluentReadプラグインがインストールされている場合、New API コンソール->トークン管理ページを開くと、FluentReadを追加するプロンプトが表示されます。 +ブラウザにFluentReadプラグインがインストールされている場合、LFAPI コンソール->トークン管理ページを開くと、FluentReadを追加するプロンプトが表示されます。 ![添加提示](/assets/fluentread/hint.png) @@ -61,7 +61,7 @@ description: FluentRead 設定ガイド — 20以上の翻訳エンジンとAI ![確認](/assets/fluentread/confirm.png) -インポートを確認すると、FluentReadのNew API設定が有効になります。 +インポートを確認すると、FluentReadのLFAPI設定が有効になります。 ![配置结果](/assets/fluentread/fluentread.png) @@ -71,8 +71,8 @@ description: FluentRead 設定ガイド — 20以上の翻訳エンジンとAI | 設定項目 | 内容 | | ---------------------- | ------------------------------------ | -| 翻訳サービス | NewAPI | -| アクセストークン | NewAPI キー | -| NewAPIインターフェース | NewAPIデプロイアドレス(/v1なし) | +| 翻訳サービス | LFAPI | +| アクセストークン | LFAPI キー | +| LFAPIインターフェース | LFAPIデプロイアドレス(/v1なし) | | モデル | リストから選択、またはカスタムモデル | | カスタムモデル | モデル名 | diff --git a/content/docs/ja/apps/index.mdx b/content/docs/ja/apps/index.mdx index 2b5f0e0..c1854c3 100644 --- a/content/docs/ja/apps/index.mdx +++ b/content/docs/ja/apps/index.mdx @@ -17,7 +17,7 @@ import { ## 概要 -New API は、さまざまな人気のあるAIアプリケーションおよびツールと互換性があります。以下は、検証済みのサポートされているアプリケーションのリストと設定ガイドです。 +LFAPI は、さまざまな人気のあるAIアプリケーションおよびツールと互換性があります。以下は、検証済みのサポートされているアプリケーションのリストと設定ガイドです。 ## サポートされているアプリケーション @@ -38,13 +38,13 @@ New API は、さまざまな人気のあるAIアプリケーションおよび /> } title="AQBot" - description="ローカル優先のデスクトップ AI ワークベンチ。マルチプロバイダー対話と ACP Agent に対応し、aqbot:// で New API をワンクリック導入できます。" + description="ローカル優先のデスクトップ AI ワークベンチ。マルチプロバイダー対話と ACP Agent に対応し、aqbot:// で LFAPI をワンクリック導入できます。" href="/ja/docs/apps/aqbot" /> } title="CC Switch" - description="ワンクリック入力対応。New API クリックで Claude/Codex/Gemini と各モデルをダイアログで設定。" + description="ワンクリック入力対応。LFAPI クリックで Claude/Codex/Gemini と各モデルをダイアログで設定。" href="/ja/docs/apps/cc-switch" /> } title="DeepChat" - description="オープンソースのクロスプラットフォーム多モデルAIクライアント。DeepLinkで New API Provider をワンクリック導入。" + description="オープンソースのクロスプラットフォーム多モデルAIクライアント。DeepLinkで LFAPI Provider をワンクリック導入。" href="/ja/docs/apps/deepchat" /> } title="OpenClaw" - description="セルフホスト型AIアシスタントプラットフォーム — OpenClaw をインストールし、New API と接続。飛書、Discord、Slack などのマルチチャネル対応。" + description="セルフホスト型AIアシスタントプラットフォーム — OpenClaw をインストールし、LFAPI と接続。飛書、Discord、Slack などのマルチチャネル対応。" href="/ja/docs/apps/openclaw" /> LangBot はオープンソースのインスタントメッセージングボット開発プラットフォームで、飛書、釘釘、微信、QQ、Telegram、Discord、Slack など、様々なインスタントメッセージングプラットフォームをサポートしています。世界の主要なAIモデルに接続し、ナレッジベース、エージェント、MCPなどの多様なAI - アプリケーション機能をサポートし、NewAPIに完全に適合しています。 + アプリケーション機能をサポートし、LFAPIに完全に適合しています。 - 公式サイト:[https://langbot.app](https://langbot.app/) @@ -15,19 +15,19 @@ description: LangBot 統合ガイド — 飛書、DingTalk、Telegram、Discord - 公式ドキュメント:[https://docs.langbot.app](https://docs.langbot.app/) - オープンソースリポジトリ:[https://github.com/langbot-app/LangBot](https://github.com/langbot-app/LangBot) -## NewAPIとの連携 +## LFAPIとの連携 -LangBot は、ローカルにデプロイされたNewAPIと、NewAPIを使用して構築されたサードパーティのNewAPIサービスへの連携をサポートしています。 +LangBot は、ローカルにデプロイされたLFAPIと、LFAPIを使用して構築されたサードパーティのLFAPIサービスへの連携をサポートしています。 ### 使用方法 -1. NewAPIからAPIキーを取得します +1. LFAPIからAPIキーを取得します ![获取 API key](/assets/langbot/get_api_key.png) - ローカルにデプロイされたNewAPIの場合は、ご自身でAPIアドレスを設定してください([コンテナネットワーク接続](https://docs.langbot.app/ja/workshop/network-details.html)を参照)。サードパーティのNewAPIサービスを使用する場合は、ページからアドレスをコピーできます。注意:アドレスの後に`/v1`を追加する必要があります。 + ローカルにデプロイされたLFAPIの場合は、ご自身でAPIアドレスを設定してください([コンテナネットワーク接続](https://docs.langbot.app/ja/workshop/network-details.html)を参照)。サードパーティのLFAPIサービスを使用する場合は、ページからアドレスをコピーできます。注意:アドレスの後に`/v1`を追加する必要があります。 -2. LangBotでモデルを追加し、NewAPIプロバイダーを選択し、対応するAPIキーとAPIアドレスを入力します - ![添加 NewAPI 模型](/assets/langbot/add_newapi_model.png) +2. LangBotでモデルを追加し、LFAPIプロバイダーを選択し、対応するAPIキーとAPIアドレスを入力します + ![添加 LFAPI 模型](/assets/langbot/add_newapi_model.png) 3. パイプラインでモデルを選択します @@ -43,9 +43,9 @@ LangBot は、ローカルにデプロイされたNewAPIと、NewAPIを使用し ### LangBotナレッジベースの使用 -LangBot はNewAPIの埋め込みモデルの使用をサポートしており、これをナレッジベースのベクトルモデルとして利用できます。 +LangBot はLFAPIの埋め込みモデルの使用をサポートしており、これをナレッジベースのベクトルモデルとして利用できます。 -1. LangBotで埋め込みモデルを追加し、NewAPIプロバイダーを選択します +1. LangBotで埋め込みモデルを追加し、LFAPIプロバイダーを選択します ![添加嵌入模型](/assets/langbot/add_embedding_model.png) 2. 新しいナレッジベースを作成する際に埋め込みモデルを選択します diff --git a/content/docs/ja/apps/luna-translator.mdx b/content/docs/ja/apps/luna-translator.mdx index b70e089..f286f51 100644 --- a/content/docs/ja/apps/luna-translator.mdx +++ b/content/docs/ja/apps/luna-translator.mdx @@ -1,10 +1,10 @@ --- title: LunaTranslator - オープンソース GalGame 翻訳ツール -description: LunaTranslator チュートリアル — オープンソースのGalGame / ビジュアルノベル翻訳ツール。HOOK、OCR、AI翻訳エンジンをサポート。New API と連携して翻訳品質を向上させます。 +description: LunaTranslator チュートリアル — オープンソースのGalGame / ビジュアルノベル翻訳ツール。HOOK、OCR、AI翻訳エンジンをサポート。LFAPI と連携して翻訳品質を向上させます。 --- - New API + LFAPI コンソールのシステム設定->チャット設定で、以下のショートカットオプションを追加すると、トークン管理ページから LunaTranslator にワンクリックで入力できます。 @@ -43,13 +43,13 @@ description: LunaTranslator チュートリアル — オープンソースのGa [LunaTranslator ドキュメント - ダウンロード & 起動 & 更新](https://docs.lunatranslator.org/ja/README.html) からダウンロードしてインストールしてください。 -## LunaTranslator で New API を連携する +## LunaTranslator で LFAPI を連携する -LunaTranslator はローカルにデプロイされた New API の連携をサポートしています。ご自身でデプロイした New API を使用するか、サービスプロバイダーが合法的なアップストリームライセンスとコンプライアンス義務を持つ New API サービスであることを確認してください。出所不明のAPIアドレスやAPIキーを本番環境に接続しないでください。 +LunaTranslator はローカルにデプロイされた LFAPI の連携をサポートしています。ご自身でデプロイした LFAPI を使用するか、サービスプロバイダーが合法的なアップストリームライセンスとコンプライアンス義務を持つ LFAPI サービスであることを確認してください。出所不明のAPIアドレスやAPIキーを本番環境に接続しないでください。 ### ワンクリック設定 -1. New API コンソールの`システム設定` -> `チャット設定`で、以下のショートカットオプションを追加します。 +1. LFAPI コンソールの`システム設定` -> `チャット設定`で、以下のショートカットオプションを追加します。 ```json { "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" } @@ -57,7 +57,7 @@ LunaTranslator はローカルにデプロイされた New API の連携をサ ![add_config](/assets/luna_translator/add_config.png) -2. **`NewAPI`** -> `コンソール` -> `トークン管理`タブで、LunaTranslator で使用するトークンを選択し、チャットボタンの横にあるドロップダウンオプションをクリックして `LunaTranslator` を選択すると、LunaTranslator にジャンプし、APIアドレスとAPIキーが自動的に設定されます。 +2. **`LFAPI`** -> `コンソール` -> `トークン管理`タブで、LunaTranslator で使用するトークンを選択し、チャットボタンの横にあるドロップダウンオプションをクリックして `LunaTranslator` を選択すると、LunaTranslator にジャンプし、APIアドレスとAPIキーが自動的に設定されます。 ![跳转到 LunaTranslator](/assets/luna_translator/jump_to_app.png) @@ -65,7 +65,7 @@ LunaTranslator はローカルにデプロイされた New API の連携をサ ![设置api](/assets/luna_translator/api_setting.png) -4. **model** ドロップダウンボックスの横にある更新ボタンをクリックして、New API プラットフォームのモデルリストを取得し、モデル名を選択または入力した後、OKをクリックして保存します。 +4. **model** ドロップダウンボックスの横にある更新ボタンをクリックして、LFAPI プラットフォームのモデルリストを取得し、モデル名を選択または入力した後、OKをクリックして保存します。 ![设置模型](/assets/luna_translator/setting_model.png) @@ -75,7 +75,7 @@ LunaTranslator はローカルにデプロイされた New API の連携をサ ### 手動設定 -1. **`NewAPI`** -> `コンソール` -> `トークン管理`タブでAPIキーを取得します。 +1. **`LFAPI`** -> `コンソール` -> `トークン管理`タブでAPIキーを取得します。 ![获取 API Key](/assets/luna_translator/copy_api_key.png) @@ -93,11 +93,11 @@ LunaTranslator はローカルにデプロイされた New API の連携をサ ![设置 API2](/assets/luna_translator/setting_api2.png) -5. **model** ドロップダウンボックスの横にある更新ボタンをクリックして、New API プラットフォームのモデルリストを取得し、モデル名を選択または入力した後、OKをクリックして保存します。 +5. **model** ドロップダウンボックスの横にある更新ボタンをクリックして、LFAPI プラットフォームのモデルリストを取得し、モデル名を選択または入力した後、OKをクリックして保存します。 ![设置 API3](/assets/luna_translator/setting_api3.png) -6. **NewAPI** の横にあるトグルボタンをクリックしてインターフェースを有効にし、使用を開始します。 +6. **LFAPI** の横にあるトグルボタンをクリックしてインターフェースを有効にし、使用を開始します。 ![打开API](/assets/luna_translator/open_api.png) diff --git a/content/docs/ja/apps/memoh.mdx b/content/docs/ja/apps/memoh.mdx index d7aed8f..f81f169 100644 --- a/content/docs/ja/apps/memoh.mdx +++ b/content/docs/ja/apps/memoh.mdx @@ -1,6 +1,6 @@ --- title: Memoh - コンテナ化AIエージェントプラットフォーム -description: Memoh 接続ガイド — セルフホスト型コンテナ化AIエージェントプラットフォームを New API に接続し、Telegram、Discord、飛書、QQ、WeChat などのチャネルで長期記憶を持つAIボットを作成。 +description: Memoh 接続ガイド — セルフホスト型コンテナ化AIエージェントプラットフォームを LFAPI に接続し、Telegram、Discord、飛書、QQ、WeChat などのチャネルで長期記憶を持つAIボットを作成。 --- @@ -42,15 +42,15 @@ sudo docker compose up -d 起動後、`http://localhost:8082` にアクセスしてください。デフォルトの認証情報:`admin` / `admin123`。 -## NewAPI 接続方法 +## LFAPI 接続方法 -Memoh は OpenAI 互換のあらゆるモデルプロバイダーに対応しており、NewAPI を通じてさまざまな AI モデルサービスを一元管理・利用できます。 +Memoh は OpenAI 互換のあらゆるモデルプロバイダーに対応しており、LFAPI を通じてさまざまな AI モデルサービスを一元管理・利用できます。 ### 設定手順 -#### NewAPI API Key の取得 +#### LFAPI API Key の取得 -NewAPI に登録・ログインした後、上部ナビゲーションバーの「コンソール」をクリックし、「トークン管理」から「トークン追加」ボタンをクリックして新しい API Key を作成します。適切な権限を選択し、「作成」をクリックしてください。 +LFAPI に登録・ログインした後、上部ナビゲーションバーの「コンソール」をクリックし、「トークン管理」から「トークン追加」ボタンをクリックして新しい API Key を作成します。適切な権限を選択し、「作成」をクリックしてください。 作成完了後、コピーボタンをクリックして、生成された API Key をコピーします。 @@ -58,14 +58,14 @@ NewAPI に登録・ログインした後、上部ナビゲーションバーの #### Memoh でモデルプロバイダーを追加 -Memoh Web 管理パネルにログインし、プロバイダー管理ページに移動して、NewAPI をクリックします。 +Memoh Web 管理パネルにログインし、プロバイダー管理ページに移動して、LFAPI をクリックします。 ![switch-to-newapi-provider](/assets/memoh/switch_to_newapi_provider.png) 設定ページで以下の情報を入力します: -- **API Base URL**:NewAPI のエンドポイント URL を入力します。例:`https://api.example.com/v1`(ローカルデプロイの場合は `http://localhost:3000/v1`) -- **API Key**:NewAPI からコピーした API Key を貼り付けます +- **API Base URL**:LFAPI のエンドポイント URL を入力します。例:`https://api.example.com/v1`(ローカルデプロイの場合は `http://localhost:3000/v1`) +- **API Key**:LFAPI からコピーした API Key を貼り付けます 「保存」をクリックして、プロバイダーの設定を完了します。 @@ -75,8 +75,8 @@ Memoh Web 管理パネルにログインし、プロバイダー管理ページ #### ボットにモデルを設定 -ボット設定ページに移動し、モデル設定セクションでデフォルトのチャットモデルを NewAPI プロバイダー経由で追加したモデルに切り替え、「保存」をクリックします。 +ボット設定ページに移動し、モデル設定セクションでデフォルトのチャットモデルを LFAPI プロバイダー経由で追加したモデルに切り替え、「保存」をクリックします。 ![set_chat_model](/assets/memoh/set_chat_model.png) -以上で、NewAPI を Memoh のモデルプロバイダーとして設定が完了しました。Memoh の各チャネル(Telegram、Discord、飛書など)を通じて AI ボットと会話でき、すべてのリクエストは NewAPI 経由でルーティングされます。 +以上で、LFAPI を Memoh のモデルプロバイダーとして設定が完了しました。Memoh の各チャネル(Telegram、Discord、飛書など)を通じて AI ボットと会話でき、すべてのリクエストは LFAPI 経由でルーティングされます。 diff --git a/content/docs/ja/apps/openclaw.mdx b/content/docs/ja/apps/openclaw.mdx index 0cd9606..9c030d8 100644 --- a/content/docs/ja/apps/openclaw.mdx +++ b/content/docs/ja/apps/openclaw.mdx @@ -1,6 +1,6 @@ --- title: OpenClaw - セルフホスト型AIアシスタントプラットフォーム -description: OpenClaw チュートリアル — OpenClawのインストール、New APIとの連携、セルフホスト型AIアシスタントの迅速な構築。オープンソースプロジェクトで、Telegram、Discord、WhatsAppなどのマルチチャネル統合をサポートしています。 +description: OpenClaw チュートリアル — OpenClawのインストール、LFAPIとの連携、セルフホスト型AIアシスタントの迅速な構築。オープンソースプロジェクトで、Telegram、Discord、WhatsAppなどのマルチチャネル統合をサポートしています。 --- @@ -13,7 +13,7 @@ description: OpenClaw チュートリアル — OpenClawのインストール、 - GitHub:[https://github.com/openclaw/openclaw](https://github.com/openclaw/openclaw) -OpenClaw は完全にオープンソースであり、[OpenClaw の GitHub リポジトリ](https://github.com/openclaw/openclaw)でソースコードを閲覧したり、Issueを提出したり、貢献したりできます。このチュートリアルでは、OpenClaw のインストール、設定、および New API との連携の完全な手順を説明します。 +OpenClaw は完全にオープンソースであり、[OpenClaw の GitHub リポジトリ](https://github.com/openclaw/openclaw)でソースコードを閲覧したり、Issueを提出したり、貢献したりできます。このチュートリアルでは、OpenClaw のインストール、設定、および LFAPI との連携の完全な手順を説明します。 ## 🌟 主要機能 @@ -42,12 +42,12 @@ OpenClaw は完全にオープンソースであり、[OpenClaw の GitHub リ - Node.js 22 以降のバージョン - - 利用可能な New API アドレス(通常 `/v1` で終わる) - - 利用可能な New API API Key - - ご自身でデプロイした New API を使用するか、サービスプロバイダーが合法的なアップストリーム認証とコンプライアンス義務を持つ New API サービスであることを確認してください。出所の不明な API アドレスやキーを本番環境に接続しないでください。 + - 利用可能な LFAPI アドレス(通常 `/v1` で終わる) + - 利用可能な LFAPI API Key + - ご自身でデプロイした LFAPI を使用するか、サービスプロバイダーが合法的なアップストリーム認証とコンプライアンス義務を持つ LFAPI サービスであることを確認してください。出所の不明な API アドレスやキーを本番環境に接続しないでください。 -New API を導入する前に、OpenClaw の公式推奨手順に従って Gateway と Control UI を起動しておくことをお勧めします。これにより、後で問題が発生した場合に、OpenClaw 自体が起動していないのか、モデルプロバイダーの設定が誤っているのかを区別しやすくなります。 +LFAPI を導入する前に、OpenClaw の公式推奨手順に従って Gateway と Control UI を起動しておくことをお勧めします。これにより、後で問題が発生した場合に、OpenClaw 自体が起動していないのか、モデルプロバイダーの設定が誤っているのかを区別しやすくなります。 ### 1. OpenClawのインストール(macOS/Linux) @@ -63,7 +63,7 @@ curl -fsSL https://openclaw.ai/install.sh | bash openclaw onboard --install-daemon ``` -このウィザードは、基本的な認証、Gateway の設定、およびオプションのチャネル初期化を完了します。ここでの目標は、まず OpenClaw を起動し、後でデフォルトモデルを New API に切り替えることです。 +このウィザードは、基本的な認証、Gateway の設定、およびオプションのチャネル初期化を完了します。ここでの目標は、まず OpenClaw を起動し、後でデフォルトモデルを LFAPI に切り替えることです。 ### 3. GatewayとControl UIの確認 @@ -91,21 +91,21 @@ OpenClaw の設定ファイルは通常 `~/.openclaw/openclaw.json` にありま 詳細については、公式の環境変数ドキュメント:[Environment Variables](https://docs.openclaw.ai/help/environment)を参照してください。 -## 🚀 New APIをモデルプロバイダーとして使用する +## 🚀 LFAPIをモデルプロバイダーとして使用する -OpenClaw は、`models.providers` を介してカスタムまたは OpenAI 互換インターフェースのモデルゲートウェイを接続することをサポートしています。New API の場合、最も一般的な方法は、それをカスタムプロバイダーとして設定に追加し、デフォルトモデルを `newapi/モデルID` に指定することです。 +OpenClaw は、`models.providers` を介してカスタムまたは OpenAI 互換インターフェースのモデルゲートウェイを接続することをサポートしています。LFAPI の場合、最も一般的な方法は、それをカスタムプロバイダーとして設定に追加し、デフォルトモデルを `newapi/モデルID` に指定することです。 ### 連携の考え方 1. `models.providers` の下に `newapi` プロバイダーを宣言します。 -2. `baseUrl` を New API アドレスに指定し、`/v1` が含まれていることを確認します。 +2. `baseUrl` を LFAPI アドレスに指定し、`/v1` が含まれていることを確認します。 3. `api` を `openai-completions` に設定します。 4. `models` に OpenClaw で使用したいモデルIDをリストします。 5. `agents.defaults.model.primary` でデフォルトモデルを `newapi/...` に切り替えます。 ### 推奨される方法:環境変数でAPIキーを保存する -まず、現在のシェル、サービス環境、または OpenClaw が読み取れる `.env` に New API キーを提供します。 +まず、現在のシェル、サービス環境、または OpenClaw が読み取れる `.env` に LFAPI キーを提供します。 ```bash export NEWAPI_API_KEY="sk-your-newapi-key" @@ -145,17 +145,17 @@ export NEWAPI_API_KEY="sk-your-newapi-key" } ``` -これはそのままコピーする必要がある完全な設定ではありませんが、New API を連携する上で最も重要な部分です。`provider`、モデルID、およびデフォルトモデルの参照が正しく対応していれば、OpenClaw は New API を介して公開されているモデルリソースを呼び出すことができます。 +これはそのままコピーする必要がある完全な設定ではありませんが、LFAPI を連携する上で最も重要な部分です。`provider`、モデルID、およびデフォルトモデルの参照が正しく対応していれば、OpenClaw は LFAPI を介して公開されているモデルリソースを呼び出すことができます。 ### 主要な設定項目 | 設定項目 | 説明 | | --- | --- | | `models.mode` | `merge` に設定することをお勧めします。これにより、OpenClaw の組み込みプロバイダーを保持しつつ、`newapi` を追加できます。 | -| `models.providers.newapi.baseUrl` | New API のアドレス。通常 `/v1` を含める必要があります。 | -| `models.providers.newapi.apiKey` | New API キー。`${NEWAPI_API_KEY}` を介して注入することをお勧めします。 | -| `models.providers.newapi.api` | New API のような OpenAI 互換ゲートウェイの場合、`openai-completions` を使用します。 | -| `models.providers.newapi.models` | ここにリストされているモデルIDは、New API が実際に公開しているモデル名と一致している必要があります。 | +| `models.providers.newapi.baseUrl` | LFAPI のアドレス。通常 `/v1` を含める必要があります。 | +| `models.providers.newapi.apiKey` | LFAPI キー。`${NEWAPI_API_KEY}` を介して注入することをお勧めします。 | +| `models.providers.newapi.api` | LFAPI のような OpenAI 互換ゲートウェイの場合、`openai-completions` を使用します。 | +| `models.providers.newapi.models` | ここにリストされているモデルIDは、LFAPI が実際に公開しているモデル名と一致している必要があります。 | | `agents.defaults.model.primary` | デフォルトのプライマリモデル。形式は `provider/model-id` である必要があります。 | | `agents.defaults.model.fallbacks` | フォールバックモデルのリスト。プライマリモデルが失敗した場合に自動的に切り替わります。 | | `agents.defaults.models` | オプション。モデルにエイリアスを付けるために使用し、UI やセッションで参照しやすくします。 | diff --git a/content/docs/ja/business/index.mdx b/content/docs/ja/business/index.mdx index c38bb1e..d1920cc 100644 --- a/content/docs/ja/business/index.mdx +++ b/content/docs/ja/business/index.mdx @@ -4,7 +4,7 @@ title: ビジネス提携 ## 💡 私たちの原点 -New APIが誕生した原点はシンプルです。それは、**より多くの人々がAIを利用できるようにし、AIへの参入障壁を下げること**です。 +LFAPIが誕生した原点はシンプルです。それは、**より多くの人々がAIを利用できるようにし、AIへの参入障壁を下げること**です。 私たちは、AIが一部の特権ではなく、誰もがアクセスできるツールであるべきだと信じています。独立した開発者、スタートアップチーム、大企業を問わず、合法的なライセンスとコンプライアンスに準拠したデプロイメントを前提として、企業内部でのAI導入と管理の複雑さを軽減できるべきです。 @@ -12,16 +12,16 @@ New APIが誕生した原点はシンプルです。それは、**より多く 私たちが商業化を選択したのは、利益の最大化を追求するためではなく、プロジェクトが**健全かつ持続的に発展できる**ようにするためです。 -サーバーにはコストがかかり、メンテナンスには労力が必要であり、エコシステム構築にはリソースが必要です。適度な商業化は、New APIがコミュニティにサービスを提供し続けるための必要な保証です。私たちは収益を製品のイテレーション、コミュニティの構築、エコシステムの拡大に投資し、皆様からのあらゆるご支援がより良いサービスへと変わることをお約束します。 +サーバーにはコストがかかり、メンテナンスには労力が必要であり、エコシステム構築にはリソースが必要です。適度な商業化は、LFAPIがコミュニティにサービスを提供し続けるための必要な保証です。私たちは収益を製品のイテレーション、コミュニティの構築、エコシステムの拡大に投資し、皆様からのあらゆるご支援がより良いサービスへと変わることをお約束します。 ## 📜 紳士協定 -New APIコミュニティは常に**紳士協定**の理念を堅持しています。 +LFAPIコミュニティは常に**紳士協定**の理念を堅持しています。 - 私たちはすべてのユーザーを信頼し、柔軟でオープンな利用方法を提供します。 - 私たちは煩雑な制限を設けず、皆様がリソースを合理的に利用すると信じています。 - 私たちは、ユーザーが利益を得ると同時に、プロジェクトの持続可能な発展を尊重することを期待しています。 -- もしNew APIによってあなたのプロジェクトが恩恵を受けたなら、どのような形でもコミュニティに還元することを歓迎します。 +- もしLFAPIによってあなたのプロジェクトが恩恵を受けたなら、どのような形でもコミュニティに還元することを歓迎します。 これは信頼と尊敬に基づいた約束であり、オープンソース精神の継続でもあります。 @@ -37,4 +37,4 @@ New APIコミュニティは常に**紳士協定**の理念を堅持していま 企業WeChat QRコード -New APIは、開発者と企業に対し、合法的なライセンスシナリオにおける統合APIゲートウェイと使用量管理機能を提供することに尽力しています。製品や技術面で私たちと深い協力関係を築きたい場合は、心よりご連絡をお待ちしております!協力は、合法的なライセンス、コンプライアンスに準拠したデプロイメント、および正当なビジネスシナリオに基づいて行われるべきであり、上流のサービス規約、プラットフォームルール、および規制要件を遵守する必要があります。お客様は、合法的に上流のライセンスを取得し、自身のサービス資格、コンプライアンスに準拠した運用、コンテンツの安全性、およびユーザー管理について責任を負う必要があります。 \ No newline at end of file +LFAPIは、開発者と企業に対し、合法的なライセンスシナリオにおける統合APIゲートウェイと使用量管理機能を提供することに尽力しています。製品や技術面で私たちと深い協力関係を築きたい場合は、心よりご連絡をお待ちしております!協力は、合法的なライセンス、コンプライアンスに準拠したデプロイメント、および正当なビジネスシナリオに基づいて行われるべきであり、上流のサービス規約、プラットフォームルール、および規制要件を遵守する必要があります。お客様は、合法的に上流のライセンスを取得し、自身のサービス資格、コンプライアンスに準拠した運用、コンテンツの安全性、およびユーザー管理について責任を負う必要があります。 \ No newline at end of file diff --git a/content/docs/ja/guide/console/channel-management.mdx b/content/docs/ja/guide/console/channel-management.mdx index 58238d6..a296a7f 100644 --- a/content/docs/ja/guide/console/channel-management.mdx +++ b/content/docs/ja/guide/console/channel-management.mdx @@ -8,7 +8,7 @@ import { Callout } from 'fumadocs-ui/components/callout'; アップストリームチャネルは、デプロイ元が合法的に所有または承認されたアカウント、APIキー、モデルサービス、または企業契約である必要があります。ロードバランシング、自動フェイルオーバー、加重ランダム、複数キー管理などの機能は、高可用性と企業複数アカウント管理のために使用されます。使用する際は、アップストリームのサービス利用規約、プラットフォームルール、および規制要件を遵守する必要があります。 -ここでは、NewAPI のアップストリームチャネルを管理できます。 +ここでは、LFAPI のアップストリームチャネルを管理できます。 ![チャネル](/assets/guide/channel.png) diff --git a/content/docs/ja/guide/console/chat.mdx b/content/docs/ja/guide/console/chat.mdx index 5755323..3ce8008 100644 --- a/content/docs/ja/guide/console/chat.mdx +++ b/content/docs/ja/guide/console/chat.mdx @@ -2,7 +2,7 @@ title: チャット --- -New API は、いくつかのAIチャットアプリケーションに素早くアクセスでき、テストや使用に便利です。 +LFAPI は、いくつかのAIチャットアプリケーションに素早くアクセスでき、テストや使用に便利です。 ## 設定のインポート @@ -24,7 +24,7 @@ New API は、いくつかのAIチャットアプリケーションに素早く - Lobe Chat は現在、New API + Lobe Chat は現在、LFAPI からのワンクリック設定インポートをサポートしていません。手動で入力する必要があります。 @@ -40,13 +40,13 @@ New API は、いくつかのAIチャットアプリケーションに素早く - New API からのワンクリック設定インポートをサポートしています + LFAPI からのワンクリック設定インポートをサポートしています ## AMA 问天 - AMA 问天 は New API + AMA 问天 は LFAPI が提供するスマートQ&Aアシスタントで、多段階の対話と複雑な質問への回答をサポートしています。ユーザーは自然言語で AMA 问天 と交流し、知識、技術サポート、またはビジネスコンサルティングを得ることができ、コミュニケーション効率とエクスペリエンスを向上させます。 diff --git a/content/docs/ja/guide/console/dashboard.mdx b/content/docs/ja/guide/console/dashboard.mdx index a267f43..bae077b 100644 --- a/content/docs/ja/guide/console/dashboard.mdx +++ b/content/docs/ja/guide/console/dashboard.mdx @@ -2,6 +2,6 @@ title: ダッシュボード --- -こちらで NewAPI の全体統計データを確認できます。 +こちらで LFAPI の全体統計データを確認できます。 ![ダッシュボード](/assets/guide/dashboard.png) diff --git a/content/docs/ja/guide/console/redeem-code-management.mdx b/content/docs/ja/guide/console/redeem-code-management.mdx index a9fc375..eb0d59c 100644 --- a/content/docs/ja/guide/console/redeem-code-management.mdx +++ b/content/docs/ja/guide/console/redeem-code-management.mdx @@ -4,7 +4,7 @@ title: 引き換えコード import { Callout } from 'fumadocs-ui/components/callout'; -ここで NewAPI の引き換えコードを管理できます。引き換えコードは、内部テスト、承認済み顧客への提供、イベントでの贈呈、または経理調整にのみ使用されます。 +ここで LFAPI の引き換えコードを管理できます。引き換えコードは、内部テスト、承認済み顧客への提供、イベントでの贈呈、または経理調整にのみ使用されます。 引き換えコードの使用は、認可範囲、プラットフォームの規則、および現地の法令要件に準拠する必要があります。 diff --git a/content/docs/ja/guide/console/settings/chat-settings.mdx b/content/docs/ja/guide/console/settings/chat-settings.mdx index ff88bf2..8ee372e 100644 --- a/content/docs/ja/guide/console/settings/chat-settings.mdx +++ b/content/docs/ja/guide/console/settings/chat-settings.mdx @@ -2,7 +2,7 @@ title: チャット設定 --- -ここでは、NewAPI のチャット統合を設定できます。以下の変数が使用可能です。 +ここでは、LFAPI のチャット統合を設定できます。以下の変数が使用可能です。 - `{key}`:キーに置き換えます - `{address}`:サーバーアドレスに置き換えます(末尾に / や /v1 を付けません) diff --git a/content/docs/ja/guide/console/settings/other-settings.mdx b/content/docs/ja/guide/console/settings/other-settings.mdx index a020ab3..ee63959 100644 --- a/content/docs/ja/guide/console/settings/other-settings.mdx +++ b/content/docs/ja/guide/console/settings/other-settings.mdx @@ -2,7 +2,7 @@ title: その他設定 --- -NewAPI の更新を確認し、お知らせやページカスタマイズを設定します。 +LFAPI の更新を確認し、お知らせやページカスタマイズを設定します。 ![その他1](/assets/guide/other-setting-1.png) ![その他2](/assets/guide/other-setting-2.png) diff --git a/content/docs/ja/guide/console/settings/rate-settings.mdx b/content/docs/ja/guide/console/settings/rate-settings.mdx index aa4348b..d734e23 100644 --- a/content/docs/ja/guide/console/settings/rate-settings.mdx +++ b/content/docs/ja/guide/console/settings/rate-settings.mdx @@ -2,11 +2,11 @@ title: レート設定 --- -レート設定は、NewAPIの内部コスト計算システムの中核となる設定であり、異なるレートを設定することで、さまざまなモデルやユーザーグループの組織内部のコスト配分、予算管理、または企業顧客の会計設定基準を柔軟に制御できます。 +レート設定は、LFAPIの内部コスト計算システムの中核となる設定であり、異なるレートを設定することで、さまざまなモデルやユーザーグループの組織内部のコスト配分、予算管理、または企業顧客の会計設定基準を柔軟に制御できます。 ## レートシステムの概要 -NewAPIは、ユーザーのクォータ消費量を計算するために3層のレート体系を使用しています。 +LFAPIは、ユーザーのクォータ消費量を計算するために3層のレート体系を使用しています。 1. モデルレート(ModelRatio) - 異なるAIモデルの基本課金倍数を定義します 2. 補完レート(CompletionRatio) - 出力トークンに追加の課金調整を行います @@ -14,7 +14,7 @@ NewAPIは、ユーザーのクォータ消費量を計算するために3層の ### クォータとレートの関係 -New APIシステムでは、レートはクォータ消費量を計算するための重要なパラメータです。クォータはシステム内部の課金単位であり、すべてのAPI呼び出しは最終的にクォータポイントに変換され、差し引かれます。 +LFAPIシステムでは、レートはクォータ消費量を計算するための重要なパラメータです。クォータはシステム内部の課金単位であり、すべてのAPI呼び出しは最終的にクォータポイントに変換され、差し引かれます。 クォータ単位の変換: @@ -36,7 +36,7 @@ New APIシステムでは、レートはクォータ消費量を計算するた 配额消耗 = 模型固定价格 × 分组倍率 × 配额单位(500,000) ``` -#### オーディオモデル(特殊処理、New API内部で自動処理) +#### オーディオモデル(特殊処理、LFAPI内部で自動処理) ``` 配额消耗 = (文本输入token + 文本输出token × 补全倍率 + 音频输入token × 音频倍率 + 音频输出token × 音频倍率 × 音频补全倍率) × 模型倍率 × 分组倍率 @@ -44,7 +44,7 @@ New APIシステムでは、レートはクォータ消費量を計算するた #### 事前消費と事後消費のメカニズム -New APIは、事前消費と事後消費の二重課金メカニズムを採用しています。 +LFAPIは、事前消費と事後消費の二重課金メカニズムを採用しています。 1. **事前消費フェーズ**:API呼び出し前、予測トークン数に基づいてクォータ消費量を計算し、事前控除します 2. **事後消費フェーズ**:API呼び出し完了後、実際のトークン数に基づいてクォータ消費量を再計算します diff --git a/content/docs/ja/guide/console/settings/system-settings.mdx b/content/docs/ja/guide/console/settings/system-settings.mdx index cfbaca7..bba5faa 100644 --- a/content/docs/ja/guide/console/settings/system-settings.mdx +++ b/content/docs/ja/guide/console/settings/system-settings.mdx @@ -2,7 +2,7 @@ title: システム設定 --- -ここでは、NewAPI worker、メールサーバー、およびログイン・登録関連設定を行うことができます。 +ここでは、LFAPI worker、メールサーバー、およびログイン・登録関連設定を行うことができます。 ![システム設定1](/assets/guide/system-setting-1.png) diff --git a/content/docs/ja/guide/console/user-management.mdx b/content/docs/ja/guide/console/user-management.mdx index 4ab4e64..fe55f6f 100644 --- a/content/docs/ja/guide/console/user-management.mdx +++ b/content/docs/ja/guide/console/user-management.mdx @@ -2,6 +2,6 @@ title: ユーザー管理 --- -ここでは、NewAPI の登録ユーザーを管理できます。 +ここでは、LFAPI の登録ユーザーを管理できます。 ![ユーザー管理](/assets/guide/user-management.png) diff --git a/content/docs/ja/guide/feature-guide/admin/system-setting-advanced.mdx b/content/docs/ja/guide/feature-guide/admin/system-setting-advanced.mdx index 315a68d..5a9c443 100644 --- a/content/docs/ja/guide/feature-guide/admin/system-setting-advanced.mdx +++ b/content/docs/ja/guide/feature-guide/admin/system-setting-advanced.mdx @@ -191,11 +191,11 @@ API呼び出しの頻度制限を設定し、悪用を防ぎ、システムの ## 倍率設定 -倍率設定はNew APIの課金システムの中核となる設定であり、異なる倍率を設定することで、様々なモデルやユーザーグループの課金基準を柔軟に制御できます。 +倍率設定はLFAPIの課金システムの中核となる設定であり、異なる倍率を設定することで、様々なモデルやユーザーグループの課金基準を柔軟に制御できます。 ### 倍率システム概要 -New APIは、ユーザーのクォータ消費量を計算するために3層の倍率システムを使用します。 +LFAPIは、ユーザーのクォータ消費量を計算するために3層の倍率システムを使用します。 1. **モデル倍率(ModelRatio)** - 異なるAIモデルの基本課金倍数を定義します。 2. **補完倍率(CompletionRatio)** - 出力トークンに対して追加の課金調整を行います。 @@ -203,7 +203,7 @@ New APIは、ユーザーのクォータ消費量を計算するために3層の ### クォータと倍率の関係 -New APIシステムでは、倍率はクォータ消費量を計算するための重要なパラメータです。クォータはシステム内部の課金単位であり、すべてのAPI呼び出しは最終的にクォータポイントに変換されて差し引かれます。 +LFAPIシステムでは、倍率はクォータ消費量を計算するための重要なパラメータです。クォータはシステム内部の課金単位であり、すべてのAPI呼び出しは最終的にクォータポイントに変換されて差し引かれます。 **クォータ単位変換:** @@ -233,7 +233,7 @@ New APIシステムでは、倍率はクォータ消費量を計算するため #### 事前消費と事後消費のメカニズム -New APIは、事前消費と事後消費の二重課金メカニズムを採用しています。 +LFAPIは、事前消費と事後消費の二重課金メカニズムを採用しています。 1. **事前消費フェーズ**:API呼び出し前に、推定トークン数に基づいてクォータ消費量を計算し、事前引き落としを行います。 2. **事後消費フェーズ**:API呼び出し完了後に、実際のトークン数に基づいてクォータ消費量を再計算します。 diff --git a/content/docs/ja/guide/feature-guide/index.mdx b/content/docs/ja/guide/feature-guide/index.mdx index 0dbdd94..20e4f54 100644 --- a/content/docs/ja/guide/feature-guide/index.mdx +++ b/content/docs/ja/guide/feature-guide/index.mdx @@ -1,12 +1,12 @@ --- title: 機能ガイド概要 -description: New API 機能ガイド。ユーザーガイドと管理者ガイドに分かれています +description: LFAPI 機能ガイド。ユーザーガイドと管理者ガイドに分かれています --- import { Card, Cards } from 'fumadocs-ui/components/card'; import { User, Shield, Crown, Key, BarChart2, CreditCard, Bot, Settings } from 'lucide-react'; -New API は統合 LLM ゲートウェイプラットフォームです。複数の AI プロバイダーの API を標準的な OpenAI 互換インターフェースに集約し、1 つのエンドポイントから数十種類のモデルにアクセスできます。本ガイドはロール別にユーザーガイドと管理者ガイドに分かれています。 +LFAPI は統合 LLM ゲートウェイプラットフォームです。複数の AI プロバイダーの API を標準的な OpenAI 互換インターフェースに集約し、1 つのエンドポイントから数十種類のモデルにアクセスできます。本ガイドはロール別にユーザーガイドと管理者ガイドに分かれています。 ![ホームページ](/assets/guide/home.png) diff --git a/content/docs/ja/guide/feature-guide/user/chat-apps.mdx b/content/docs/ja/guide/feature-guide/user/chat-apps.mdx index e3ef46b..acb94a1 100644 --- a/content/docs/ja/guide/feature-guide/user/chat-apps.mdx +++ b/content/docs/ja/guide/feature-guide/user/chat-apps.mdx @@ -1,11 +1,11 @@ --- title: チャットアプリケーション統合 -description: New API の設定を各種 AI チャットアプリケーションに素早くインポート +description: LFAPI の設定を各種 AI チャットアプリケーションに素早くインポート --- import { Callout } from 'fumadocs-ui/components/callout'; -New API は、テストや日常使用のために、さまざまな AI チャットアプリケーションへの迅速な設定インポートをサポートしています。 +LFAPI は、テストや日常使用のために、さまざまな AI チャットアプリケーションへの迅速な設定インポートをサポートしています。 ## ワンクリック設定インポート @@ -33,7 +33,7 @@ New API は、テストや日常使用のために、さまざまな AI チャ - Lobe Chat は現在 New API からのワンクリックインポートをサポートしておらず、手動設定が必要です + Lobe Chat は現在 LFAPI からのワンクリックインポートをサポートしておらず、手動設定が必要です ### 設定手順 @@ -44,13 +44,13 @@ New API は、テストや日常使用のために、さまざまな AI チャ ![Lobe Chat 設定入力 - ステップ1](/assets/guide/lobechat-1.png) -- **API アドレス**:New API プラットフォームの Base URL を入力 -- **API Key**:New API で作成したトークンを入力 +- **API アドレス**:LFAPI プラットフォームの Base URL を入力 +- **API Key**:LFAPI で作成したトークンを入力 ![Lobe Chat 設定入力 - ステップ2](/assets/guide/lobechat-2.png) 4. 「保存」をクリックして設定を完了 -5. モデル選択で New API が提供するすべての利用可能なモデルが表示されます +5. モデル選択で LFAPI が提供するすべての利用可能なモデルが表示されます ## AI as Workspace @@ -59,19 +59,19 @@ New API は、テストや日常使用のために、さまざまな AI チャ - New API からのワンクリックインポートをサポート + LFAPI からのワンクリックインポートをサポート ### 使用方法 -1. New API トークンページで「AI as Workspace にインポート」をクリック +1. LFAPI トークンページで「AI as Workspace にインポート」をクリック 2. システムが自動的に AI as Workspace にリダイレクトし、設定を入力 3. 設定情報を確認して使用開始 ## AMA 問天 - AMA 問天は New API が提供するインテリジェント Q&A アシスタントで、マルチターン会話と複雑な質問への回答をサポートしています。ユーザーは自然言語で AMA 問天と交流し、知識、技術サポート、またはビジネスコンサルティングを取得して、コミュニケーション効率と体験を向上させることができます。 + AMA 問天は LFAPI が提供するインテリジェント Q&A アシスタントで、マルチターン会話と複雑な質問への回答をサポートしています。ユーザーは自然言語で AMA 問天と交流し、知識、技術サポート、またはビジネスコンサルティングを取得して、コミュニケーション効率と体験を向上させることができます。 @@ -81,7 +81,7 @@ New API は、テストや日常使用のために、さまざまな AI チャ ### 使用方法 1. アプリストアから AMA 問天アプリをダウンロードしてインストール -2. New API トークンページで「AMA 問天にインポート」をクリック +2. LFAPI トークンページで「AMA 問天にインポート」をクリック 3. アプリが自動的に開いて設定を完了 4. AI アシスタントとの会話を開始 @@ -98,7 +98,7 @@ New API は、テストや日常使用のために、さまざまな AI チャ ### 使用方法 1. アプリストアから OpenCat アプリをダウンロードしてインストール -2. New API トークンページで「OpenCat にインポート」をクリック +2. LFAPI トークンページで「OpenCat にインポート」をクリック 3. アプリが自動的に開いて設定を完了 4. OpenCat でモデルを選択して会話を開始 @@ -108,7 +108,7 @@ New API は、テストや日常使用のために、さまざまな AI チャ ### 設定情報 -New API から以下の情報を取得: +LFAPI から以下の情報を取得: | 設定項目 | 説明 | 取得場所 | | --- | --- | --- | @@ -124,5 +124,5 @@ New API から以下の情報を取得: 4. 設定を保存して使用開始 - OpenAI API をサポートするほとんどのアプリケーションは、カスタム API アドレスを入力することで New API と統合できます + OpenAI API をサポートするほとんどのアプリケーションは、カスタム API アドレスを入力することで LFAPI と統合できます diff --git a/content/docs/ja/guide/wiki/basic-concepts/analytics-setup.mdx b/content/docs/ja/guide/wiki/basic-concepts/analytics-setup.mdx index bc60f19..aedc6e6 100644 --- a/content/docs/ja/guide/wiki/basic-concepts/analytics-setup.mdx +++ b/content/docs/ja/guide/wiki/basic-concepts/analytics-setup.mdx @@ -4,7 +4,7 @@ title: 分析ツール設定ガイド ### 概要 -New API は現在、一般的な分析プラットフォームとの統合をサポートしており、ユーザー行動とウェブサイトのパフォーマンスを追跡するのに役立ちます。 +LFAPI は現在、一般的な分析プラットフォームとの統合をサポートしており、ユーザー行動とウェブサイトのパフォーマンスを追跡するのに役立ちます。 - **Google Analytics 4 (GA4)**:Googleの分析プラットフォームの最新バージョン - **Umami Analytics**:プライバシーを重視したオープンソースの分析ツール diff --git a/content/docs/ja/guide/wiki/basic-concepts/performance-analysis.mdx b/content/docs/ja/guide/wiki/basic-concepts/performance-analysis.mdx index eb2df00..6f39130 100644 --- a/content/docs/ja/guide/wiki/basic-concepts/performance-analysis.mdx +++ b/content/docs/ja/guide/wiki/basic-concepts/performance-analysis.mdx @@ -4,7 +4,7 @@ title: パフォーマンス分析設定ガイド ### 概要 -New API は、2種類のパフォーマンス分析機能を提供します。 +LFAPI は、2種類のパフォーマンス分析機能を提供します。 - **pprof(組み込み)**:一時的な診断とオフライン分析に適しています - **Pyroscope(オプション)**:オンラインでの継続的な分析とフレームグラフの可視化に適しています diff --git a/content/docs/ja/guide/wiki/basic-concepts/project-introduction.mdx b/content/docs/ja/guide/wiki/basic-concepts/project-introduction.mdx index 5d44e3d..60b775f 100644 --- a/content/docs/ja/guide/wiki/basic-concepts/project-introduction.mdx +++ b/content/docs/ja/guide/wiki/basic-concepts/project-introduction.mdx @@ -1,6 +1,6 @@ --- title: プロジェクト紹介 -description: New API について理解する:合法的な認証シナリオ向けの AI API ゲートウェイおよび使用量管理システム +description: LFAPI について理解する:合法的な認証シナリオ向けの AI API ゲートウェイおよび使用量管理システム --- import { Callout } from 'fumadocs-ui/components/callout'; @@ -8,15 +8,15 @@ import { Callout } from 'fumadocs-ui/components/callout';
New API Logo -

New API

+

LFAPI

NewAPI Trendshift Badge - New API は、OpenAI、Anthropic、Google Gemini、DeepSeek、Midjourney、Suno + LFAPI は、OpenAI、Anthropic、Google Gemini、DeepSeek、Midjourney、Suno など、30 以上のモデルサービスを含む、世界の主要な AI サービスプロバイダーとシームレスに統合されています。 @@ -44,17 +44,17 @@ New API は、合法的な認証シナリオ向けの AI API ゲートウェイ ## ライセンス -New API は **GNU AGPLv3** オープンソースライセンスを採用しており、オープンソースライセンスを遵守すれば無料で利用できます。 +LFAPI は **GNU AGPLv3** オープンソースライセンスを採用しており、オープンソースライセンスを遵守すれば無料で利用できます。 - New API を使用する前に、[プロジェクト + LFAPI を使用する前に、[プロジェクト LICENSE](https://github.com/QuantumNous/new-api/blob/main/LICENSE) の完全なライセンス条項をお読みください。 ### オープンソースライセンス(AGPLv3) -AGPLv3 の下では、New API を自由に利用、変更、および配布できます。 +AGPLv3 の下では、LFAPI を自由に利用、変更、および配布できます。 **中核的な条項:** @@ -68,7 +68,7 @@ AGPLv3 の下では、New API を自由に利用、変更、および配布で ### 貢献 -New API へのすべての貢献は AGPLv3 の下でライセンスされます。 +LFAPI へのすべての貢献は AGPLv3 の下でライセンスされます。 **貢献を提出することにより、以下に同意したものとみなされます。** @@ -82,7 +82,7 @@ New API へのすべての貢献は AGPLv3 の下でライセンスされます ## 免責事項 -New API を使用する前に、これらの重要な声明を読み、理解してください。 +LFAPI を使用する前に、これらの重要な声明を読み、理解してください。 **1. 合法的な認証と準拠した使用** @@ -109,6 +109,6 @@ New API へのすべての貢献は AGPLv3 の下でライセンスされます ユーザーは、自身の司法管轄区および使用シナリオに適用されるすべての地方、国内、および国際的な法令を遵守する責任があります。 - New API + LFAPI は「現状有姿」で提供され、いかなる種類の保証も提供しません。開発者およびメンテナーは、本ソフトウェアの使用によって生じるいかなる損害または法的問題に対しても責任を負いません。 \ No newline at end of file diff --git a/content/docs/ja/guide/wiki/changelog.mdx b/content/docs/ja/guide/wiki/changelog.mdx index ecc625d..377f173 100644 --- a/content/docs/ja/guide/wiki/changelog.mdx +++ b/content/docs/ja/guide/wiki/changelog.mdx @@ -4,1344 +4,1808 @@ title: 変更履歴 import { Callout } from 'fumadocs-ui/components/callout'; - + すべての履歴バージョンを表示するには、[GitHub Releases ページ](https://github.com/QuantumNous/new-api/releases)をご覧ください。このページは定期的に最新の更新情報を取得します。 -## v1.0.0-rc.5 - - - -### Highlights -The default dashboard has been refreshed with built-in model performance metrics and a clearer health view. This release also adds DeepChat deeplink support and fixes several default UI, wallet, playground, and ratio-display regressions. - -### New Features -- Dashboard overview has been redesigned and now includes model performance metrics with a clearer performance health panel. -- DeepChat deeplinks are now supported, making it easier to open supported chat links directly in DeepChat. (#4668) - -### Bug Fixes -- Top-up gateway availability now uses the correct top-up configuration, so wallet payment options are shown accurately. (#4599) -- Group ratio displays now honor configured group-to-group ratio settings. (#4772) -- Default UI dropdown menu items now trigger their selection handlers reliably. (#4787) -- The playground now handles legacy classic-format messages without failing. (#4650) -- Default frontend pages now avoid several v1 UI regressions, including stray empty description areas and layout issues. (#4802) +## v1.0.0-rc.28 -### Improvements -- The default web UI and charts now follow shared theme presets for more consistent colors, controls, and corner radii. -- Docker images now include project and third-party license notices for easier compliance review. (#4739) - ---- + -### What's Changed -* feat: add DeepChat deeplink support by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4668 -* fix: exclude THIRD-PARTY-LICENSES.md from .dockerignore for Docker build by @yeying-xingchen in https://github.com/QuantumNous/new-api/pull/4739 -* fix(wallet): read topup gateway flags from topupInfo instead of status by @ImogeneOctaviap794 in https://github.com/QuantumNous/new-api/pull/4599 -* fix(web/default): use getUserGroups for ratio display to respect GroupGroupRatio by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4772 -* fix(default): support DropdownMenuItem onSelect by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4787 -* fix(web/default): guard playground messages against legacy classic shape by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4650 -* fix: defaut ui triage by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4802 - -### New Contributors -* @yeying-xingchen made their first contribution in https://github.com/QuantumNous/new-api/pull/4739 -* @lihan3238 made their first contribution in https://github.com/QuantumNous/new-api/pull/4787 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.4...v1.0.0-rc.5 - -**Download Resources** - - - - - ---- - -## v1.0.0-rc.4 - - - -### Highlights -OpenAI image editing is more reliable: image edit requests now preserve reference image data and related metadata, preventing edits from losing their intended context (#4646). This release also adds model performance badges and fixes several billing and dropdown UI issues. +### ⚠️ IMPORTANT WARNING / 重要警告 ⚠️ + +自 v1.0.0-rc.27 起引入的实验性插件系统仍处于测试阶段,并涉及较大的架构调整。如遇问题,请及时反馈。从 v1.0.0-rc.26 或更早版本升级的用户,**必须重新配置所有视频模型价格**;已在 v1.0.0-rc.27 完成配置的用户无需重复操作。**不推荐在生产环境中使用本版本。** + +The experimental plugin system introduced in v1.0.0-rc.27 remains under testing and includes major architectural changes. Please report any issues promptly. Users upgrading from v1.0.0-rc.26 or earlier **must reconfigure all video model prices**; users who already completed this step on v1.0.0-rc.27 do not need to repeat it. **This release is not recommended for production use.** ### New Features -- Added model performance badges to model lists so users can compare available models at a glance. -### Bug Fixes -- Fixed OpenAI image edit requests so reference images and related edit metadata are preserved when forwarded (#4646). -- Fixed billing settings forms so top-up and billing configuration inputs behave more reliably. -- Fixed dropdown and select controls so options render and select correctly after the UI component update (#4655). +* Added optional RSA-OAEP encryption for password-login request bodies. Enable it with `PASSWORD_LOGIN_ENCRYPTION_ENABLED=true`; this is an additional safeguard and does not replace HTTPS (#6743). +* Added AQBot to the default list of third-party chat options (#7079). +* Added support for channel model-mapping aliases and model-name case variants in task-plugin routing, including consistent upstream mapping and billing resolution. -### Breaking Changes -- Integrations should now read the top-up link from the top-up information API instead of the status API. +### Improvements -### Gallery -| Model availability rankings | Refreshed pricing and settings UI | -| --- | --- | -|| | +* Built-in task plugins now update with new-api releases; Marketplace actions no longer create unintended persistent overrides. +* Improved concurrent-write reliability for the default SQLite configuration by enabling WAL, a 30-second busy timeout, and immediate transactions (#7030). +* Improved PostgreSQL transaction-pooler compatibility by disabling prepared statements, and fixed JSON-column handling under the simple protocol. + +### Bug Fixes + +* Prevented unbounded memory retention and potential OOM when an upstream does not return response headers (#6949). `RELAY_RESPONSE_HEADER_TIMEOUT` now defaults to `1800` seconds; set it to `0` to restore the previous unbounded behavior. Streaming after response headers arrive is unaffected. +* Fixed the frontend display of the "subscription-only" preference when no valid subscription exists (#7086). +* Fixed setup-status detection after a page reload (#6968). +* Changed relay request-validation failures to return HTTP 400 (#6774). +* Fixed Ali image models to honor the requested response format (#7048). --- ### What's Changed -* fix: preserve OpenAI image edit reference fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4646 -* fix: migrate select to Base UI items API by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4655 +* fix(relay): 请求参数校验错误返回 HTTP 400 by @ax2 in https://github.com/QuantumNous/new-api/pull/6774 +* fix(web): recheck setup status after page reload by @seefs001 in https://github.com/QuantumNous/new-api/pull/6968 +* feat(chat): 将 AQBot 加入第三方聊天默认列表 by @Licoy in https://github.com/QuantumNous/new-api/pull/7079 +* fix(ali): honor image response format (#5513) by @PuppetKL in https://github.com/QuantumNous/new-api/pull/7048 +* fix(subscription): 无有效订阅时前端如实显示「仅用订阅」偏好 (#6222) by @CR-Yun in https://github.com/QuantumNous/new-api/pull/7086 +* fix(sqlite): enable WAL + working busy timeout + _txlock=immediate to stop concurrent write lockouts by @LinineTy in https://github.com/QuantumNous/new-api/pull/7030 +* fix(relay): bound the wait for upstream response headers (fixes unbounded heap growth → OOM) by @txgo in https://github.com/QuantumNous/new-api/pull/6949 +### New Contributors +* @ax2 made their first contribution in https://github.com/QuantumNous/new-api/pull/6774 +* @PuppetKL made their first contribution in https://github.com/QuantumNous/new-api/pull/7048 +* @CR-Yun made their first contribution in https://github.com/QuantumNous/new-api/pull/7086 +* @LinineTy made their first contribution in https://github.com/QuantumNous/new-api/pull/7030 +* @txgo made their first contribution in https://github.com/QuantumNous/new-api/pull/6949 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.3...v1.0.0-rc.4 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.27...v1.0.0-rc.28 **Download Resources** --- -## v1.0.0-rc.3 +## v1.0.0-rc.27 - + -### Highlights -v1.0.0-rc.3 adds a new model rankings experience with model availability and performance visibility, making it easier to compare reliability before choosing routes or providers. This release also refreshes key default UI areas, including pricing/settings pages and table controls. - -### New Features -- Added a model rankings dashboard with real availability and performance data so users can compare model reliability at a glance (#4633). - -### Improvements -- Refreshed the default web UI with Base UI components, updated theme presets, and cleaner table toolbar interactions (#4633). -- Reorganized the system settings pricing interface to make pricing configuration easier to scan and manage. - -### Bug Fixes -- Fixed channel table sorting so server-side sorting now works correctly (#4600). -- Corrected subscription payment information display in the default UI. - -### Gallery -| Model availability rankings | Refreshed pricing and settings UI | -| --- | --- | -|| | - ---- - -### What's Changed -* feat(web/default): unified UI overhaul — Base UI migration, theme presets, rankings dashboard, and table toolbar refactor by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4633 -* feat: collect model performance metrics by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4635 -* fix: enable channel table server-side sorting by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4600 - - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.2...v1.0.0-rc.3 +### ⚠️ IMPORTANT WARNING / 重要警告 ⚠️ -**Download Resources** +最新版已增加插件系统测试版本,系统架构大改,有bug请立即报告。对于切换到这个版本的用户,需要重新配置所有的视频模型价格!**不推荐生产环境使用**。 - +The latest version introduces an experimental plugin system with major architectural changes. Please report any bugs immediately. Users switching to this version MUST reconfigure all video model prices! **Not recommended for production environments.** - +### New Features +* Replaced built-in task adaptors with a new sandboxed JavaScript plugin system (#7076) +* Added support for GLM channel `/v1/responses` endpoint (#7050) +* Enabled passthrough of Claude Messages and OpenAI Responses for Ollama (#7051) + +### Bug Fixes +* Fixed an issue in billing where a constantly true time rule expression caused multipliers to apply all day (#6934) +* Restored the ability for administrators to unbind built-in providers in the web interface (#6987) +* Fixed docker development build context by adding relaykit go.mod (#7072) + +### Other +* Updated PR templates and removed the PR Check workflow (#7053) --- -## v1.0.0-rc.2 +### What's Changed +* feat: glm chanel /v1/responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/7050 +* feat(ollama): passthrough Claude Messages and OpenAI Responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/7051 +* docs: update PR template and remove PR Check workflow by @seefs001 in https://github.com/QuantumNous/new-api/pull/7053 +* fix(web): restore admin unbinding for built-in providers by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6987 +* fix(billing): 修复时间规则区间恒真表达式导致倍率全天生效 by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6934 +* fix(docker): add relaykit go.mod to dev build context by @VladKabiak in https://github.com/QuantumNous/new-api/pull/7072 +* feat(task): replace built-in task adaptors with a sandboxed JS plugin system by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/7076 - +### New Contributors +* @VladKabiak made their first contribution in https://github.com/QuantumNous/new-api/pull/7072 -### Highlights -v1.0.0-rc.2 officially opens up switching between the new and classic frontend, making it easier to test the redesigned UI, compare workflows, and fall back instantly when needed. This RC also refreshes key console pages and fixes several web issues affecting email binding, tiered pricing, API key grouping, and custom Vertex base URLs. - -### New Features -- Added a built-in switch between the new and classic frontend, so teams can adopt the redesigned UI gradually without losing access to the previous workflow. - -### Improvements -- Refreshed the web console with redesigned pricing pages, more consistent dashboard and log controls, better table and analytics filtering, smoother navigation, and improved mobile responsiveness. - -### Bug Fixes -- Fixed email binding in the redesigned frontend so the action completes correctly (#4551). -- Fixed tiered pricing number input behavior so editing values is more reliable (#4536). -- Fixed tiered pricing display issues that could cause values and labels to appear incorrectly (#4530). -- Fixed API key grouping in the default web theme so keys appear under the expected groups (#4548). -- Fixed custom Vertex base URLs so requests route correctly when a gateway prefix is configured (#4200). - -### Gallery - -| Refreshed pricing page | Dashboard and analytics controls | -| --- | --- | -| Refreshed pricing page | Dashboard and analytics controls | - -### What's Changed -* fix: 修复默认主题 API 密钥分组行为 by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4548 -* bug fix: 新版前端email绑定错误 by @SHLE1 in https://github.com/QuantumNous/new-api/pull/4551 -* fix: improve tiered pricing number input editing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4536 -* fix(vertex): honor custom base_url as gateway prefix by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4200 -* fix(web): 修复阶梯计费 Base64 解码失败与标签不匹配导致的显示错误 by @wans10 in https://github.com/QuantumNous/new-api/pull/4530 - -### New Contributors -* @SHLE1 made their first contribution in https://github.com/QuantumNous/new-api/pull/4551 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.1...v1.0.0-rc.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.26...v1.0.0-rc.27 **Download Resources** --- -## v1.0.0-rc.1 +## v1.0.0-rc.26 - + -v1.0.0-rc.1 is the first release candidate for the upcoming 1.0 release, and its main focus is the brand-new v1 frontend rebuilt from the ground up for a cleaner, faster, and more capable admin experience. - -This RC refreshes the interface across navigation, configuration, analytics, and logs, making day-to-day management much easier as the project moves toward the final v1 launch. - - - -### New Features -- Introduced the rebuilt v1 frontend with modern navigation and layouts, a visual channel editor for parameter overrides, and easier access to system settings and theme switching (#4265). - -### Improvements -- Upgraded dashboards and charts with clearer model analytics, better data sorting, and more informative tooltips for easier usage analysis. -- Improved usage logs with log type indicators, usernames and avatars, and cleaner tables that make activity easier to scan. -- Polished shared layouts, tables, and form styling across the default frontend for a cleaner and more consistent experience. - -### Bug Fixes -- Fixed themes loaded from the database so the selected frontend theme now applies correctly at runtime (#4518). -- Fixed forwarded requests so empty reasoning fields are preserved instead of being silently dropped (#4520). -- Fixed required-field markers so forms more consistently show which inputs are mandatory (#4533). - ---- - -### What's Changed -* 🚀 feat: launch v1.0 — next-generation frontend built from the ground up by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4265 -* fix: 修复 Message.ReasoningContent/Reasoning 空思考内容在请求转发时被静默丢弃 by @heimoshuiyu in https://github.com/QuantumNous/new-api/pull/4520 -* fix: sync theme to runtime when loaded from database by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4518 - -### New Contributors -* @Micah-Zheng made their first contribution in https://github.com/QuantumNous/new-api/pull/4518 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-alpha.1...v1.0.0-rc.1 +### ⚠️ Important Warnings / 重要警告 -**Download Resources** +* **Database Migration Risk / 数据库迁移风险**: This release changes quota fields to support values larger than 4,294,967,295. Upon startup, the system will check database table structures. Startup may fail if the column types are incorrect. In such cases, manual modification is required (instructions will be in the error message; consult AI if unsure how to proceed). +本次更新修复了额度上限问题,支持大于 42 亿的数值。启动时系统会检测数据库表结构,如果不匹配可能会导致启动失败。遇到此问题需根据错误提示手动修改数据库表结构(如不熟悉数据库操作,可寻求 AI 辅助)。 - +* **Deprecation of 32-bit Systems / 废弃 32 位系统支持**: Support for 32-bit operating systems has been temporarily deprecated to accommodate these changes. +为配合上述更改,我们已“临时”废弃对 32 位操作系统架构的支持。 - +### New Features +* Added support for `thinking_token_budget` in vLLM (#7027) + +### Bug Fixes +* Prevented browser auto-fill from incorrectly populating credentials in usage log filters (#6966) + +### Improvements +* Removed 32-bit integer limitations to allow quota values to exceed 4294 million (#7025) --- -## v1.0.0-alpha.1 - License boundary release +### What's Changed +* refactor(web): prevent credential autofill in usage log filters by @seefs001 in https://github.com/QuantumNous/new-api/pull/6966 +* refactor: deprecate int32 by @seefs001 in https://github.com/QuantumNous/new-api/pull/7025 +* feat: vllm thinking_token_budget by @seefs001 in https://github.com/QuantumNous/new-api/pull/7027 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.2...v1.0.0-alpha.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.25...v1.0.0-rc.26 **Download Resources** --- -## v0.13.2 +## v1.0.0-rc.25 - + + +### Highlights +Channel testing and gateway administration gain safer workflows, user/group-aware overrides, and request-field passthrough controls. This release also improves provider compatibility, Responses API accounting, and recharge/quota reliability. ### New Features -- Model sync now detects upstream models more accurately, refreshes pricing automatically from provider pricing endpoints, shows removed upstream models in the fetch-models dialog, and keeps pricing available during sync delays (#4452). -- User records now include account creation and last login timestamps for easier auditing and administration (#4450). -- Added configurable model matching for Ali native Messages APIs, making it easier to route requests to compatible upstream models (#4468). +- Channel testing has been expanded with safer test workflows, including an auto-disable-only mode for failing channels (#6917). +- Parameter overrides can now use requester user and group context for more flexible routing and policy rules (#6534). +- Gateway channels now let administrators choose which request fields are passed through to upstream providers (#6847). ### Bug Fixes -- Tool calls now accept raw JSON argument payloads, improving compatibility with providers that return tool arguments as JSON objects (#4469). -- Configuration updates now handle JSON object fields more reliably, preventing some settings from being saved incorrectly. +- Ali provider requests now avoid sending unset `top_p` values and correctly handle mapped image models (#6772). +- Qwen TTS models are now classified correctly so they route through the proper text-to-speech path (#6711). +- Responses API handling now preserves penalties and prompt-cache settings while settling cached-token usage accurately (#6892). +- Ollama and Claude conversions now preserve reasoning/tool-call context while avoiding invalid empty tool payloads (#6862). +- Gemini-style model listing requests to `/v1/models` now return correctly (#6199). +- Recharge, refund, and quota updates are now settled more consistently, including concurrent and uncreditable order cases (#6845). +- Web forms now keep fetched model selections in sync, and the mobile sidebar behaves correctly (#6841). +- Usage logs now record reasoning effort consistently (#6641). +- Request length validation is now enforced consistently on the backend (#5548). ### Improvements -- Retry messages now clearly explain when a channel was skipped because affinity is disabled (#4453). +- Billing logs now highlight the conditional multiplier that matched a request, making cost calculations easier to audit (#6561). +- Large server and model-list searches in the web UI are debounced, improving responsiveness on big installations (#6727). +- The playground now displays streamed output with smoother word fade-ins and a more robust editor experience (#6895). +- Custom channel route editing now has a more capable advanced editor (#6865). --- ### What's Changed -* fix(channel): load model mapping during upstream model checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4437 -* feat: sync upstream pricing from pricing endpoint by @seefs001 in https://github.com/QuantumNous/new-api/pull/4452 -* fix: clarify affinity disabled channel retry message by @seefs001 in https://github.com/QuantumNous/new-api/pull/4453 -* feat: configure native messages model matching for ali by @seefs001 in https://github.com/QuantumNous/new-api/pull/4468 -* fix: support raw JSON response tool arguments by @seefs001 in https://github.com/QuantumNous/new-api/pull/4469 -* feat: show removed upstream models in fetch models modal by @seefs001 in https://github.com/QuantumNous/new-api/pull/4470 -* 增加用户创建时间和最后登录时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4450 +* fix(ali): stop injecting top_p into requests that omit it by @ENCHIGO in https://github.com/QuantumNous/new-api/pull/6674 +* fix(channels): classify Qwen TTS models correctly by @seefs001 in https://github.com/QuantumNous/new-api/pull/6711 +* feat(channels): add auto-disable-only channel test mode by @seefs001 in https://github.com/QuantumNous/new-api/pull/6728 +* perf(web): debounce server and large-list searches by @seefs001 in https://github.com/QuantumNous/new-api/pull/6727 +* fix: record reasoning effort consistently in usage logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/6641 +* feat(relay): expose user and group context to parameter override by @seefs001 in https://github.com/QuantumNous/new-api/pull/6534 +* fix(ollama): preserve reasoning and tool-call context by @seefs001 in https://github.com/QuantumNous/new-api/pull/6605 +* fix: backend length validation by @seefs001 in https://github.com/QuantumNous/new-api/pull/5548 +* feat(billing): highlight matched conditional multipliers in logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/6561 +* fix(web): require confirmation before rotating access token by @seefs001 in https://github.com/QuantumNous/new-api/pull/6749 +* fix(relay): preserve presence/frequency penalty in Responses conversion by @UzkiS in https://github.com/QuantumNous/new-api/pull/6654 +* refactor(responses): remove compact model suffix handling by @seefs001 in https://github.com/QuantumNous/new-api/pull/6770 +* fix: mobile sidebar by @seefs001 in https://github.com/QuantumNous/new-api/pull/6760 +* fix(web): refresh Turnstile token after login attempt by @thiswod in https://github.com/QuantumNous/new-api/pull/6764 +* fix: 修复 Gemini 风格 /v1/models 列表请求 by @zhibisora in https://github.com/QuantumNous/new-api/pull/6199 +* fix(billing): 异步任务退款时同步减少 used_quota by @wans10 in https://github.com/QuantumNous/new-api/pull/6795 +* fix(web): keep fetched model selection in sync with form by @enwaiax in https://github.com/QuantumNous/new-api/pull/6841 +* fix(ali): 修复阿里图片模型映射后仍使用原始模型名判断协议的问题 by @wxwwt in https://github.com/QuantumNous/new-api/pull/6772 +* chore(deps): bump builder-util-runtime and electron-builder in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6467 +* chore(deps): bump dompurify from 3.4.11 to 3.4.13 in /web by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6735 +* chore(deps-dev): bump fast-uri from 3.1.4 to 3.1.5 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6846 +* chore(deps-dev): bump tar from 7.5.16 to 7.5.22 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6468 +* fix(topup): reject uncreditable orders before payment by @enwaiax in https://github.com/QuantumNous/new-api/pull/6845 +* chore(deps-dev): bump js-yaml from 4.3.0 to 4.3.1 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6704 +* chore(deps-dev): bump electron from 39.8.5 to 39.8.10 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6705 +* fix: prompt_cache_key openai chat -> openai responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/6861 +* feat: add field passthrough controls for gateway channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/6847 +* fix(relay): stop injecting empty tools into Claude requests that omit them by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6837 +* fix(oauth): align custom binding response fields in frontend by @seefs001 in https://github.com/QuantumNous/new-api/pull/6818 +* test(web): standardize frontend tests on Vitest by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6569 +* fix(relaykit): preserve parameterless tools in Claude conversion by @seefs001 in https://github.com/QuantumNous/new-api/pull/6862 +* refactor: advanced custom channel route editor by @seefs001 in https://github.com/QuantumNous/new-api/pull/6865 +* feat: channel test by @seefs001 in https://github.com/QuantumNous/new-api/pull/6917 +* feat(web): fade in streamed response words and harden playground editor by @RedwindA in https://github.com/QuantumNous/new-api/pull/6895 +* fix: settle Responses cached token usage by @LiaoQi98 in https://github.com/QuantumNous/new-api/pull/6892 +### New Contributors +* @ENCHIGO made their first contribution in https://github.com/QuantumNous/new-api/pull/6674 +* @UzkiS made their first contribution in https://github.com/QuantumNous/new-api/pull/6654 +* @thiswod made their first contribution in https://github.com/QuantumNous/new-api/pull/6764 +* @zhibisora made their first contribution in https://github.com/QuantumNous/new-api/pull/6199 +* @enwaiax made their first contribution in https://github.com/QuantumNous/new-api/pull/6841 +* @zcxads666 made their first contribution in https://github.com/QuantumNous/new-api/pull/6837 +* @LiaoQi98 made their first contribution in https://github.com/QuantumNous/new-api/pull/6892 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1-patch.1...v0.13.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.24...v1.0.0-rc.25 **Download Resources** --- -## v0.13.1-patch.1 +## v1.0.0-rc.24 - + -### Highlights -This patch adds support for using `len` in tier conditions and the LLM prompt helper, making it easier to build rules based on prompt length. +### Release: v1.0.0-rc.24 -### New Features -- Added a `len` variable to tier conditions and the LLM prompt helper so you can define rules based on prompt length. +#### New Features + +* Added user critical rate limiting middleware for access token and affiliate transfer routes to enhance security and stability. +* Refined the categorization of fetched models in channels to improve organization and retrieval. + +#### Bug Fixes + +* Resolved an issue with redemption code quotas experiencing precision loss, ensuring accurate credit allocation (#6685). +* Addressed an HTTP/2 transport issue where upstream stream resets could prevent transparent retries by correctly setting `Request.GetBody` in the relay (#6249). +* Ensured Claude and Gemini endpoints are tested with the native request format for improved compatibility. + +#### Other + +* Enhanced the release synchronization workflow with optional file syncing capabilities in CI. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1...v0.13.1-patch.1 +### What's Changed +* fix(relay): set Request.GetBody so the HTTP/2 transport can transparently retry after an upstream stream reset by @BlockchainHe in https://github.com/QuantumNous/new-api/pull/6249 +* feat(channels): refine fetched model categorization by @seefs001 in https://github.com/QuantumNous/new-api/pull/6632 +* fix: test Claude/Gemini endpoints with native request format by @seefs001 in https://github.com/QuantumNous/new-api/pull/6698 +* fix: 修复兑换码额度精度损失(#6680) by @lihu-001 in https://github.com/QuantumNous/new-api/pull/6685 + +### New Contributors +* @BlockchainHe made their first contribution in https://github.com/QuantumNous/new-api/pull/6249 +* @lihu-001 made their first contribution in https://github.com/QuantumNous/new-api/pull/6685 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.23...v1.0.0-rc.24 **Download Resources** --- -## v0.13.1 +## v1.0.0-rc.23 - + -#### New Features -* Added support for handling DeepSeek V4 reasoning suffixes (#4428) +Highlights: This release expands provider and channel compatibility with New API channels, DeepSeek Responses API support, zstd request decompression, and automatic group routing. It also improves operational accuracy with stream visibility in logs, more reliable tiered-retry billing, and upstream Bedrock cancellation when clients disconnect. -#### Bug Fixes -* Fixed an issue where tiered billing models were excluded from the model listing (#4431) +### New Features +- Added New API channel support with Gemini-to-OpenAI streaming conversion, Advanced Custom Responses Compact handling, and multipart image edit support (#6559). +- Added DeepSeek Responses API support (#6562). +- Added automatic group selection for request routing (#6590). +- Added per-channel HTTP transport controls so administrators can tune connection behavior per channel. +- Added support for zstd-compressed requests (#6545). +- Log owners can now see whether a request was streamed (#6558). + +### Bug Fixes +- Qwen `thinking_budget` is now preserved when requests are relayed (#5836). +- Tiered retry billing now settles usage against the final selected group, including group-switch retries (#6570). +- Bedrock requests are now cancelled when clients disconnect, reducing wasted upstream work (#6589). + +### Improvements +- Public header navigation links now use a consistent font size (#6557). --- ### What's Changed -* fix: include tiered billing models in model listing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4431 -* feat: implement DeepSeek V4 reasoning suffix handling and tests by @HynoR in https://github.com/QuantumNous/new-api/pull/4428 +* refactor: extract protocol conversion layer into standalone relaykit module by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6369 +* fix: 慢查询/错误 SQL 日志参数化 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6493 +* feat(oidc): 支持自定义 OIDC 登录显示名称 by @mrchi in https://github.com/QuantumNous/new-api/pull/6012 +* fix: preserve Qwen thinking_budget passthrough by @wxwwt in https://github.com/QuantumNous/new-api/pull/5836 +* feat: support zstd request decompression by @seefs001 in https://github.com/QuantumNous/new-api/pull/6545 +* feat(logs): expose stream status to log owners by @seefs001 in https://github.com/QuantumNous/new-api/pull/6558 +* fix(relay): preserve multipart image edits for New API channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/6559 +* fix(oauth): stop treating a foreign window.opener as a bind flow by @neimaravila in https://github.com/QuantumNous/new-api/pull/6425 +* style: unify public header nav link font size to 14px (text-sm) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6557 +* feat: deepseek responses api by @seefs001 in https://github.com/QuantumNous/new-api/pull/6562 +* fix(billing): settle tiered retries with final group by @faithleysath in https://github.com/QuantumNous/new-api/pull/6518 +* fix(billing): harden tiered retry group-switch billing (follow-up to #6518) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6570 +* fix(aws): cancel Bedrock requests on client disconnect by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6589 +* Feat/auto group by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6590 +### New Contributors +* @mrchi made their first contribution in https://github.com/QuantumNous/new-api/pull/6012 +* @neimaravila made their first contribution in https://github.com/QuantumNous/new-api/pull/6425 +* @faithleysath made their first contribution in https://github.com/QuantumNous/new-api/pull/6518 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.0...v0.13.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.22...v1.0.0-rc.23 **Download Resources** --- -## v0.13.0 +## v1.0.0-rc.22 - + -### Highlights -This release introduces powerful support for `expr` expression-based tiered billing, allowing administrators to configure complex, dynamic pricing rules. A simple use case for this feature is a pricing expression like `tokens <= 128000 ? 0.002 : 0.004`, where the system will automatically apply a lower rate for usage under 128K tokens and a higher rate for anything above that threshold. +This release expands channel and model administration with upstream model discovery, new Gemini image models, configurable billing options, and Sub2API support. It also improves reliability across streaming, pricing, refunds, user management, and admin UI workflows. ### New Features -* Introduces support for evaluating `expr` expressions in the billing system, enabling dynamic tiered pricing with configurable presets (#4409). -* Adds a UI for tool pricing settings and improves tool call quota calculations. -* Displays the user ID in admin top-up bills for easier tracking (#4349). -* Adds a 'last used time' column to the tokens table (#4372). -* Relaxes token key column length requirements to support the migration of longer legacy token keys (#4401). +- Channels can now discover available models from advanced custom and Codex-compatible upstreams (#6184). +- Added support for the latest Gemini image GA models (#6371). +- Added configurable tool pricing with Sub2API channel support and alpha-search billing. +- OpenAI Realtime GA models are now available with improved routing compatibility (#6032). ### Bug Fixes -* Ensures the pricing calculation logic only applies the N ratio to image models (#4412). -* Preserves text tool surcharges properly during tiered billing settlement (#4162). -* Corrects the completion ratio configuration for the `gpt-5.5` model (#4414). -* Fixes the model pricing UI to use the correct display type (#4426). -* Resolves runtime crashes and edge cases within the tiered pricing editor and settlement logic. -* Updates channel testing to properly support and evaluate tiered billing models. +- Responses-to-Chat streaming no longer emits duplicate tool calls (#6225). +- Creating a model with an existing name no longer clears its saved pricing (#6365). +- The unset-price models view now lists only models available from the selected channels (#6126). +- Very large user quota values are now handled without overflow (#6134). +- User list sorting now works correctly with paginated results (#6194). +- MiniMax models are now correctly associated with the MiniMax vendor (#6164). +- Playground model group selectors now handle auto-group listings and long options correctly (#6163). +- Task refunds are no longer duplicated during concurrent status updates (#6074). +- Top-up amount fields can now be cleared completely while editing (#6473). +- Channel inline priority updates are more reliable (#6415). ### Improvements -* Adds preset pricing tiers for Doubao Seed 1.8 to enhance discount calculations. -* Replaces Card components with divs to improve overall layout consistency. -* Updates internal billing calculations to use quota per unit for better accuracy. +- Admin JSON editing now has a more consistent experience and avoids UI issues that could hide content (#6421). +- Users page search is debounced to reduce unnecessary requests and improve responsiveness (#6474). +- Proxy-backed channel requests are more compatible and stable (#6157). +- Upstream error logs now provide more useful fallback details when providers return unclear errors (#6431). --- ### What's Changed -* fix(channel-test): support tiered billing model tests by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4145 -* 在管理员充值账单中显示用户 ID by @uskyu in https://github.com/QuantumNous/new-api/pull/4349 -* 增加令牌最后使用时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4372 -* chore(deps): bump github.com/jackc/pgx/v5 from 5.9.0 to 5.9.2 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4397 -* chore(deps-dev): bump @xmldom/xmldom from 0.8.12 to 0.8.13 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4399 -* Relax token key column length for legacy migration compatibility by @XiaoAI1024 in https://github.com/QuantumNous/new-api/pull/4401 -* fix(billing): preserve text tool surcharges in tiered settlement by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4162 -* feat: support for tiered billing expressions in the billing system by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4409 -* fix(image): only price image model use N ratio by @xyfacai in https://github.com/QuantumNous/new-api/pull/4412 -* fix: correct gpt-5.5 completion ratio by @jingx8885 in https://github.com/QuantumNous/new-api/pull/4414 -* fix: model pricing use correct display type by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4426 +* fix: list only channel models in unset price models tab by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6126 +* fix: purge authentication data on hard user deletion by @seefs001 in https://github.com/QuantumNous/new-api/pull/6168 +* fix(users): prevent large quota values from overflowing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6134 +* fix: infer MiniMax vendor for MiniMax models by @fux-dev in https://github.com/QuantumNous/new-api/pull/6164 +* fix: add server-side sorting to user list, prevent client-side sort on paged data by @DawnMoon1542 in https://github.com/QuantumNous/new-api/pull/6194 +* fix(data-table): update table body immediately when toggling columns by @DawnMoon1542 in https://github.com/QuantumNous/new-api/pull/6253 +* fix: prevent duplicate tool calls in Responses-to-Chat streaming by @nikuleo in https://github.com/QuantumNous/new-api/pull/6225 +* feat(channel): support Codex upstream model discovery by @seefs001 in https://github.com/QuantumNous/new-api/pull/6184 +* feat: support upstream model fetch for advanced custom channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/5971 +* refactor(auth): replace dashboard sessions with stateless tokens and session control by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6329 +* fix: 中转 gpt-realtime 系列 GA 模型时不再发送 realtime beta 标识 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6032 +* fix(playground): prevent model group option stretching by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6120 +* perf(data-table): optimize action column width allocation by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6135 +* fix(web): show used quota for unlimited API keys by @RedwindA in https://github.com/QuantumNous/new-api/pull/6224 +* fix(channel): improve proxy client compatibility and cache lifecycle by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/6157 +* fix(playground): resolve auto group model listing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6163 +* fix: prevent duplicate suno task refunds via cas status update by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6074 +* chore(github): migrate issue templates to required forms by @seefs001 in https://github.com/QuantumNous/new-api/pull/6452 +* fix(github): restore issue form visibility by @seefs001 in https://github.com/QuantumNous/new-api/pull/6454 +* fix: log response body when parsed upstream error message is empty by @bigsongeth in https://github.com/QuantumNous/new-api/pull/6431 +* fix: prevent model create from wiping existing pricing for same name by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6365 +* fix(web/channel): stabilize inline priority updates by @RedwindA in https://github.com/QuantumNous/new-api/pull/6415 +* perf(json-editor): unify admin JSON editing experience by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6421 +* feat: add gemini-3-pro-image and gemini-3.1-flash-image GA models by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6371 +* feat: support Tencent TokenHub API key via OpenAI-compatible protocol by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6232 +* fix: allow topup amount input to be fully cleared by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6473 +* fix: debounce users page search input by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6474 ### New Contributors -* @uskyu made their first contribution in https://github.com/QuantumNous/new-api/pull/4349 -* @XiaoAI1024 made their first contribution in https://github.com/QuantumNous/new-api/pull/4401 -* @jingx8885 made their first contribution in https://github.com/QuantumNous/new-api/pull/4414 +* @fux-dev made their first contribution in https://github.com/QuantumNous/new-api/pull/6164 +* @DawnMoon1542 made their first contribution in https://github.com/QuantumNous/new-api/pull/6194 +* @nikuleo made their first contribution in https://github.com/QuantumNous/new-api/pull/6225 +* @bigsongeth made their first contribution in https://github.com/QuantumNous/new-api/pull/6431 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.15...v0.13.0 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.21...v1.0.0-rc.22 **Download Resources** --- -## v0.12.15 +## v1.0.0-rc.21 - + -#### New Features -- Added Waffo Pay support for account top-ups and payment workflows (#4089). +### Highlights +The headline change is GPT-5.6 cache write billing: OpenAI `cache_write_tokens` are now charged at the cache-creation rate, with accounting safeguards around cached and uncached prompt tokens. This release also improves pricing workflows, Playground controls, channel table usability, and billing/logging reliability. -#### Bug Fixes -- Fixed a recharge card issue in the top-up flow that could break parts of the card interface (#4388). +### New Features +- Added GPT-5.6 cache write billing support, charging OpenAI `cache_write_tokens` at the cache-creation rate while keeping cached and uncached prompt token accounting consistent. +- Pricing pages now support group-aware dynamic calculations and avoid showing sample-only special groups (#5906). +- Model pricing settings now include an Unset Price Models tab plus status and sync filters, making it easier to find and configure models without prices (#6124). +- The Playground now includes request parameter panels for chat and generation tuning, so users can adjust model behavior directly in the UI (#6044). +- Channel lists now support manual column resizing and keep resized tables filling the available width (#5948). +- Logs now show stream timing metrics and task detail views for clearer troubleshooting. +- Added enhanced text protocol conversion and advanced custom routing capabilities for more flexible channel routing (#5825). -#### Improvements -- Added support for Gemini's `IncludeServerSideToolInvocations` setting in `ToolConfig`, improving compatibility with newer Gemini tool-calling behavior (#4311). -- Improved Codex channel reliability and usability by refreshing credentials for auto-disabled channels, using streaming for automatic tests, and refining the usage modal (#4324). +### Bug Fixes +- Browser translation can no longer corrupt React-rendered pages (#5963). +- Custom model names that differ only by case can now be added consistently, including from multi-select controls (#6061). +- Billing now handles quota pre-consumption and image-stream disconnect edge cases more accurately. +- Subscription reset handling is more reliable under concurrent updates (#6057). +- Codex response passthrough fields now sync correctly (#6018). +- Playground model selector lists now stay synchronized after model changes. +- Custom home iframes can trigger top navigation after a user action as intended (#5955). +- Restored paste behavior for default channel connection settings. + +### Improvements +- Upstream price sync tables in model pricing now load and render more efficiently (#6092). +- Refined table badges, pricing layouts, sync dialogs, and default theme styling for a cleaner admin UI. +- Font assets now resolve correctly across workspace layouts. --- ### What's Changed -* fix(gemini): add IncludeServerSideToolInvocations field to ToolConfig by @KoellM in https://github.com/QuantumNous/new-api/pull/4311 -* rafactor: payment by @seefs001 in https://github.com/QuantumNous/new-api/pull/4089 -* fix(topup): import missing Tag in recharge card by @gaoren002 in https://github.com/QuantumNous/new-api/pull/4388 -* chore: refine codex usage modal layout by @seefs001 in https://github.com/QuantumNous/new-api/pull/4386 -* fix: use stream for codex auto test by @seefs001 in https://github.com/QuantumNous/new-api/pull/4325 -* fix: refresh codex credentials for auto-disabled channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/4324 -* fix: require proper verification for passkey changes by @seefs001 in https://github.com/QuantumNous/new-api/pull/4393 +* fix(web): prevent browser translation from mutating React roots by @cat0825 in https://github.com/QuantumNous/new-api/pull/5963 +* feat(web): 支持渠道列表手动调整列宽 by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/5948 +* fix(web): let channel table fill available width by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/6031 +* chore: remove dead files resurrected by v1.0 launch commit by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6041 +* fix: use GORM v2 row locking for subscription resets by @seefs001 in https://github.com/QuantumNous/new-api/pull/6057 +* feat(playground): add playground parameter settings panel by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6044 +* fix: allow adding model names that differ only by case in multi-select by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6061 +* fix: remove sample special usable groups leaking into pricing page by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5906 +* perf(model-pricing): optimize upstream price sync tables by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6092 +* fix(web): allow user-activated top navigation for custom home iframe by @Heykode in https://github.com/QuantumNous/new-api/pull/5955 +* chore(deps): bump golang.org/x/crypto from 0.51.0 to 0.52.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6096 +* fix: sync codex responses passthrough fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/6018 +* feat: enhance text protocol conversion and advanced custom routing by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5825 +* feat: add unset price models tab to model pricing settings by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6124 ### New Contributors -* @KoellM made their first contribution in https://github.com/QuantumNous/new-api/pull/4311 -* @gaoren002 made their first contribution in https://github.com/QuantumNous/new-api/pull/4388 +* @cat0825 made their first contribution in https://github.com/QuantumNous/new-api/pull/5963 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.14...v0.12.15 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.20...v1.0.0-rc.21 **Download Resources** --- -## v0.12.14 +## v1.0.0-rc.20 - + -### Improvements -- Improved user-visible management and top-up logs with a cleaner display, preserved row expansion, and clearer handling of legacy records. +### Highlights +This release adds GPT-5.6 pricing support and stale instance cleanup tools for administrators. It also fixes several quota and pricing edge cases, including wallet reward transfers and decimal ratio input. + +### New Features +- Added token pricing support for GPT-5.6 models. +- Added system-info actions for cleaning up stale instances. (#5953) + +### Bug Fixes +- Wallet reward transfers now respect the configured quota unit instead of using an incorrect fixed unit. (#5808) +- Group ratio fields now allow decimal values such as `0.05` to be typed normally. (#5995) +- Tiered pricing now uses a default token estimate during pre-consumption, improving quota calculation for affected pricing rules. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.13...v0.12.14 +### What's Changed +* fix: 分组倍率 Ratio 输入框保留小数中间态,修复无法输入 0.05 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5995 +* feat(system-info): add stale instance cleanup actions by @seefs001 in https://github.com/QuantumNous/new-api/pull/5953 +* fix(wallet): honor configured quota units for reward transfers by @A-Words in https://github.com/QuantumNous/new-api/pull/5808 + +### New Contributors +* @A-Words made their first contribution in https://github.com/QuantumNous/new-api/pull/5808 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.19-i18nfix.2...v1.0.0-rc.20 **Download Resources** --- -## v0.12.13 - - - -This release improves admin workflows for top-ups and makes account status changes apply more consistently. - -#### Bug Fixes -- Disabling a user now takes effect immediately instead of being delayed by stale cached account data. - -#### Improvements -- Top-up logs now include additional admin-only audit details to make review and troubleshooting easier. - -#### Breaking Changes -- Top-up searches are now limited to a maximum 30-day date range to keep queries responsive and reliable. +## v1.0.0-rc.19-i18nfix.2 ---- + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.12...v0.12.13 +Fix i18n error **Download Resources** --- -## v0.12.12 +## v1.0.0-rc.19 - - -This release adds support for Claude Opus 4.7, expanding the set of available models in the API. + ### New Features -- Added support for the Claude Opus 4.7 model, making it available through the API alongside existing model options (#4293). +- Admins can now reset subscription quotas and review quota saturation events for auditing, making quota management easier (#5952). +- Added Traditional Chinese (zh-TW) localization for the new UI (#5942). + +### Bug Fixes +- Fixed billing quota calculations for very large quotas so limits are applied correctly. --- ### What's Changed -* feat: support claude-opus-4-7 by @prnake in https://github.com/QuantumNous/new-api/pull/4293 -* chore(deps): bump github.com/jackc/pgx/v5 from 5.7.1 to 5.9.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4294 +* Localized new ui to zh-TW by @MeowTechOpenSource in https://github.com/QuantumNous/new-api/pull/5942 +* feat(subscription): add admin quota reset actions by @seefs001 in https://github.com/QuantumNous/new-api/pull/5952 +### New Contributors +* @MeowTechOpenSource made their first contribution in https://github.com/QuantumNous/new-api/pull/5942 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.11...v0.12.12 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.18...v1.0.0-rc.19 **Download Resources** --- -## v0.12.11 +## v1.0.0-rc.18 - + -#### New Features -* Added payment method tracking and validation for top-ups. +Billing quota handling is more reliable in this release, with stricter quantity validation to prevent incorrect quota calculations. -#### Bug Fixes -* Improved handling of empty string content during OpenAI to Claude message conversion. +**Bug Fixes** +- Improved billing quantity validation so quota and usage calculations handle invalid or extreme values more reliably. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.10...v0.12.11 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.17...v1.0.0-rc.18 **Download Resources** --- -## v0.12.10 +## v1.0.0-rc.17 + + - +### Highlights +This release improves channel testing, redemption management, theme handling, and several web UI flows. It also fixes usage reporting, classic web builds, streaming disconnect handling, and quota/video duration calculations. ### New Features -- Added passthrough support for Claude `cache_control` and `speed` options, giving you more control over request behavior when using Claude models (#4247). +- Redemption management now supports status filtering and cleanup actions for easier administration. +- Group ratio editing is easier to use, with clearer visibility behavior and more robust JSON input handling. +- Redeem failures now show clearer messages so users can understand what went wrong. ### Bug Fixes -- Fixed OpenAI Responses API compatibility issues when `instructions` contain structured content instead of plain text (#4260). +- AI Elements integrations now read nested usage data so token usage is reported correctly. +- Classic web builds now complete successfully again (#5892). +- Field passthrough controls now appear correctly for Codex channels (#5902). +- Home iframes now stay in sync with the selected theme and language (#5917). +- Custom HTML rendered inside Shadow DOM now follows light and dark mode changes correctly (#5890). +- Logged-in users are now redirected away from the sign-up page consistently with the login and classic themes (#5910). +- Streaming responses no longer continue writing after the client disconnects (#5710). +- Quota settlement and Ali video duration handling were corrected after task balance settlement (#5923). +- Build date generation no longer fails when DNS lookup fails (#5945). ### Improvements -- Improved Stripe payment processing to better handle asynchronous webhook events, making delayed payment confirmations more reliable. -- Quota adjustment logs now record the acting admin username, making administrative audit trails easier to follow (#4216). +- Channel and model test dialogs are more compact and easier to operate (#5886). +- Dynamic pricing details now use styling consistent with the log details dialog (#5905). +- Mobile user cards have been refined for better readability and layout. +- Legacy top-up warning text is clearer and easier to understand (#5855). --- ### What's Changed -* fix: use json.RawMessage for Instructions field in OpenAIResponsesResponse by @linbin524 in https://github.com/QuantumNous/new-api/pull/4260 -* fix(channel): 修复多密钥管理弹窗索引显示,将索引值调整为从1开始 by @wans10 in https://github.com/QuantumNous/new-api/pull/4231 -* feat(claude): add cache_control and speed passthrough controls by @seefs001 in https://github.com/QuantumNous/new-api/pull/4247 -* feat: include admin username in quota adjustment logs by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4216 +* chore(deps-dev): bump tmp from 0.2.5 to 0.2.7 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5147 +* chore(web): update default web dependencies by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5884 +* perf(web): refine channel test dialog interactions by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5886 +* fix(classic): fix classic web build failures by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5892 +* fix(channels): show field passthrough controls for Codex by @seefs001 in https://github.com/QuantumNous/new-api/pull/5902 +* fix: align dynamic pricing style with log details dialog sections by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5905 +* fix: 任务差额结算后 quota 和阿里视频时长优化 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5923 +* fix(web): sync home iframe theme and language by @guoruqiang in https://github.com/QuantumNous/new-api/pull/5917 +* fix(web): 修复 Shadow DOM 隔离渲染下自定义 HTML 深浅色失效的问题 by @olwater in https://github.com/QuantumNous/new-api/pull/5890 +* fix(web): 注册页补充已登录重定向守卫,与登录页 / classic 主题保持一致 (#5908) by @Heykode in https://github.com/QuantumNous/new-api/pull/5910 +* feat: optimize legacy top-up warning banner copy (#5851) by @Gravirei in https://github.com/QuantumNous/new-api/pull/5855 +* fix: avoid stale stream writes after client disconnect by @seefs001 in https://github.com/QuantumNous/new-api/pull/5710 +* Fix/build date dns error by @seefs001 in https://github.com/QuantumNous/new-api/pull/5945 ### New Contributors -* @linbin524 made their first contribution in https://github.com/QuantumNous/new-api/pull/4260 +* @Heykode made their first contribution in https://github.com/QuantumNous/new-api/pull/5910 +* @Gravirei made their first contribution in https://github.com/QuantumNous/new-api/pull/5855 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.9...v0.12.10 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.16...v1.0.0-rc.17 **Download Resources** --- -## v0.12.9 +## v1.0.0-rc.16 - + -### New Features -- Subscription cards now show the next quota reset time, making it easier to see when usage limits will refresh (#4181). +**Highlights** -### Bug Fixes -- Claude requests are now more reliable by avoiding incompatible Top P settings when needed. -- Azure channels now correctly support the `/v1/responses/compact` route (#4149). -- Editing values in GroupTable no longer forces the cursor to jump to the end on each keystroke (#4208). +This release expands model and media compatibility with Responses/Chat interoperability, Doubao Seedance 2.0 updates, and Wan2.7 i2v media mapping. It also improves the web experience around Playground rendering, channel management, page state retention, and graceful restarts. -### Improvements -- Dashboard charts have been refined to present rankings and chart sizing more clearly for easier monitoring. +**New Features** + +- Added Responses API to Chat compatibility so providers and clients using either format can interoperate more reliably (#5787). +- Expanded Doubao Seedance 2.0 support with material asset APIs, resolution-aware billing, video-input billing, 4K billing, and new request options (#5824). +- Added Wan2.7 image-to-video media mapping support (#4984). +- Added graceful shutdown support to reduce interrupted replies and avoid losing cached panel data during restarts (#4258). +- Improved channel management with a clearer layout and a more capable advanced custom route editor. + +**Bug Fixes** + +- Fixed the model pricing tiered expression editor so it refreshes correctly when switching between models (#5752). +- Fixed async task usage logs so usage is attributed to the node that initiated the task (#5684). +- Fixed theme switching so the app returns to the home page instead of landing on a 404 route (#5612). +- Fixed custom HTML and Markdown rendering so content keeps consistent styling and spacing, including isolated HTML views (#5795). +- Fixed page state resets when switching tabs within the same route, including dashboard time ranges (#5796). +- Fixed channel status filters so they persist across page navigation (#5863). +- Fixed Ollama non-streaming tool call handling (#5865). +- Fixed Waffo product information and webhook behavior (#5704). + +**Improvements** + +- Improved the Playground chat experience and Markdown rendering (#5217). +- Streamlined table actions and destructive confirmation dialogs for a cleaner web UI (#5645). +- Improved ClickHouse log filtering for LIKE queries. +- Optimized the frontend build pipeline for faster web builds (#5786). --- ### What's Changed -* fix(GroupTable): prevent Input cursor jumping to end on keystroke by @Xbang0222 in https://github.com/QuantumNous/new-api/pull/4208 -* feat: display next quota reset time in subscription card by @ShengM97 in https://github.com/QuantumNous/new-api/pull/4181 -* fix: add Azure channel support for /v1/responses/compact URL routing by @woan1136 in https://github.com/QuantumNous/new-api/pull/4149 +* chore(deps): bump dompurify from 3.4.5 to 3.4.11 in /web/default by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5718 +* fix(ci): install classic workspace dependencies for releases by @seefs001 in https://github.com/QuantumNous/new-api/pull/5719 +* perf(web): streamline table actions and destructive dialogs by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5645 +* fix: add Waffo goods info and webhook SDK update by @zhongyuanzhao-alt in https://github.com/QuantumNous/new-api/pull/5704 +* fix(model-pricing): refresh tiered expression editor when switching models by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5752 +* fix: sync bun.lock with dompurify 3.4.11 to restore frozen-lockfile build by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5738 +* fix(theme): 切换前端主题后重置到首页,避免路由 404 by @zhangzhichaolove in https://github.com/QuantumNous/new-api/pull/5612 +* fix(task): attribute async task usage log to the initiating node by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5684 +* feat: add Casbin admin permissions by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5755 +* feat(playground): improve Playground chat experience and Markdown rendering by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5217 +* fix(auth): align password validation copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5759 +* fix(web): render custom HTML and Markdown content consistently by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5760 +* fix(openai): harden Chat-to-Responses compatibility by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5772 +* feat: support Responses to Chat by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5787 +* feat: doubao-seedance-2-0-260128支持按分辨率区分计费 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5300 +* feat: support doubao seedance 2.0 safety_identifier/priority and 4k billing by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5824 +* fix(web): 修复自定义 HTML 样式被过滤及排版间距异常的问题 by @olwater in https://github.com/QuantumNous/new-api/pull/5795 +* feat: support Wan2.7 i2v media mapping by @wxwwt in https://github.com/QuantumNous/new-api/pull/4984 +* perf(web): optimize web Rsbuild and Tailwind build pipeline by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5786 +* fix(makefile): run only default web dev server from dev-web by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5794 +* fix(web): inject app styles into isolated HTML by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5860 +* fix: preserve route state when switching same-route tabs (dashboard time range resets) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5796 +* 支持服务优雅关闭,避免重启回复中断和面板缓存数据丢失 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4258 +* fix: only treat 401 as session expiry in default theme auth guard by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5872 +* fix: persist channel status filter across page navigation by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5863 +* chore(deps): bump golang.org/x/net from 0.50.0 to 0.55.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5862 +* chore(deps): bump golang.org/x/image from 0.38.0 to 0.41.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5873 +* fix: handle ollama non-stream tool calls by @stevenjoezhang in https://github.com/QuantumNous/new-api/pull/5865 ### New Contributors -* @Xbang0222 made their first contribution in https://github.com/QuantumNous/new-api/pull/4208 -* @ShengM97 made their first contribution in https://github.com/QuantumNous/new-api/pull/4181 -* @woan1136 made their first contribution in https://github.com/QuantumNous/new-api/pull/4149 +* @zhangzhichaolove made their first contribution in https://github.com/QuantumNous/new-api/pull/5612 +* @olwater made their first contribution in https://github.com/QuantumNous/new-api/pull/5795 +* @wxwwt made their first contribution in https://github.com/QuantumNous/new-api/pull/4984 +* @stevenjoezhang made their first contribution in https://github.com/QuantumNous/new-api/pull/5865 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.8...v0.12.9 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.15...v1.0.0-rc.16 **Download Resources** --- -## v0.12.8 +## v1.0.0-rc.15 - + -#### Bug Fixes -* Correctly report the stream status in error logs instead of defaulting to false (#4195). +### Highlights +This release adds several operations-focused controls, including passive channel monitoring, ClickHouse-backed log storage, system task execution, and instance visibility. It also improves frontend reliability and polish across usage logs, markdown rendering, channel selection, and optional wallet UI behavior. + +### New Features +- Added passive channel monitoring mode for checking channel health without actively disrupting traffic (#5592). +- Added support for storing logs in ClickHouse for deployments that need scalable log storage and querying (#5663). +- Added a system task runner with persistent cleanup progress tracking for long-running maintenance jobs (#5680). +- Added a system instance information panel to make deployment/node status easier to inspect (#5716). +- Added a user token limit configuration section in system settings (#5678). +- Added channel testing controls for environment selection and asynchronous polling delay configuration. +- Default node names now fall back to the machine hostname when `NODE_NAME` is not set (#5659). + +### Bug Fixes +- Usage logs now show provider icons correctly for CN models (#5631). +- Corrected the Stepfun provider display name (#5636). +- Fixed SMTP compatibility with STARTTLS mode and NTLM authentication (#5426). +- Fixed classic theme build failures related to timezone date handling (#5676). +- Improved markdown rendering and expanded syntax support in the web UI (#5689). +- Fixed channel card selection state so the UI stays in sync with the selected channel (#5700). +- Hid the wallet entry from the profile dropdown when the wallet module is disabled (#5708). + +### Improvements +- Simplified log cleanup behavior as part of the new ClickHouse logging and system task maintenance flow. --- ### What's Changed -* fix: isStream status in error logs instead of hardcoded false by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4195 -* chore(deps): bump axios from 1.13.5 to 1.15.0 in /web by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4201 +* fix(usage-logs): show provider icons for CN models (align with classic frontend) by @DeliciousBuding in https://github.com/QuantumNous/new-api/pull/5631 +* fix: StepFun -> Stepfun by @seefs001 in https://github.com/QuantumNous/new-api/pull/5636 +* feat: add passive channel monitoring mode by @exherb in https://github.com/QuantumNous/new-api/pull/5592 +* feat: default node name to hostname when NODE_NAME unset by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5659 +* feat: support ClickHouse log database by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5663 +* fix: support SMTP STARTTLS mode and NTLM auth by @bensonfx in https://github.com/QuantumNous/new-api/pull/5426 +* chore(deps): bump github.com/ClickHouse/ch-go from 0.58.2 to 0.65.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5664 +* fix: date-fns-tz classic theme build error by @seefs001 in https://github.com/QuantumNous/new-api/pull/5676 +* feat: add system task runner by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5680 +* feat: add system instance info panel by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5716 +* fix(web): replace default markdown renderer and expand syntax support by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5689 +* fix(web): sync channel card selection state by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5700 +* fix(web): hide wallet entry in profile dropdown when wallet module disabled by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5708 +* feat(system-settings): add user token limit configuration section by @RedwindA in https://github.com/QuantumNous/new-api/pull/5678 +### New Contributors +* @DeliciousBuding made their first contribution in https://github.com/QuantumNous/new-api/pull/5631 +* @exherb made their first contribution in https://github.com/QuantumNous/new-api/pull/5592 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.7...v0.12.8 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.14...v1.0.0-rc.15 **Download Resources** --- -## v0.12.7 +## v1.0.0-rc.14 - + +### Highlights +This release adds a new dashboard traffic flow Sankey chart for visualizing token routing and flow patterns, with interactive highlighting, persistent filters, and limits to keep large graphs readable. Channel management also gets a faster, cleaner card layout for easier browsing and reduced UI re-rendering. + +### New Features +- Added a dashboard traffic flow Sankey chart to help admins understand token flow and routing behavior at a glance (#5465). +- Added routing reliability management for better control and visibility over routing behavior. + +### Gallery +| Traffic flow chart | Channel management card layout | +| --- | --- | +|QQ_1781965314487| | + +### Bug Fixes +- Fixed log filtering by login type in the new frontend (#5620). +- Fixed the billing history dialog layout so pagination no longer overlaps the list (#5627). +- Fixed model pricing entries that could not be deleted from the visual pricing list (#5628). +- Fixed repeated database column migrations running again after restarts (#5361, #5616). + ### Improvements -- Quota management now uses an amount-first input flow and applies changes atomically, making balance adjustments simpler and more reliable. -- Model pricing errors now use cleaner, role-aware messages so it is easier to understand and resolve failed pricing actions. +- Improved the channel management card layout and reduced unnecessary re-renders for a smoother experience. +- Simplified the model list for easier scanning and management. +- Updated channel icons for better visual consistency. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.6...v0.12.7 +### What's Changed +* fix: stop repeated allow_balance_pay column migration on restart by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5361 +* fix: stop repeated allow_wallet_overflow column migration on restart by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5616 +* feat(dashboard): 增加分流图,查看token流量。add traffic flow sankey chart by @Quaternijkon in https://github.com/QuantumNous/new-api/pull/5465 +* fix(log): 修复新前端日志按登录类型(type=7)筛选失效 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5620 +* fix(wallet): 修复计费历史弹窗分页与列表重叠 (#5624) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5627 +* fix(model-pricing): 修复模型定价列表项无法删除 (#5623) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5628 + +### New Contributors +* @Quaternijkon made their first contribution in https://github.com/QuantumNous/new-api/pull/5465 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.13...v1.0.0-rc.14 **Download Resources** --- -## v0.12.6 +## v1.0.0-rc.13 - + -#### New Features -* Fill in custom fields for vllm-omini (#4154) +v1.0.0-rc.13 focuses on a more polished and responsive frontend experience, especially around channel management and data-heavy pages. The channel page now supports a card-style display with improved mobile layouts, while logs, metrics, endpoint selection, date picking, and usage views received UI/UX refinements. -#### Bug Fixes -* Accept string usage values in Alibaba task polling (#4155) -* Use correct endpoint for coding plan image generation in Zhipu 4V (#4146) -* Prefer explicit pricing for compact models (#4156) -* Fix document rendering (#4153) +### New Features +- Added a reusable card/table view toggle for data tables, including a new card layout that makes channel and table-heavy pages easier to browse on different screen sizes. +- Added locale-aware number formatting so numeric values are displayed more naturally for users in different regions. -#### Improvements -* Refine PR template and add PR submission checks (#4076) +### Improvements +- Improved the channel page card layout with a clearer left/right structure and better mobile handling for small screens. +- Refined logs, metrics, endpoint selection, date picker, toolbar controls, and model drawer interfaces for a cleaner and more consistent UI/UX. +- Updated the Codex usage interface for better readability and usability (#5595). +- Reduced unnecessary data refreshes when returning focus to the browser window, improving frontend performance. +- Updated frontend branding copy and visual styling for a more consistent product experience. + +### Bug Fixes +- Improved timestamp precision in drawing-related displays by including milliseconds where needed. --- ### What's Changed -* fix(zhipu_4v): use correct endpoint for coding plan image generation by @NyaMisty in https://github.com/QuantumNous/new-api/pull/4146 -* fix: prefer explicit pricing for compact models by @seefs001 in https://github.com/QuantumNous/new-api/pull/4156 -* fix(ali): accept string usage values in task polling by @seefs001 in https://github.com/QuantumNous/new-api/pull/4155 -* feat: fill in some custom fields for vllm-omini by @seefs001 in https://github.com/QuantumNous/new-api/pull/4154 -* fix: document render by @seefs001 in https://github.com/QuantumNous/new-api/pull/4153 -* ci: refine PR template and add PR submission checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4076 +* chore(web): enforce default frontend oxc quality checks by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5585 +* refactor: codex usage ui by @seefs001 in https://github.com/QuantumNous/new-api/pull/5595 -### New Contributors -* @NyaMisty made their first contribution in https://github.com/QuantumNous/new-api/pull/4146 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.5...v0.12.6 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.12...v1.0.0-rc.13 **Download Resources** --- -## nightly-20260409-4d2993e +## v1.0.0-rc.12 - + -#### Highlights / 重点更新 - -This release introduces comprehensive support for **tiered billing (阶梯计费)**. It allows for flexible pricing expressions, detailed tool call quota calculations, and channel test support for tiered models. -本次发布重点增加了对**阶梯计费**的全面支持,支持灵活的计费表达式解析、自定义工具调用额度计算,并完善了UI配置项和渠道测试支持。 +Highlights: This release introduces AdvancedCustom channels for more flexible custom routing, makes channel batch testing easier to act on, and expands model marketplace performance monitoring with clearer success-rate and latency insights. -**Docker image:** `calciumion/new-api:nightly` -**Docker 镜像:** `calciumion/new-api:nightly` - - +### New Features +- Added AdvancedCustom channels with improved custom route matching for more flexible provider and model routing (#5590). +- Enhanced channel model batch testing with complete test execution, refreshed status updates, clearer results, failed-model deletion, and copying selected models (#5532). +- Expanded model marketplace performance monitoring with uptime calculations, recent success rates, success-rate grading, and compact latency/throughput displays. +- Added persistent table preferences so page size and column visibility are remembered across navigation and sessions (#5403). -#### New Features -* Added comprehensive support for tiered billing, including flexible expression evaluation, tool pricing settings UI, and channel test support (#4145). -* Added custom fields support for vllm-omini models (#4154). +### Bug Fixes +- Fixed tool-call handling so empty `arguments` values still preserve the expected `tool_use` block (#5543). +- Fixed the CC Switch model selector so model choices display and update correctly (#5515). +- Fixed several UI clipping and overflow issues in lists, data tables, usage log details, and custom home iframes (#5510, #5536, #5533, #5545). -#### Bug Fixes -* Fixed an issue in Alibaba Cloud task polling to correctly accept string usage values (#4155). -* Fixed the endpoint for Zhipu 4v coding plan image generation (#4146). -* Fixed pricing calculation to prefer explicit pricing for compact models (#4156). +### Improvements +- Improved payment and recharge UI with clearer payment method buttons, icons, and minimum top-up information. +- Improved subscription plan presentation with purchase descriptions, wallet overflow handling, and downgrade group support. +- Refined settings, overview setup guide, wallet/profile interactions, and log statistic card layouts for better readability. -#### Improvements -* Improved UI layout consistency by replacing card components with divs. -* Added nightly branch trigger to Docker image CI workflows. -* Refined PR templates and added PR submission checks (#4076). +### Breaking Changes +- Subscription product option and catalog endpoints now use `GET`, which may require client integrations to update their request method. +- Removed the “All” period option from rankings filters. --- ### What's Changed -* fix(zhipu_4v): use correct endpoint for coding plan image generation by @NyaMisty in https://github.com/QuantumNous/new-api/pull/4146 -* fix: prefer explicit pricing for compact models by @seefs001 in https://github.com/QuantumNous/new-api/pull/4156 -* fix(ali): accept string usage values in task polling by @seefs001 in https://github.com/QuantumNous/new-api/pull/4155 -* feat: fill in some custom fields for vllm-omini by @seefs001 in https://github.com/QuantumNous/new-api/pull/4154 -* fix: document render by @seefs001 in https://github.com/QuantumNous/new-api/pull/4153 -* ci: refine PR template and add PR submission checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4076 -* fix(channel-test): support tiered billing model tests by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4145 +* fix(web): prevent list cell text and badge overflow by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5510 +* fix(keys): refresh API key form options by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5512 +* fix: fix CC Switch model selector by @seefs001 in https://github.com/QuantumNous/new-api/pull/5515 +* fix(data-table): capture row selection state in memo comparison by @RedwindA in https://github.com/QuantumNous/new-api/pull/5524 +* fix(channels): refresh channel test dialog status by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5517 +* fix: restore custom home iframe viewport height by @seefs001 in https://github.com/QuantumNous/new-api/pull/5545 +* fix(web): prevent usage log details dialog from clipping bottom content by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5533 +* fix: aws ak/sk context management by @seefs001 in https://github.com/QuantumNous/new-api/pull/5547 +* test: clean up reward-hacking backend tests by @seefs001 in https://github.com/QuantumNous/new-api/pull/5563 +* fix: 工具调用 arguments 为空时保留 tool_use 块 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5543 +* fix: complete channel model batch testing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5532 +* feat: 持久化表格每页条数,跨导航/会话记忆 (#5377) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5403 +* fix(data-table): prevent component cell clipping by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5536 +* fix(oauth): clear bindings when hard deleting users by @seefs001 in https://github.com/QuantumNous/new-api/pull/5582 +* feat: advanced custom channel by @seefs001 in https://github.com/QuantumNous/new-api/pull/5590 -### New Contributors -* @NyaMisty made their first contribution in https://github.com/QuantumNous/new-api/pull/4146 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.5...nightly-20260409 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.11...v1.0.0-rc.12 **Download Resources** --- -## v0.12.5 +## v1.0.0-rc.11 - + -#### New Features -* Add support for Minimax image generation relay (#4103). - -#### Improvements -* Redesign group ratio rules with a collapsible layout for better usability. -* Enhance dashboard chart axes and sorting logic. -* Add a convenient copy button next to the API link in the dashboard info panel. - -#### Bug Fixes -* Resolve email delivery issues for Outlook and similar providers (#4112). - - - - ---- - -### What's Changed -* feat: 支持强制使用 AUTH LOGIN 以解决 outlook 等邮箱的发件问题 by @Hoshino-Yumetsuki in https://github.com/QuantumNous/new-api/pull/4112 -* feat(minimax): add image generation relay support by @forsakenyang in https://github.com/QuantumNous/new-api/pull/4103 - -### New Contributors -* @Hoshino-Yumetsuki made their first contribution in https://github.com/QuantumNous/new-api/pull/4112 -* @forsakenyang made their first contribution in https://github.com/QuantumNous/new-api/pull/4103 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.4...v0.12.5 +Highlights: This release adds support for Claude Opus 4.8, improves OpenAI image API compatibility, and makes the model pricing editor and data-heavy tables easier to use. It also fixes several UI, quota display, relay compatibility, and provider-specific issues. + +### New Features +- Added support for Claude Opus 4.8 (#5177). +- Added an option to control whether channel stickiness is cleared when a channel is disabled (#5306). +- Added a subscription balance redemption toggle for more flexible balance handling. +- Added user ID visibility on the profile page (#5317). +- Added support for streaming image relay and image edits in the OpenAI images API (#4608). + +### Bug Fixes +- Forms now focus the first validation error after submission, making errors easier to find and correct (#5163). +- Fixed custom cc-switch names being reset after losing focus (#5170). +- Fixed custom model icons not staying in sync in pricing views (#5224). +- Fixed advanced channel validation errors so they are shown without incorrectly expanding unrelated settings (#5239). +- Fixed quota and balance displays so currency conversion updates both the unit and the displayed value (#5296). +- Fixed Dify remote-image handling in file-based requests (#5134). +- Fixed model resolution for video generation task lookups (#5133). +- Improved Anthropic-compatible GLM relay behavior to avoid compatibility failures (#5307). +- Narrowed OpenAI o-series model adaptation to avoid applying it to unsupported models (#5293). +- Fixed multiselect popovers so they respect the active theme (#5328). +- Fixed Kimi K2.6 temperature normalization (#5390). +- Added support for filtering deleted users by status (#5464). +- Fixed deployment settings loading so they are only fetched on the deployments page (#5466). + +### Improvements +- Improved admin log and batch update performance for smoother large-scale operations (#5116). +- Improved the model pricing editor with clearer layouts, better draft saving, reusable JSON editing, and support for six-decimal pricing steps (#5275). +- Improved channel search responsiveness with debouncing and better IME input handling (#5393). +- Improved frontend table rendering, pinned columns, table layout, and badge display (#5405). +- Improved dialog sizing and footer layout across the frontend (#5346). +- Simplified public page hero copy for a cleaner landing page (#5339). + +--- + +### What's Changed +* fix(web): improve form validation error focus by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5163 +* feat(keys/cc-switch-dialog): 修复自定义cc-switch名称失焦后重置问题 by @GnezIew in https://github.com/QuantumNous/new-api/pull/5170 +* fix(model): correct idx_created_at_id index column order to (created_at, id) by @realRoc in https://github.com/QuantumNous/new-api/pull/5191 +* perf: order admin logs by created_at to use composite index by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5116 +* chore(deps): bump axios from 1.15.2 to 1.16.0 in /web/classic by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5185 +* feat: support claude-opus-4-8 by @hjxwz123 in https://github.com/QuantumNous/new-api/pull/5177 +* fix(pricing): sync custom model icons by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5224 +* chore(web): centralize shared frontend dependency versions by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5227 +* feat(web): support classic Rsbuild dev and build by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5232 +* fix(channels): reveal advanced validation errors by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5239 +* docs: refine issue templates by @seefs001 in https://github.com/QuantumNous/new-api/pull/5271 +* fix: 修复余额显示时只切换了单位未切换数值 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5296 +* fix(dify): initialize file pointer before remote-image field assignment by @Pluviobyte in https://github.com/QuantumNous/new-api/pull/5134 +* fix(distributor): resolve model for GET /v1/video/generations/:task_id by @Pluviobyte in https://github.com/QuantumNous/new-api/pull/5133 +* fix: add relay idle connection timeout config by @seefs001 in https://github.com/QuantumNous/new-api/pull/5309 +* feat: 支持配置渠道被禁用后是否清空渠道粘性 by @GuangYiDing in https://github.com/QuantumNous/new-api/pull/5306 +* fix(relay): fix Anthropic-compatible compatibility for GLM (avoid chunked encoding) by @Chen011214 in https://github.com/QuantumNous/new-api/pull/5307 +* fix: limit anonymous request body by @seefs001 in https://github.com/QuantumNous/new-api/pull/5244 +* fix(i18n): clarify thinking adapter copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5242 +* fix: 收窄 OpenAI o 系列模型适配范围 by @USER-HFC in https://github.com/QuantumNous/new-api/pull/5293 +* fix: reuse stream scanner buffer in channel handlers by @xujiantop-crypto in https://github.com/QuantumNous/new-api/pull/5225 +* feat(web): show user id on profile page by @P2K0 in https://github.com/QuantumNous/new-api/pull/5317 +* perf(model-pricing): improve model pricing editor UX by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5275 +* perf(web): simplify public page hero copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5339 +* perf(web): improve frontend dialog layout and sizing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5346 +* fix: respect theme for multiselect combobox popover by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5328 +* fix: align mobile usage log cost badge by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5161 +* fix: support six-decimal steps in model pricing editor by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5332 +* fix(openai): support streaming image relay and image edit for images API by @gaoren002 in https://github.com/QuantumNous/new-api/pull/4608 +* perf(web): add debounce channel search and skip during IME composition by @QAbot-zh in https://github.com/QuantumNous/new-api/pull/5393 +* fix: normalize kimi k2.6 temperature by @bensonfx in https://github.com/QuantumNous/new-api/pull/5390 +* perf(web): improve frontend table rendering and pinned columns/UI table by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5405 +* perf(data-table): improve data table layout and badge display by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5460 +* feat(audit): add localized security audit logs by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5462 +* chore: update Codex channel by @seefs001 in https://github.com/QuantumNous/new-api/pull/5461 +* fix: add deleted user status filter by @seefs001 in https://github.com/QuantumNous/new-api/pull/5464 +* fix: only fetch deployment settings on deployments page by @seefs001 in https://github.com/QuantumNous/new-api/pull/5466 + +### New Contributors +* @GnezIew made their first contribution in https://github.com/QuantumNous/new-api/pull/5170 +* @realRoc made their first contribution in https://github.com/QuantumNous/new-api/pull/5191 +* @hjxwz123 made their first contribution in https://github.com/QuantumNous/new-api/pull/5177 +* @Pluviobyte made their first contribution in https://github.com/QuantumNous/new-api/pull/5134 +* @GuangYiDing made their first contribution in https://github.com/QuantumNous/new-api/pull/5306 +* @Chen011214 made their first contribution in https://github.com/QuantumNous/new-api/pull/5307 +* @USER-HFC made their first contribution in https://github.com/QuantumNous/new-api/pull/5293 +* @xujiantop-crypto made their first contribution in https://github.com/QuantumNous/new-api/pull/5225 +* @P2K0 made their first contribution in https://github.com/QuantumNous/new-api/pull/5317 +* @bensonfx made their first contribution in https://github.com/QuantumNous/new-api/pull/5390 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.10...v1.0.0-rc.11 **Download Resources** --- -## v0.12.4 +## v1.0.0-rc.10 - + + +### Highlights +v1.0.0-rc.10 focuses on UI polish, relay reliability, and admin workflow fixes. It adds new theme options and subscription balance purchases while tightening logs, channel behavior, webhooks, payments, and provider tool-call handling. ### New Features -* Added an `IncludeModelName` option to channel affinity rules for per-model affinity tracking (#3488) -* Added an ErrorBoundary component to the web UI to prevent full-page crashes (#3350) -* Added support for `Duration` in `TaskSubmitReq` (#4068) -* Added admin user analytics to the dashboard +- New theme customization options add Anthropic and Simple Large presets, configurable serif typography, and an extra-large scaling option. +- Subscription billing now supports balance purchases. ### Bug Fixes -* Fixed pricing filtering based on usable groups (#4123) -* Fixed an issue where Claude streaming interruptions incorrectly overwrote usage data instead of preserving cache billing fields (#4128) -* Fixed an issue where the "do not retry after failure" configuration was incorrectly overwritten in memory (#4142) +- Automatically disabled channels are no longer selected for new requests, and channel actions no longer show duplicate notifications (#4983). +- Tool-call relays between Gemini and Claude are more reliable, including concurrent tool calls (#5095). +- Image relay requests now apply the requested quality setting correctly (#5103). +- Usage log filters now match exact values unless a wildcard is explicitly used, and very large upstream errors are shortened to keep logs usable (#5097). +- Webhook processing now completes more reliably (#5047). +- Waffo payment settings now save consistently and hide legacy options (#5110). +- System Settings now detects unsaved changes correctly and handles numeric inputs without invalid values. ### Improvements -* Added support for enabling error logging via environment variables (#4131) -* Wrapped scope tag labels with `t()` for better i18n support -* Fixed chart labels on the dashboard +- Large media relay requests now use less memory, improving stability under load. +- System Settings and channel creation/editing pages have clearer, more compact layouts with improved controls. +- Usage logs and the default web UI are easier to use on mobile and easier to scan, with better table spacing, badges, charts, and dark-mode readability. +- The homepage hero section has been refreshed with a cleaner two-column layout and updated copy. --- ### What's Changed -* feat: add IncludeModelName option to channel affinity rules by @clansty in https://github.com/QuantumNous/new-api/pull/3488 -* feat: add ErrorBoundary to prevent full-page crashes by @goodmorning10 in https://github.com/QuantumNous/new-api/pull/3350 -* fix: Claude 流式断流时不再整份覆盖 usage,保留 cache 计费字段 by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/4128 -* fix(pricing): add filtering for pricing based on usable groups by @bbbugg in https://github.com/QuantumNous/new-api/pull/4123 -* chore(deps): bump github.com/aws/aws-sdk-go-v2/service/bedrockruntime from 1.50.0 to 1.50.4 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4136 -* add 添加 启用错误日志记录到env配置中 by @binorxin in https://github.com/QuantumNous/new-api/pull/4131 -* Seedance support duration by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4068 -* fix: 修复 失败后不重试 配置项写到内存被覆盖 by @seefs001 in https://github.com/QuantumNous/new-api/pull/4142 +* 🐛 fix(channel): evict auto-disabled multi-key channels from cache by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4983 +* [BugFix] fix webhook process by @Hill-waffo in https://github.com/QuantumNous/new-api/pull/5047 +* fix(payment): hide classic Waffo Pancake settings by @seefs001 in https://github.com/QuantumNous/new-api/pull/5085 +* fix(relay): correct image quality parameter handling by @lanfunoe in https://github.com/QuantumNous/new-api/pull/5103 +* fix: truncate oversized upstream error logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/5083 +* fix: 移除 fcIdx -1 偏移,修复并发工具调用撞键问题 by @learner-i in https://github.com/QuantumNous/new-api/pull/5095 +* fix:gemini to claude tool_use err by @nekohy in https://github.com/QuantumNous/new-api/pull/5041 +* fix: handle paginated API key search response by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5014 +* fix: prevent duplicate channel action toasts by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5015 +* fix: consolidate Waffo payment settings save flow by @seefs001 in https://github.com/QuantumNous/new-api/pull/5110 +* fix: use actual user id for channel tests by @seefs001 in https://github.com/QuantumNous/new-api/pull/5109 +* fix: keep usage log filters exact unless wildcard is explicit by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5097 ### New Contributors -* @clansty made their first contribution in https://github.com/QuantumNous/new-api/pull/3488 -* @goodmorning10 made their first contribution in https://github.com/QuantumNous/new-api/pull/3350 -* @zuiho-kai made their first contribution in https://github.com/QuantumNous/new-api/pull/4128 -* @bbbugg made their first contribution in https://github.com/QuantumNous/new-api/pull/4123 +* @learner-i made their first contribution in https://github.com/QuantumNous/new-api/pull/5095 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.3...v0.12.4 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.8...v1.0.0-rc.10 **Download Resources** --- -## v0.12.3 +## v1.0.0-rc.8 - + -This is a small polish release focused on making configuration easier to navigate by simplifying the settings layout and consolidating model pricing controls. +#### Highlights +This release adds Waffo Pancake gateway support with admin catalog/product binding and focuses on polishing admin/API behavior. It also improves model metadata and pricing consistency, channel-test diagnostics, dashboard/reporting filters, and request-processing efficiency. -### Improvements -- Refined the settings interface with a unified model pricing view and a cleaner tab structure to make configuration easier to navigate. +#### New Features +- Added Waffo Pancake gateway support with admin catalog/product binding (#4935). + +#### Bug Fixes +- Dashboard content now follows configured visibility settings consistently (#4975). +- Performance metric summaries now include only active groups (#4976). +- Model pricing displays are now normalized to avoid inconsistent values (#4985). +- Model ownership metadata is now resolved from active channels for more accurate model listings (#4416). +- Default frontend links now point to the correct routes (#5016). +- Restored the previous usage-log filtering behavior to avoid regressions from the earlier filter change. + +#### Improvements +- Channel tests now show clearer failure details when checks fail (#4988). +- Reduced request-processing overhead to improve performance under load (#5009). --- ### What's Changed -* feat(token): add batch API for fetching token keys by @RedwindA in https://github.com/QuantumNous/new-api/pull/4114 +* fix: expose param override audits for sensitive message fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4974 +* fix: respect dashboard content visibility settings by @seefs001 in https://github.com/QuantumNous/new-api/pull/4975 +* fix: filter perf metrics summary by active groups by @seefs001 in https://github.com/QuantumNous/new-api/pull/4976 +* fix: improve channel test failure details UX by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4988 +* fix: normalize model pricing display drift by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4985 +* fix: resolve model owned_by from active channels by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4416 +* perf: optimize request metadata extraction and disabled field filtering by @seefs001 in https://github.com/QuantumNous/new-api/pull/5009 +* fix: update default frontend hardcoded route links by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5016 +* 修复 切换新版前端Turnstile 开启后注册页未显示验证的问题 by @JunXiaoRuo in https://github.com/QuantumNous/new-api/pull/5011 +* [Feature Request] Waffo Pancake gateway — full integration with subscription support + admin catalog binding flow by @Hill-waffo in https://github.com/QuantumNous/new-api/pull/4935 +* fix: enforce Waffo subscription compliance and product ID update by @seefs001 in https://github.com/QuantumNous/new-api/pull/5038 + +### New Contributors +* @JunXiaoRuo made their first contribution in https://github.com/QuantumNous/new-api/pull/5011 +* @Hill-waffo made their first contribution in https://github.com/QuantumNous/new-api/pull/4935 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.7...v1.0.0-rc.8 + +**Download Resources** + + + + + +--- +## v1.0.0-rc.7 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.2...v0.12.3 + + +#### New Features +- Added support for `request_header` key source (#4903). + +#### Bug Fixes +- Batch fixed multiple UI issues in the default web interface (#4880, #4893, #4817, #4877, #4898, #4876). +- Addressed an issue where channel remarks could not be cleared (#4886). +- Corrected the filtering behavior for usage logs (#4883). +- Fixed validation for unlimited API key quotas in the web interface (#4881). +- Enforced access control on header navigation for public modules (#4889). +- Applied group filters correctly to channel list queries (#4847, #4885). +- Fixed an ambiguity issue with column names during `PerfMetric` upserts (#4684). +- Added missing analytics placeholders to the default theme (#4928). +- Fixed forgot password form submission by properly typing the button (#4910). +- Normalized the layout of model detail tabs in the web interface (#4938). +- Fixed user creation and deletion handling in the management panel (#4818). +- Gated the sign-up link on the login page based on registration settings (#4871). +- Updated pagination button labels in the ModelCardGrid (#4675). +- Localized the reset password confirmation message (#4769). +- Made recharge preset selections visible in dark mode (#4897). +- Fixed an issue where the API info color dot showed the wrong color due to a semantic token mismatch (#4824). +- Corrected silent failures when saving API info with invalid colors (#4823). +- Used the correct `aff_code` field name in registration payloads (#4965). +- Made the faceted filter popover width adaptive in data tables (#4966). +- Resolved stale form linkage issues when submitting keys (#4967). + +#### Improvements +- Improved performance by avoiding eager formatting in debug log calls (#4929). + +--- + +### What's Changed +* fix: allow clearing channel remark by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4886 +* fix: correct usage logs filtering by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4883 +* fix(web): handle unlimited API key quota validation by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4881 +* fix: enforce header nav access control for public modules by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4889 +* fix: GetAllChannels ignores group filter parameter by @draftgo in https://github.com/QuantumNous/new-api/pull/4847 +* fix: qualify column names in PerfMetric upsert to avoid PG ambiguity by @SAY-5 in https://github.com/QuantumNous/new-api/pull/4684 +* fix: apply group filter to channel list queries by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4885 +* feat: support request_header key source by @seefs001 in https://github.com/QuantumNous/new-api/pull/4903 +* fix: 修复新 UI 语言与文案显示问题 by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/4876 +* fix: add umami & ga4 placeholder in index.html of default theme by @NitroRCr in https://github.com/QuantumNous/new-api/pull/4928 +* perf: avoid eager formatting in debug log calls by @seefs001 in https://github.com/QuantumNous/new-api/pull/4929 +* fix: add type="submit" to forgot password form button by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4910 +* fix(web): normalize model detail tabs layout by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4938 +* fix(user): fix user create and delete handling in management panel by @bugmaker2 in https://github.com/QuantumNous/new-api/pull/4818 +* fix(auth): expose register_enabled in /api/status and gate sign-up link on login page by @Gnonymous in https://github.com/QuantumNous/new-api/pull/4871 +* fix(web/default): clarify pagination button labels in ModelCardGrid by @ellisfan in https://github.com/QuantumNous/new-api/pull/4675 +* fix(auth): localize reset password confirmation by @neow021 in https://github.com/QuantumNous/new-api/pull/4769 +* fix(web/default/wallet): make recharge preset selection visible in dark mode by @xinnyu in https://github.com/QuantumNous/new-api/pull/4897 +* fix(web/default): api-info color dot shows wrong color due to semantic token mismatch by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4824 +* fix(web/default): api-info save silently fails when color is invalid or result unchecked by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4823 +* fix(auth): use aff_code field name in registration payload (#4945) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4965 +* fix(data-table): make faceted filter popover width adaptive (#4905) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4966 +* fix(keys): call submit handler directly to avoid stale form linkage (#4858) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4967 + +### New Contributors +* @draftgo made their first contribution in https://github.com/QuantumNous/new-api/pull/4847 +* @SAY-5 made their first contribution in https://github.com/QuantumNous/new-api/pull/4684 +* @bugmaker2 made their first contribution in https://github.com/QuantumNous/new-api/pull/4818 +* @Gnonymous made their first contribution in https://github.com/QuantumNous/new-api/pull/4871 +* @ellisfan made their first contribution in https://github.com/QuantumNous/new-api/pull/4675 +* @neow021 made their first contribution in https://github.com/QuantumNous/new-api/pull/4769 +* @xinnyu made their first contribution in https://github.com/QuantumNous/new-api/pull/4897 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.6...v1.0.0-rc.7 **Download Resources** - + + +--- + +## v1.0.0-rc.6 + + + +### Highlights +This release improves observability by recording upstream request IDs in logs and adds a compliance confirmation step for paid features. If your `logs` table is large, pre-apply the `upstream_request_id` column and index with online DDL before upgrading to avoid a potentially long migration. + +### New Features +- Added upstream request ID tracking in request logs for easier upstream call tracing, while avoiding unintended response header overrides. +- Added a compliance confirmation step before paid features can be used. + +### Bug Fixes +- Fixed the channel combobox so focusing it no longer hides valid channel options (#4829). + +### Other +- Upgrade notice: the `logs` table now includes a new `upstream_request_id` column and index; on large installations, run the appropriate online DDL below before upgrading to avoid a long or blocking automatic migration. ---- +MySQL / InnoDB: -## v0.12.2 +```sql +-- 1. Add the column using online DDL. +ALTER TABLE logs + ADD COLUMN upstream_request_id VARCHAR(128) NOT NULL DEFAULT '', + ALGORITHM=INPLACE, LOCK=NONE; - +-- 2. Add the index using online DDL. +ALTER TABLE logs + ADD INDEX idx_logs_upstream_request_id (upstream_request_id), + ALGORITHM=INPLACE, LOCK=NONE; +``` -#### New Features -* Add support for PDF conversion between OpenAI and Claude APIs. -* Support differential billing for Seedance 2.0 based on video vs. no-video input. -* Enhance max_tokens handling and input sanitization in the playground (#4106). -* Enhance stream status display with error tooltips in usage logs. +PostgreSQL 11+: -#### Bug Fixes -* Fix usage calculation issues when converting between Claude and OpenAI APIs by emitting `message_delta` for the final stream chunk (#4090). -* Fix Gemini stream detection by checking the `:streamGenerateContent` URL path (#4087). -* Fix Claude request requirements by properly setting TopP to nil. +```sql +-- 1. Add the column without rewriting the table on PG 11+. +ALTER TABLE logs + ADD COLUMN IF NOT EXISTS upstream_request_id VARCHAR(128) NOT NULL DEFAULT ''; -#### Improvements -* Unify file source creation and enhance caching mechanisms. +-- 2. Add the index concurrently to avoid blocking reads and writes. +CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_logs_upstream_request_id + ON logs (upstream_request_id); +``` --- ### What's Changed -* fix(gemini): detect streaming from URL path :streamGenerateContent by @D26FORWARD in https://github.com/QuantumNous/new-api/pull/4087 -* fix: emit claude message_delta for usage-only final stream chunk by @seefs001 in https://github.com/QuantumNous/new-api/pull/4090 -* chore(deps-dev): bump electron from 35.7.5 to 39.8.5 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4080 -* chore(deps-dev): bump @xmldom/xmldom from 0.8.11 to 0.8.12 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3523 -* chore(deps-dev): bump lodash from 4.17.23 to 4.18.1 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4097 -* feat(playground): enhance max_tokens handling and input sanitization by @HynoR in https://github.com/QuantumNous/new-api/pull/4106 +* chore(deps): bump axios from 1.15.0 to 1.15.2 in /web/classic by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4634 +* chore(deps-dev): bump ip-address from 10.1.0 to 10.2.0 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4811 +* 修复渠道列表显示不全问题 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4829 -### New Contributors -* @D26FORWARD made their first contribution in https://github.com/QuantumNous/new-api/pull/4087 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.1...v0.12.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.5...v1.0.0-rc.6 **Download Resources** --- -## v0.12.1 +## v1.0.0-rc.5 - + -This release adds Seedance 2.0 video support and broadens media compatibility across providers. It also makes failures easier to understand with clearer Seedance and performance-related error messages. +### Highlights +The default dashboard has been refreshed with built-in model performance metrics and a clearer health view. This release also adds DeepChat deeplink support and fixes several default UI, wallet, playground, and ratio-display regressions. ### New Features -- Added Seedance 2.0 video generation API support with duration control in seconds, clearer failure reporting, and better prompt handling for single-text requests (#4042). -- Added HEIC/HEIF image support, including Gemini channel compatibility and more reliable handling of HEIF images (#4049). -- Added basic inline file support for Claude relay so compatible requests can include media directly (#3505). +- Dashboard overview has been redesigned and now includes model performance metrics with a clearer performance health panel. +- DeepChat deeplinks are now supported, making it easier to open supported chat links directly in DeepChat. (#4668) + +### Bug Fixes +- Top-up gateway availability now uses the correct top-up configuration, so wallet payment options are shown accurately. (#4599) +- Group ratio displays now honor configured group-to-group ratio settings. (#4772) +- Default UI dropdown menu items now trigger their selection handlers reliably. (#4787) +- The playground now handles legacy classic-format messages without failing. (#4650) +- Default frontend pages now avoid several v1 UI regressions, including stray empty description areas and layout issues. (#4802) ### Improvements -- Improved performance-related error messages to make request failures easier to understand. +- The default web UI and charts now follow shared theme presets for more consistent colors, controls, and corner radii. +- Docker images now include project and third-party license notices for easier compliance review. (#4739) --- ### What's Changed -* fix: add basic inline file support for Claude relay by @seefs001 in https://github.com/QuantumNous/new-api/pull/3505 -* 新增seedance2.0视频接口支持 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4042 -* feat: add HEIC/HEIF image format support for Gemini channel by @RedwindA in https://github.com/QuantumNous/new-api/pull/4049 +* feat: add DeepChat deeplink support by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4668 +* fix: exclude THIRD-PARTY-LICENSES.md from .dockerignore for Docker build by @yeying-xingchen in https://github.com/QuantumNous/new-api/pull/4739 +* fix(wallet): read topup gateway flags from topupInfo instead of status by @ImogeneOctaviap794 in https://github.com/QuantumNous/new-api/pull/4599 +* fix(web/default): use getUserGroups for ratio display to respect GroupGroupRatio by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4772 +* fix(default): support DropdownMenuItem onSelect by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4787 +* fix(web/default): guard playground messages against legacy classic shape by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4650 +* fix: defaut ui triage by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4802 +### New Contributors +* @yeying-xingchen made their first contribution in https://github.com/QuantumNous/new-api/pull/4739 +* @lihan3238 made their first contribution in https://github.com/QuantumNous/new-api/pull/4787 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.0...v0.12.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.4...v1.0.0-rc.5 **Download Resources** --- -## v0.12.0 +## v1.0.0-rc.4 - + -v0.12.0 adds Wan 2.7 image generation support and streamlines channel setup in the admin UI. It also improves billing accuracy and fixes several model and dashboard issues. +### Highlights +OpenAI image editing is more reliable: image edit requests now preserve reference image data and related metadata, preventing edits from losing their intended context (#4646). This release also adds model performance badges and fixes several billing and dropdown UI issues. + +### New Features +- Added model performance badges to model lists so users can compare available models at a glance. + +### Bug Fixes +- Fixed OpenAI image edit requests so reference images and related edit metadata are preserved when forwarded (#4646). +- Fixed billing settings forms so top-up and billing configuration inputs behave more reliably. +- Fixed dropdown and select controls so options render and select correctly after the UI component update (#4655). + +### Breaking Changes +- Integrations should now read the top-up link from the top-up information API instead of the status API. + +### Gallery +| Model availability rankings | Refreshed pricing and settings UI | +| --- | --- | +|| | + +--- + +### What's Changed +* fix: preserve OpenAI image edit reference fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4646 +* fix: migrate select to Base UI items API by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4655 + + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.3...v1.0.0-rc.4 -### New Features -- Added support for Wan 2.7 image generation, including control over how many images are generated per request (#3526). +**Download Resources** -### Bug Fixes -- Fixed image-generation billing and usage statistics so request counts and costs are reported more accurately without double-counting (#3512). -- Fixed a UI issue that caused the consumption distribution chart to make the page scrollbar flicker on hover (#3474). -- Fixed xAI Grok-3-mini compatibility when no completion token limit is set, reducing failed requests. + -### Improvements -- Made channel setup faster and smoother by letting you create a channel from a copied token, remembering advanced settings in the edit dialog, and improving clipboard handling. + --- -### What's Changed -* fix(dashboard): 修复消耗分布图表悬浮时滚动条闪烁 by @wans10 in https://github.com/QuantumNous/new-api/pull/3474 -* docs(zh-TW): fix missing content and add partner logo by @DaZuiZui in https://github.com/QuantumNous/new-api/pull/3462 -* chore(deps-dev): bump picomatch from 4.0.3 to 4.0.4 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3450 -* fix: prevent double-counting of image count n in billing by @imlhb in https://github.com/QuantumNous/new-api/pull/3512 -* 支持wan2.7生图-wan2.7-image by @feitianbubu in https://github.com/QuantumNous/new-api/pull/3526 +## v1.0.0-rc.3 -### New Contributors -* @DaZuiZui made their first contribution in https://github.com/QuantumNous/new-api/pull/3462 -* @imlhb made their first contribution in https://github.com/QuantumNous/new-api/pull/3512 + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9...v0.12.0 +### Highlights +v1.0.0-rc.3 adds a new model rankings experience with model availability and performance visibility, making it easier to compare reliability before choosing routes or providers. This release also refreshes key default UI areas, including pricing/settings pages and table controls. + +### New Features +- Added a model rankings dashboard with real availability and performance data so users can compare model reliability at a glance (#4633). + +### Improvements +- Refreshed the default web UI with Base UI components, updated theme presets, and cleaner table toolbar interactions (#4633). +- Reorganized the system settings pricing interface to make pricing configuration easier to scan and manage. + +### Bug Fixes +- Fixed channel table sorting so server-side sorting now works correctly (#4600). +- Corrected subscription payment information display in the default UI. + +### Gallery +| Model availability rankings | Refreshed pricing and settings UI | +| --- | --- | +|| | + +--- + +### What's Changed +* feat(web/default): unified UI overhaul — Base UI migration, theme presets, rankings dashboard, and table toolbar refactor by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4633 +* feat: collect model performance metrics by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4635 +* fix: enable channel table server-side sorting by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4600 + + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.2...v1.0.0-rc.3 **Download Resources** --- -## v0.12.0-alpha.2 - - - -### Release Highlights -This release includes minor improvements to the `EditChannelModal` component to enhance clipboard handling reliability. - -### Bug Fixes -- **EditChannelModal:** Enhance clipboard handling with error checks (`670abee`) +## v1.0.0-rc.2 ---- + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.0-alpha.1...v0.12.0-alpha.2 +### Highlights +v1.0.0-rc.2 officially opens up switching between the new and classic frontend, making it easier to test the redesigned UI, compare workflows, and fall back instantly when needed. This RC also refreshes key console pages and fixes several web issues affecting email binding, tiered pricing, API key grouping, and custom Vertex base URLs. + +### New Features +- Added a built-in switch between the new and classic frontend, so teams can adopt the redesigned UI gradually without losing access to the previous workflow. + +### Improvements +- Refreshed the web console with redesigned pricing pages, more consistent dashboard and log controls, better table and analytics filtering, smoother navigation, and improved mobile responsiveness. + +### Bug Fixes +- Fixed email binding in the redesigned frontend so the action completes correctly (#4551). +- Fixed tiered pricing number input behavior so editing values is more reliable (#4536). +- Fixed tiered pricing display issues that could cause values and labels to appear incorrectly (#4530). +- Fixed API key grouping in the default web theme so keys appear under the expected groups (#4548). +- Fixed custom Vertex base URLs so requests route correctly when a gateway prefix is configured (#4200). + +### Gallery + +| Refreshed pricing page | Dashboard and analytics controls | +| --- | --- | +| Refreshed pricing page | Dashboard and analytics controls | + +### What's Changed +* fix: 修复默认主题 API 密钥分组行为 by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4548 +* bug fix: 新版前端email绑定错误 by @SHLE1 in https://github.com/QuantumNous/new-api/pull/4551 +* fix: improve tiered pricing number input editing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4536 +* fix(vertex): honor custom base_url as gateway prefix by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4200 +* fix(web): 修复阶梯计费 Base64 解码失败与标签不匹配导致的显示错误 by @wans10 in https://github.com/QuantumNous/new-api/pull/4530 + +### New Contributors +* @SHLE1 made their first contribution in https://github.com/QuantumNous/new-api/pull/4551 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.1...v1.0.0-rc.2 **Download Resources** --- -## v0.12.0-alpha.1 +## v1.0.0-rc.1 - + -### Highlights -This release introduces a new clipboard magic string feature for quick channel creation and includes important security and UI improvements. +v1.0.0-rc.1 is the first release candidate for the upcoming 1.0 release, and its main focus is the brand-new v1 frontend rebuilt from the ground up for a cleaner, faster, and more capable admin experience. + +This RC refreshes the interface across navigation, configuration, analytics, and logs, making day-to-day management much easier as the project moves toward the final v1 launch. + + + +### New Features +- Introduced the rebuilt v1 frontend with modern navigation and layouts, a visual channel editor for parameter overrides, and easier access to system settings and theme switching (#4265). + +### Improvements +- Upgraded dashboards and charts with clearer model analytics, better data sorting, and more informative tooltips for easier usage analysis. +- Improved usage logs with log type indicators, usernames and avatars, and cleaner tables that make activity easier to scan. +- Polished shared layouts, tables, and form styling across the default frontend for a cleaner and more consistent experience. + +### Bug Fixes +- Fixed themes loaded from the database so the selected frontend theme now applies correctly at runtime (#4518). +- Fixed forwarded requests so empty reasoning fields are preserved instead of being silently dropped (#4520). +- Fixed required-field markers so forms more consistently show which inputs are mandatory (#4533). + +--- + +### What's Changed +* 🚀 feat: launch v1.0 — next-generation frontend built from the ground up by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4265 +* fix: 修复 Message.ReasoningContent/Reasoning 空思考内容在请求转发时被静默丢弃 by @heimoshuiyu in https://github.com/QuantumNous/new-api/pull/4520 +* fix: sync theme to runtime when loaded from database by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4518 + +### New Contributors +* @Micah-Zheng made their first contribution in https://github.com/QuantumNous/new-api/pull/4518 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-alpha.1...v1.0.0-rc.1 -### New Features -* Add clipboard magic string for quick channel creation from token copy +**Download Resources** -### Bug Fixes -* 修复消耗分布图表悬浮时滚动条闪烁 (Fix dashboard scrollbar flickering) (#3474) -* Fix xAI MaxTokens mapping for grok-3-mini model + -### Improvements -* Security improvements -* Enhance footer layout and styling -* Update Traditional Chinese README with missing content and partner logo (#3462) -* Refactor account binding endpoints to use POST and normalize reset responses + --- -### What's Changed -* fix(dashboard): 修复消耗分布图表悬浮时滚动条闪烁 by @wans10 in https://github.com/QuantumNous/new-api/pull/3474 -* docs(zh-TW): fix missing content and add partner logo by @DaZuiZui in https://github.com/QuantumNous/new-api/pull/3462 +## v1.0.0-alpha.1 - License boundary release -### New Contributors -* @DaZuiZui made their first contribution in https://github.com/QuantumNous/new-api/pull/3462 + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9...v0.12.0-alpha.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.2...v1.0.0-alpha.1 **Download Resources** --- -## v0.11.9 - - +## v0.13.2 -### Release Notes for v0.11.9 + -#### New Features -* Add slide-in animations and update translations for new UI elements -* Prevent metadata from overriding model fields (#3461) -* Record stream interruption reasons via StreamStatus -* Expose i18n instance to the global window object for easier access +### New Features +- Model sync now detects upstream models more accurately, refreshes pricing automatically from provider pricing endpoints, shows removed upstream models in the fetch-models dialog, and keeps pricing available during sync delays (#4452). +- User records now include account creation and last login timestamps for easier auditing and administration (#4450). +- Added configurable model matching for Ali native Messages APIs, making it easier to route requests to compatible upstream models (#4468). -#### Bug Fixes -* Restore pre-3400 OpenRouter billing semantics (#3438) -* Restore doubao coding plan deprecation and regex ignored models lost during conflict resolution -* Preserve cache usage in openai-to-claude response conversion +### Bug Fixes +- Tool calls now accept raw JSON argument payloads, improving compatibility with providers that return tool arguments as JSON objects (#4469). +- Configuration updates now handle JSON object fields more reliably, preventing some settings from being saved incorrectly. -#### Improvements -* Expose skip-retry option and show it in the rules list (#3440) -* Harden Docker and release CI workflows to improve security +### Improvements +- Retry messages now clearly explain when a channel was skipped because affinity is disabled (#4453). --- ### What's Changed -* fix: restore pre-3400 OpenRouter billing semantics by @seefs001 in https://github.com/QuantumNous/new-api/pull/3438 -* refactor: expose skip-retry option and show it in rules list by @seefs001 in https://github.com/QuantumNous/new-api/pull/3440 -* feat: prevent metadata from overriding model fields by @feitianbubu in https://github.com/QuantumNous/new-api/pull/3461 -* chore(deps): bump golang.org/x/image from 0.23.0 to 0.38.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3507 +* fix(channel): load model mapping during upstream model checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4437 +* feat: sync upstream pricing from pricing endpoint by @seefs001 in https://github.com/QuantumNous/new-api/pull/4452 +* fix: clarify affinity disabled channel retry message by @seefs001 in https://github.com/QuantumNous/new-api/pull/4453 +* feat: configure native messages model matching for ali by @seefs001 in https://github.com/QuantumNous/new-api/pull/4468 +* fix: support raw JSON response tool arguments by @seefs001 in https://github.com/QuantumNous/new-api/pull/4469 +* feat: show removed upstream models in fetch models modal by @seefs001 in https://github.com/QuantumNous/new-api/pull/4470 +* 增加用户创建时间和最后登录时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4450 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9-alpha.1...v0.11.9 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1-patch.1...v0.13.2 **Download Resources** diff --git a/content/docs/ja/guide/wiki/meta.json b/content/docs/ja/guide/wiki/meta.json index 6b830b5..b32d62a 100644 --- a/content/docs/ja/guide/wiki/meta.json +++ b/content/docs/ja/guide/wiki/meta.json @@ -1,6 +1,6 @@ { "title": "ウィキ", - "description": "New APIプロジェクトドキュメントと基礎知識", + "description": "LFAPIプロジェクトドキュメントと基礎知識", "icon": "BookOpen", "pages": ["basic-concepts", "project-records"] } diff --git a/content/docs/ja/guide/wiki/project-records/changelog.mdx b/content/docs/ja/guide/wiki/project-records/changelog.mdx index 2791468..7516436 100644 --- a/content/docs/ja/guide/wiki/project-records/changelog.mdx +++ b/content/docs/ja/guide/wiki/project-records/changelog.mdx @@ -1444,7 +1444,7 @@ feat: Soraタスクの最適化 ### Google Analytics設定ドキュメント -https://docs.newapi.pro/wiki/analytics-setup/ +https://ai.liangfeng.net.cn/docs/wiki/analytics-setup/ ### 新規貢献者 diff --git a/content/docs/ja/index.mdx b/content/docs/ja/index.mdx index 59b574f..cfa11a0 100644 --- a/content/docs/ja/index.mdx +++ b/content/docs/ja/index.mdx @@ -28,7 +28,7 @@ import { } title="Docker 単一コンテナデプロイ" - description="Docker イメージを使用して New API を迅速にデプロイします。個人利用や小規模なアプリケーションシナリオに適しています。" + description="Docker イメージを使用して LFAPI を迅速にデプロイします。個人利用や小規模なアプリケーションシナリオに適しています。" href="/ja/docs/installation/deployment-methods/docker-installation" /> } title="AIアプリケーション" - description="New API をベースに開発された様々なAIアプリケーションの例を探ります。" + description="LFAPI をベースに開発された様々なAIアプリケーションの例を探ります。" href="/ja/docs/apps" /> - New API は `.env` ファイルから環境変数を読み込むことをサポートしています。`.env.example` + LFAPI は `.env` ファイルから環境変数を読み込むことをサポートしています。`.env.example` ファイルを参照し、使用する際は `.env` に名前を変更してください。 @@ -46,7 +46,7 @@ title: 環境変数設定ガイド Session Redis Hash の TTL は、Session の残り有効期間と有効な `SYNC_FREQUENCY` のうち短い方です。読み取りでは TTL は延長されません。独立 Redis 構成では、値を大きくすると Session 状態の収束が遅くなり、値を小さくするとデータベース参照が増えます。遅延して完了した active キャッシュの書き戻しにも、元のデータベース参照時点から残っている観測ウィンドウだけが使われます。 -New API が直接受け付ける Redis 設定は `REDIS_CONN_STRING` と `REDIS_POOL_SIZE` です。Redis Cluster や Sentinel のノード一覧をアプリケーションへ直接渡す方式には対応していません。高可用性が必要な場合は、`REDIS_CONN_STRING` に単一の Redis 互換接続エンドポイントを指定してください。 +LFAPI が直接受け付ける Redis 設定は `REDIS_CONN_STRING` と `REDIS_POOL_SIZE` です。Redis Cluster や Sentinel のノード一覧をアプリケーションへ直接渡す方式には対応していません。高可用性が必要な場合は、`REDIS_CONN_STRING` に単一の Redis 互換接続エンドポイントを指定してください。 ## マルチノードとセキュリティ設定 diff --git a/content/docs/ja/installation/config-maintenance/system-update.mdx b/content/docs/ja/installation/config-maintenance/system-update.mdx index b0265ba..fc310a4 100644 --- a/content/docs/ja/installation/config-maintenance/system-update.mdx +++ b/content/docs/ja/installation/config-maintenance/system-update.mdx @@ -2,7 +2,7 @@ title: システム更新ガイド --- -このドキュメントは、New APIシステムの更新方法とベストプラクティスを提供し、システムが最新バージョンにスムーズにアップグレードされることを保証します。 +このドキュメントは、LFAPIシステムの更新方法とベストプラクティスを提供し、システムが最新バージョンにスムーズにアップグレードされることを保証します。 ## 更新前の準備作業 @@ -17,7 +17,7 @@ title: システム更新ガイド ### 方法1:単一コンテナデプロイの更新 -New APIを単一のDockerコンテナでデプロイしている場合、以下の手順で更新できます。 +LFAPIを単一のDockerコンテナでデプロイしている場合、以下の手順で更新できます。 ```shell # 拉取最新镜像 @@ -66,7 +66,7 @@ docker compose pull && docker compose down && docker compose up -d 1Panelパネルを使用してデプロイしている場合、以下の手順で更新できます。 1. 1Panelパネルにログインし、**アプリケーションストア** -> **アップグレード可能ページ** に移動します -2. New APIアプリケーションを見つけ、**アップグレード** ボタンをクリックします +2. LFAPIアプリケーションを見つけ、**アップグレード** ボタンをクリックします 3. **アップグレード対象バージョン** を選択します 4. **確認** ボタンをクリックすると、システムは自動的に最新イメージをプルしてアプリケーションをアップグレードします @@ -75,13 +75,13 @@ docker compose pull && docker compose down && docker compose up -d 宝塔パネルを使用してデプロイしている場合、以下の手順で更新できます。 1. 宝塔パネルにログインし、**Docker管理** -> **コンテナリスト** に移動します -2. New APIコンテナを見つけ、**その他** -> **再作成** をクリックします +2. LFAPIコンテナを見つけ、**その他** -> **再作成** をクリックします 3. **最新イメージをプル** オプションにチェックを入れ、他の設定は変更しないことを確認します 4. **送信** をクリックすると、システムは自動的に最新イメージをプルしてコンテナを再作成します ## ソースコードからのビルドによる更新方法 -New APIをソースコードからビルドしてデプロイしている場合、更新手順は以下の通りです。 +LFAPIをソースコードからビルドしてデプロイしている場合、更新手順は以下の通りです。 ```shell # 进入项目目录 diff --git a/content/docs/ja/installation/deployment-methods/1panel-installation.mdx b/content/docs/ja/installation/deployment-methods/1panel-installation.mdx index d5e7cbb..4ec264c 100644 --- a/content/docs/ja/installation/deployment-methods/1panel-installation.mdx +++ b/content/docs/ja/installation/deployment-methods/1panel-installation.mdx @@ -2,7 +2,7 @@ title: 1Panel パネルのデプロイ --- -このドキュメントでは、1Panel パネルを使用して New API をデプロイするための図解チュートリアルを提供します。 +このドキュメントでは、1Panel パネルを使用して LFAPI をデプロイするための図解チュートリアルを提供します。 ## 前提条件 @@ -22,12 +22,12 @@ title: 1Panel パネルのデプロイ ![1panel](/assets/1panel/1panel.jpg) -## ステップ2:New API のインストール +## ステップ2:LFAPI のインストール ### アプリケーションの検索 - アプリケーションストアのアプリケーションリストに入り、【AI】カテゴリで New API アプリケーションを見つけてインストールします。 + アプリケーションストアのアプリケーションリストに入り、【AI】カテゴリで LFAPI アプリケーションを見つけてインストールします。 ![1panel-newapi](/assets/1panel/1panel-newapi.jpg) @@ -35,12 +35,12 @@ title: 1Panel パネルのデプロイ ### パラメータの設定 - インストールページで New API アプリケーションのパラメータを設定します。 + インストールページで LFAPI アプリケーションのパラメータを設定します。 -- **名前**:作成する New API アプリケーションの名前 -- **バージョン**:New API のバージョンを選択します -- **ポート**:New API アプリケーションのサービスポート +- **名前**:作成する LFAPI アプリケーションの名前 +- **バージョン**:LFAPI のバージョンを選択します +- **ポート**:LFAPI アプリケーションのサービスポート - **タイムゾーン**:サーバーのタイムゾーンを入力します(デフォルト Asia/Shanghai) - **詳細設定**:ポートの外部アクセスを必ずチェックしてください @@ -49,7 +49,7 @@ title: 1Panel パネルのデプロイ ### インストールの確認 - 「確認」をクリックしてインストールを開始すると、ページは自動的にインストール済みアプリケーションリストにリダイレクトされ、New API アプリケーションの状態が「起動済み」になるまで待ちます。 + 「確認」をクリックしてインストールを開始すると、ページは自動的にインストール済みアプリケーションリストにリダイレクトされ、LFAPI アプリケーションの状態が「起動済み」になるまで待ちます。 ![newapi-start](/assets/1panel/newapi-start.jpg) @@ -67,7 +67,7 @@ title: 1Panel パネルのデプロイ ### 設定方法 -1. 1Panel アプリケーションリストで、New API アプリケーションの **パラメータ** ボタンをクリックします +1. 1Panel アプリケーションリストで、LFAPI アプリケーションの **パラメータ** ボタンをクリックします 2. 環境変数セクションに追加します: - `SESSION_SECRET=your_random_secret_key` - `CRYPTO_SECRET=your_crypto_secret_key`(オプション) @@ -84,10 +84,10 @@ openssl rand -hex 16 head -c 16 /dev/urandom | xxd -p ``` -## ステップ4:New API へのアクセス +## ステップ4:LFAPI へのアクセス - - 「インストール済み」ページで、「ジャンプ」をクリックすると New API の WebUI ページに入ることができます + - 「インストール済み」ページで、「ジャンプ」をクリックすると LFAPI の WebUI ページに入ることができます - 使用前に、「パネル設定」ページで「デフォルトアクセスアドレス」を設定することをお勧めします @@ -110,7 +110,7 @@ head -c 16 /dev/urandom | xxd -p ### バージョンを更新する方法 1. 1Panel パネルにログインし、**アプリストア** → **アップグレード可能** ページに移動 -2. New API アプリケーションを見つけ、**アップグレード** ボタンをクリック +2. LFAPI アプリケーションを見つけ、**アップグレード** ボタンをクリック 3. ターゲットバージョンを選択し、**確認** をクリック ### データを永続化する方法 diff --git a/content/docs/ja/installation/deployment-methods/bt-docker-installation.mdx b/content/docs/ja/installation/deployment-methods/bt-docker-installation.mdx index e04f37c..2ec0bd5 100644 --- a/content/docs/ja/installation/deployment-methods/bt-docker-installation.mdx +++ b/content/docs/ja/installation/deployment-methods/bt-docker-installation.mdx @@ -2,7 +2,7 @@ title: 宝塔パネルへのデプロイ --- -このドキュメントでは、宝塔パネルのDocker機能を使用してNew APIをデプロイするための図解チュートリアルを提供します。 +このドキュメントでは、宝塔パネルのDocker機能を使用してLFAPIをデプロイするための図解チュートリアルを提供します。 ## 前提条件 @@ -24,7 +24,7 @@ title: 宝塔パネルへのデプロイ 2. 初めてアクセスするとDockerサービスのインストールを促されるので、**今すぐインストール** をクリックします 3. プロンプトに従ってDockerサービスのインストールを完了します -## ステップ3:New APIのインストール +## ステップ3:LFAPIのインストール ### 方法一:宝塔アプリストアを使用(推奨) diff --git a/content/docs/ja/installation/deployment-methods/cluster-deployment.mdx b/content/docs/ja/installation/deployment-methods/cluster-deployment.mdx index 4a67ee1..f4339d2 100644 --- a/content/docs/ja/installation/deployment-methods/cluster-deployment.mdx +++ b/content/docs/ja/installation/deployment-methods/cluster-deployment.mdx @@ -2,7 +2,7 @@ title: クラスターデプロイ --- -このドキュメントでは、New API クラスターデプロイの詳細な設定手順とベストプラクティスを提供し、高可用性で負荷分散された分散システムの構築を支援します。 +このドキュメントでは、LFAPI クラスターデプロイの詳細な設定手順とベストプラクティスを提供し、高可用性で負荷分散された分散システムの構築を支援します。 ## 前提条件 @@ -14,7 +14,7 @@ title: クラスターデプロイ ## クラスターアーキテクチャの概要 -New API クラスターはマスター・スレーブアーキテクチャを採用しています: +LFAPI クラスターはマスター・スレーブアーキテクチャを採用しています: 1. **マスターノード**:すべての書き込み操作と一部の読み取り操作を処理します 2. **スレーブノード**:主に読み取り操作を処理し、システム全体の処理能力を向上させます @@ -183,7 +183,7 @@ server { ### Redis 高可用性設定 -New API は `REDIS_CONN_STRING` で指定された単一の Redis 互換エンドポイントに接続し、Redis Cluster や Sentinel のノード一覧を直接解析しません。Redis を高可用化する場合は、単一の互換エンドポイントを提供するマネージドサービスまたはプロキシを使用してください。 +LFAPI は `REDIS_CONN_STRING` で指定された単一の Redis 互換エンドポイントに接続し、Redis Cluster や Sentinel のノード一覧を直接解析しません。Redis を高可用化する場合は、単一の互換エンドポイントを提供するマネージドサービスまたはプロキシを使用してください。 ```yaml environment: diff --git a/content/docs/ja/installation/deployment-methods/docker-compose-installation.mdx b/content/docs/ja/installation/deployment-methods/docker-compose-installation.mdx index e0dcf69..eca7feb 100644 --- a/content/docs/ja/installation/deployment-methods/docker-compose-installation.mdx +++ b/content/docs/ja/installation/deployment-methods/docker-compose-installation.mdx @@ -2,7 +2,7 @@ title: Docker Compose デプロイ --- -このドキュメントでは、Docker Compose を使用して New API をデプロイする詳細な手順を説明します。 +このドキュメントでは、Docker Compose を使用して LFAPI をデプロイする詳細な手順を説明します。 ## 前提条件 @@ -39,7 +39,7 @@ nano docker-compose.yml GitHub にアクセスできない、またはリポジリをクローンできない場合は、手動で設定ファイルを作成できます。 -1. New API デプロイ用のディレクトリを作成します。 +1. LFAPI デプロイ用のディレクトリを作成します。 ```shell mkdir new-api diff --git a/content/docs/ja/installation/deployment-methods/docker-installation.mdx b/content/docs/ja/installation/deployment-methods/docker-installation.mdx index 78aad21..89a3b76 100644 --- a/content/docs/ja/installation/deployment-methods/docker-installation.mdx +++ b/content/docs/ja/installation/deployment-methods/docker-installation.mdx @@ -2,7 +2,7 @@ title: Docker デプロイ --- -このドキュメントでは、Dockerを使用してNew APIをデプロイする詳細な手順を説明します。 +このドキュメントでは、Dockerを使用してLFAPIをデプロイする詳細な手順を説明します。 Dockerコンテナを手動で起動するのではなく、[Docker Compose @@ -31,7 +31,7 @@ docker run --name new-api -d --restart always \ ``` - 本番環境では PostgreSQL を優先して推奨します。New API は引き続き MySQL + 本番環境では PostgreSQL を優先して推奨します。LFAPI は引き続き MySQL と互換性があります。SQLite はローカル評価や一時的なテスト向けです。 diff --git a/content/docs/ja/installation/deployment-methods/local-development.mdx b/content/docs/ja/installation/deployment-methods/local-development.mdx index 6af9c41..2108c76 100644 --- a/content/docs/ja/installation/deployment-methods/local-development.mdx +++ b/content/docs/ja/installation/deployment-methods/local-development.mdx @@ -2,7 +2,7 @@ title: ローカル開発とデプロイ --- -このドキュメントは、New API プロジェクトをローカル環境でセットアップし開発するための詳細な手順を提供します。プロジェクト開発に参加したい、またはカスタム開発を行いたい開発者向けです。 +このドキュメントは、LFAPI プロジェクトをローカル環境でセットアップし開発するための詳細な手順を提供します。プロジェクト開発に参加したい、またはカスタム開発を行いたい開発者向けです。 ## 開発環境要件 @@ -26,7 +26,7 @@ title: ローカル開発とデプロイ ## プロジェクトのクローン -まず、GitHub から New API リポジトリをローカルにクローンします。 +まず、GitHub から LFAPI リポジトリをローカルにクローンします。 ```bash git clone https://github.com/Calcium-Ion/new-api.git @@ -43,7 +43,7 @@ go mod download ### 開発環境の構成 -New API は `.env` ファイルを介した環境変数の設定をサポートしています。`.env` ファイルを作成します(`.env.example` からコピーできます)。 +LFAPI は `.env` ファイルを介した環境変数の設定をサポートしています。`.env` ファイルを作成します(`.env.example` からコピーできます)。 ```bash cp .env.example .env @@ -77,7 +77,7 @@ go build -o new-api ## フロントエンド開発設定 -New API のフロントエンドコードは `web` ディレクトリにあり、React と [semi design コンポーネントライブラリ](https://semi.design/zh-CN) を使用して開発されています。 +LFAPI のフロントエンドコードは `web` ディレクトリにあり、React と [semi design コンポーネントライブラリ](https://semi.design/zh-CN) を使用して開発されています。 ### Bun のインストール(推奨) @@ -160,7 +160,7 @@ bun run build # bun を使用してフロントエンドリソースをビル ## プロジェクト構造 -New API プロジェクトのディレクトリ構造: +LFAPI プロジェクトのディレクトリ構造: ``` new-api/ # プロジェクトルートディレクトリ diff --git a/content/docs/ja/installation/index.mdx b/content/docs/ja/installation/index.mdx index 50bd08f..e1c97c0 100644 --- a/content/docs/ja/installation/index.mdx +++ b/content/docs/ja/installation/index.mdx @@ -17,7 +17,7 @@ import { ## 概要 -New API は複数のデプロイ方法をサポートしています。技術的な背景と使用シナリオに基づいて、最適なソリューションを選択できます。 +LFAPI は複数のデプロイ方法をサポートしています。技術的な背景と使用シナリオに基づいて、最適なソリューションを選択できます。 ## デプロイ方法 @@ -78,7 +78,7 @@ New API は複数のデプロイ方法をサポートしています。技術的 } title="システム更新" - description="New API を最新バージョンに安全に更新する方法を学びます。" + description="LFAPI を最新バージョンに安全に更新する方法を学びます。" href="/ja/docs/installation/config-maintenance/system-update" /> diff --git a/content/docs/ja/legal/acceptable-use.mdx b/content/docs/ja/legal/acceptable-use.mdx index d622aab..bec23f5 100644 --- a/content/docs/ja/legal/acceptable-use.mdx +++ b/content/docs/ja/legal/acceptable-use.mdx @@ -1,17 +1,17 @@ --- title: コンプライアンスと利用規約 -description: New API プロジェクトのコンプライアンス声明と利用規約 +description: LFAPI プロジェクトのコンプライアンス声明と利用規約 --- import { Callout } from 'fumadocs-ui/components/callout'; - New API を使用する前に、このポリシーを注意深く読み、理解してください。 + LFAPI を使用する前に、このポリシーを注意深く読み、理解してください。 ## プロジェクトのポジショニング -New API は、合法的な認可シナリオを対象とした AI API ゲートウェイおよび使用量管理システムであり、デフォルトでは自己利用、チーム内利用、および企業プライベートデプロイメントを想定しています。主な機能は以下の通りです。 +LFAPI は、合法的な認可シナリオを対象とした AI API ゲートウェイおよび使用量管理システムであり、デフォルトでは自己利用、チーム内利用、および企業プライベートデプロイメントを想定しています。主な機能は以下の通りです。 - 企業内での統一認証とマルチモデルルーティング - 組織内の使用量統計と権限管理 @@ -20,7 +20,7 @@ New API は、合法的な認可シナリオを対象とした AI API ゲート ## 合法的な認可要件 -ユーザーが New API を使用する際には、以下の要件を満たす必要があります。 +ユーザーが LFAPI を使用する際には、以下の要件を満たす必要があります。 - 上流の API Key、モデルサービス、決済サービス、その他の第三者サービスの合法的な認可を取得していること - 上流のサービス規約およびプラットフォーム規則を遵守すること @@ -74,5 +74,5 @@ New API は、合法的な認可シナリオを対象とした AI API ゲート ## メンテナーの立場 - New API は「現状有姿」で提供され、いかなる種類の保証も提供されません。メンテナーは、合法かつコンプライアンスに準拠した使用シナリオに対してのみ技術的な議論とコミュニティサポートを提供し、プロジェクトのコンプライアンス要件を満たさないissue、PR、議論、およびチュートリアルリンクをコミュニティ規則に従って処理することができます。開発者およびメンテナーは、本ソフトウェアの使用によって生じるいかなる損害または法的問題に対しても責任を負いません。 + LFAPI は「現状有姿」で提供され、いかなる種類の保証も提供されません。メンテナーは、合法かつコンプライアンスに準拠した使用シナリオに対してのみ技術的な議論とコミュニティサポートを提供し、プロジェクトのコンプライアンス要件を満たさないissue、PR、議論、およびチュートリアルリンクをコミュニティ規則に従って処理することができます。開発者およびメンテナーは、本ソフトウェアの使用によって生じるいかなる損害または法的問題に対しても責任を負いません。 \ No newline at end of file diff --git a/content/docs/ja/skills/index.mdx b/content/docs/ja/skills/index.mdx index 66fd5f6..1d1def7 100644 --- a/content/docs/ja/skills/index.mdx +++ b/content/docs/ja/skills/index.mdx @@ -1,6 +1,6 @@ --- title: Skills -description: New API 公式 AI エディター Skill プラグイン一覧。Claude Code、Codex、OpenClaw に対応し、モデル、トークン、グループ、残高を管理し、New API の使い方も AI コーディング環境内で直接質問できます。 +description: LFAPI 公式 AI エディター Skill プラグイン一覧。Claude Code、Codex、OpenClaw に対応し、モデル、トークン、グループ、残高を管理し、LFAPI の使い方も AI コーディング環境内で直接質問できます。 --- import { Card, Cards } from 'fumadocs-ui/components/card'; @@ -8,23 +8,23 @@ import { User, Shield } from 'lucide-react'; ## 概要 -**Skills** は軽量な拡張プロトコルで、AI エディター(Claude Code、Codex、OpenClaw、Cursor、Windsurf など)がコーディング環境内で New API と直接やり取りできます。ブラウザや管理パネルに切り替える必要はありません。 +**Skills** は軽量な拡張プロトコルで、AI エディター(Claude Code、Codex、OpenClaw、Cursor、Windsurf など)がコーディング環境内で LFAPI と直接やり取りできます。ブラウザや管理パネルに切り替える必要はありません。 -New API Skills は Claude Code、Codex、OpenClaw などのツールで、モデル照会、トークン管理、残高確認に加えて、New API の使い方も直接質問できます。 +LFAPI Skills は Claude Code、Codex、OpenClaw などのツールで、モデル照会、トークン管理、残高確認に加えて、LFAPI の使い方も直接質問できます。 -New API は現在以下の Skills を提供しています: +LFAPI は現在以下の Skills を提供しています: } title="newapi" - description="ユーザー向け Skill — Claude Code、Codex、OpenClaw でモデル照会、トークン管理、グループ・残高の確認に加えて、New API の使い方も質問可能。" + description="ユーザー向け Skill — Claude Code、Codex、OpenClaw でモデル照会、トークン管理、グループ・残高の確認に加えて、LFAPI の使い方も質問可能。" href="/ja/docs/skills/newapi" /> } title="newapi-admin(近日公開)" - description="管理者向け Skill — チャネル管理、ユーザー管理、システム設定などの運用タスク。New API 管理者向け。" + description="管理者向け Skill — チャネル管理、ユーザー管理、システム設定などの運用タスク。LFAPI 管理者向け。" href="/ja/docs/skills/newapi-admin" /> @@ -42,9 +42,9 @@ New API は現在以下の Skills を提供しています: | **Cline** | VS Code AI 拡張機能 | オープンソース AI コーディングエージェント | | **Codex CLI** | ターミナル AI プログラミングアシスタント | OpenAI 公式 CLI | -> Skills プロトコルをサポートするすべてのツールで New API Skills を使用できます。 +> Skills プロトコルをサポートするすべてのツールで LFAPI Skills を使用できます。 ## 詳細情報 - GitHub リポジトリ:[github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) -- New API 公式サイト:[www.newapi.ai](https://www.newapi.ai) +- LFAPI 公式サイト:[www.ai.liangfeng.net.cn/docs](https://www.ai.liangfeng.net.cn/docs) diff --git a/content/docs/ja/skills/meta.json b/content/docs/ja/skills/meta.json index 179296e..e1105f5 100644 --- a/content/docs/ja/skills/meta.json +++ b/content/docs/ja/skills/meta.json @@ -1,6 +1,6 @@ { "title": "Skills", - "description": "Claude Code、Codex、OpenClaw 向け New API Skills。使い方の質問にも対応", + "description": "Claude Code、Codex、OpenClaw 向け LFAPI Skills。使い方の質問にも対応", "icon": "Puzzle", "root": true, "pages": [ diff --git a/content/docs/ja/skills/newapi-admin.mdx b/content/docs/ja/skills/newapi-admin.mdx index 81b6738..8483455 100644 --- a/content/docs/ja/skills/newapi-admin.mdx +++ b/content/docs/ja/skills/newapi-admin.mdx @@ -1,6 +1,6 @@ --- title: newapi-admin(近日公開) -description: newapi-admin は New API 公式の管理者向け Skill プラグインです。Claude Code、Cursor、Windsurf などの AI エディターからチャネル管理、ユーザー管理、システム設定、ログ照会などの管理者運用を直接実行できます。現在開発中。 +description: newapi-admin は LFAPI 公式の管理者向け Skill プラグインです。Claude Code、Cursor、Windsurf などの AI エディターからチャネル管理、ユーザー管理、システム設定、ログ照会などの管理者運用を直接実行できます。現在開発中。 --- import { Callout } from 'fumadocs-ui/components/callout'; @@ -11,7 +11,7 @@ import { Callout } from 'fumadocs-ui/components/callout'; ## はじめに -**newapi-admin** は New API 管理者向けの Skill プラグインです。ユーザー向けの [newapi](/ja/docs/skills/newapi) Skill とは異なり、newapi-admin は**管理者運用シナリオ**に特化しており、サイト管理者が AI エディター内で自然言語コマンドを使って日常の管理タスクを実行できます。管理ダッシュボードにログインする必要はありません。 +**newapi-admin** は LFAPI 管理者向けの Skill プラグインです。ユーザー向けの [newapi](/ja/docs/skills/newapi) Skill とは異なり、newapi-admin は**管理者運用シナリオ**に特化しており、サイト管理者が AI エディター内で自然言語コマンドを使って日常の管理タスクを実行できます。管理ダッシュボードにログインする必要はありません。 ## 計画中の機能 diff --git a/content/docs/ja/skills/newapi.mdx b/content/docs/ja/skills/newapi.mdx index 47994b7..d0ecead 100644 --- a/content/docs/ja/skills/newapi.mdx +++ b/content/docs/ja/skills/newapi.mdx @@ -1,27 +1,27 @@ --- title: newapi -description: newapi は New API 公式のユーザー向け Skill プラグインです。Claude Code、Codex、OpenClaw に対応し、自然言語コマンドでモデル、トークン、グループ、残高を管理し、New API の使い方も直接質問できます。 +description: newapi は LFAPI 公式のユーザー向け Skill プラグインです。Claude Code、Codex、OpenClaw に対応し、自然言語コマンドでモデル、トークン、グループ、残高を管理し、LFAPI の使い方も直接質問できます。 --- import { Callout } from 'fumadocs-ui/components/callout'; import { Step, Steps } from 'fumadocs-ui/components/steps'; - **newapi-skills** は、New API 公式の AI エディター Skill プラグインです。Skills は軽量な拡張プロトコルで、AI コーディングアシスタント(Claude Code、Codex、OpenClaw、Cursor、Windsurf、Cline など)がエディター内で **New API の API を直接呼び出し**、モデルの照会、トークン管理、残高確認に加えて、New API のデプロイ、設定、API 利用方法などの質問にもコーディング環境から離れることなく対応できます。 + **newapi-skills** は、LFAPI 公式の AI エディター Skill プラグインです。Skills は軽量な拡張プロトコルで、AI コーディングアシスタント(Claude Code、Codex、OpenClaw、Cursor、Windsurf、Cline など)がエディター内で **LFAPI の API を直接呼び出し**、モデルの照会、トークン管理、残高確認に加えて、LFAPI のデプロイ、設定、API 利用方法などの質問にもコーディング環境から離れることなく対応できます。 - GitHub リポジトリ:[github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) - OpenClaw でも利用でき、エージェントのワークフロー内で `/newapi` コマンドを使ってモデル照会やトークン管理、残高確認を直接実行でき、New API の使い方もそのまま質問できます。 + OpenClaw でも利用でき、エージェントのワークフロー内で `/newapi` コマンドを使ってモデル照会やトークン管理、残高確認を直接実行でき、LFAPI の使い方もそのまま質問できます。 ## Skills を使う理由 -日常の AI 開発では、エディターと New API 管理ダッシュボードの間を頻繁に行き来する必要があります — 利用可能なモデルの確認、API トークンの作成、残高のチェック、グループ割当の調整など。これらのコンテキストスイッチはコーディングの流れを中断します。 +日常の AI 開発では、エディターと LFAPI 管理ダッシュボードの間を頻繁に行き来する必要があります — 利用可能なモデルの確認、API トークンの作成、残高のチェック、グループ割当の調整など。これらのコンテキストスイッチはコーディングの流れを中断します。 **newapi-skills が解決する課題:** - **コンテキストスイッチゼロ**:Claude Code、Codex、OpenClaw などの AI IDE で自然言語コマンドを直接入力 — ブラウザや管理パネル不要 -- **組み込みヘルプ**:New API のデプロイ、設定、グループ、API 呼び出し形式などをその場で質問できます +- **組み込みヘルプ**:LFAPI のデプロイ、設定、グループ、API 呼び出し形式などをその場で質問できます - **セキュリティファースト**:キーは平文で表示されません。トークンのコピーと注入はすべてセキュアチャネルで実行(`sk-` プレフィックスのキーはターミナル出力やログに表示されません) - **インストール即使用**:`npx` コマンド一行でインストール完了。ランタイム自動検出(Bun / Node.js / Deno) - **マルチエディター互換**:Skills プロトコルを実装するすべての AI エディター・コーディングアシスタントで使用可能 @@ -43,13 +43,13 @@ newapi-skills は以下の AI コーディングツールで利用できます ## コマンドリファレンス -以下は newapi-skills が提供する全コマンドです。これらのコマンドは New API REST API を通じて、New API インスタンス上のリソースを照会・管理します。 +以下は newapi-skills が提供する全コマンドです。これらのコマンドは LFAPI REST API を通じて、LFAPI インスタンス上のリソースを照会・管理します。 ### 照会コマンド | コマンド | 説明 | 用途 | |----------|------|------| -| `/newapi models` | 利用可能な AI モデルを一覧表示 | New API インスタンスに設定された全モデル(OpenAI、Claude、Gemini など)を確認 | +| `/newapi models` | 利用可能な AI モデルを一覧表示 | LFAPI インスタンスに設定された全モデル(OpenAI、Claude、Gemini など)を確認 | | `/newapi groups` | ユーザーグループを一覧表示 | アカウントのグループとクォータ・倍率設定を確認 | | `/newapi balance` | アカウント残高を表示 | 現在のユーザーの残高と使用量をリアルタイム照会 | @@ -67,7 +67,7 @@ newapi-skills は以下の AI コーディングツールで利用できます | コマンド | 説明 | 用途 | |----------|------|------| -| `/newapi help ` | New API について質問 | New API のデプロイ、設定、API 呼び出し形式などのヘルプ情報を取得 | +| `/newapi help ` | LFAPI について質問 | LFAPI のデプロイ、設定、API 呼び出し形式などのヘルプ情報を取得 | ## インストールと設定 @@ -86,7 +86,7 @@ newapi-skills は以下の AI コーディングツールで利用できます ### 環境変数を設定 - newapi-skills は New API インスタンスに接続するために 3 つの環境変数が必要です。シェルプロファイルに追加してください: + newapi-skills は LFAPI インスタンスに接続するために 3 つの環境変数が必要です。シェルプロファイルに追加してください: ```bash # ~/.bashrc または ~/.zshrc @@ -97,7 +97,7 @@ newapi-skills は以下の AI コーディングツールで利用できます | 変数 | 説明 | 例 | |------|------|-----| - | `NEWAPI_BASE_URL` | New API サービス URL | `https://api.example.com` | + | `NEWAPI_BASE_URL` | LFAPI サービス URL | `https://api.example.com` | | `NEWAPI_ACCESS_TOKEN` | 管理者またはユーザーのアクセストークン | 「個人設定 → アカウント管理 → セキュリティ設定 → システムアクセストークン」から取得 | | `NEWAPI_USER_ID` | ユーザー ID | `1`(管理者のデフォルトは 1) | @@ -111,7 +111,7 @@ newapi-skills は以下の AI コーディングツールで利用できます - `/newapi models` と入力して利用可能なモデルを確認 - `/newapi balance` と入力して現在の残高をチェック - `/newapi create-token my-app` と入力して `my-app` という新しいトークンを作成 - - `/newapi help グループやトークンはどう設定しますか?` と入力して New API の使い方を質問 + - `/newapi help グループやトークンはどう設定しますか?` と入力して LFAPI の使い方を質問 - OpenClaw でも `/newapi models` や `/newapi balance` などをそのまま利用できます @@ -140,5 +140,5 @@ newapi-skills は API キーを保護するための多層セキュリティを newapi-skills は現在も活発に開発中で、コマンドや機能はアップデートにより変更される可能性があります。最新の情報と変更ログはリポジトリの README を参照してください: - GitHub リポジトリ:[github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) -- New API 公式サイト:[www.newapi.ai](https://www.newapi.ai) -- New API GitHub:[github.com/QuantumNous/new-api](https://github.com/QuantumNous/new-api) +- LFAPI 公式サイト:[www.ai.liangfeng.net.cn/docs](https://www.ai.liangfeng.net.cn/docs) +- LFAPI GitHub:[github.com/QuantumNous/new-api](https://github.com/QuantumNous/new-api) diff --git a/content/docs/ja/support/community-interaction.mdx b/content/docs/ja/support/community-interaction.mdx index 3fc5c4d..e3d80c4 100644 --- a/content/docs/ja/support/community-interaction.mdx +++ b/content/docs/ja/support/community-interaction.mdx @@ -2,7 +2,7 @@ title: コミュニティ交流 --- -New API オープンソースコミュニティへようこそ!ここでは、他の開発者と経験を共有し、アイデアを交換できます。 +LFAPI オープンソースコミュニティへようこそ!ここでは、他の開発者と経験を共有し、アイデアを交換できます。 ## 📜 グループルール @@ -13,9 +13,9 @@ New API オープンソースコミュニティへようこそ!ここでは、 1. 本グループの管理者およびグループオーナーは、皆様に技術サポートを提供する義務を一切負いません。問題がある場合は、[issue](/ja/docs/support/feedback-issues) を提出してください。 -2. チャットグループの内容は、New API のオープンソースプロジェクトの使用、デプロイ、開発、フィードバックに焦点を当てるべきであり、アカウント取引、購入ガイド、または購入希望に関する情報を投稿しないでください。 +2. チャットグループの内容は、LFAPI のオープンソースプロジェクトの使用、デプロイ、開発、フィードバックに焦点を当てるべきであり、アカウント取引、購入ガイド、または購入希望に関する情報を投稿しないでください。 3. 本グループはオープンソースコミュニティの交流のみを目的としています。プロジェクト情報は公式リポジトリ、ドキュメント、コミュニティチャネルを通じて入手してください。 -4. New API は GNU AGPLv3 オープンソースライセンスを採用しており、ライセンスを遵守すれば無料で利用できます。詳細は[プロジェクト紹介](/ja/docs/guide/wiki/basic-concepts/project-introduction)をご覧ください。 +4. LFAPI は GNU AGPLv3 オープンソースライセンスを採用しており、ライセンスを遵守すれば無料で利用できます。詳細は[プロジェクト紹介](/ja/docs/guide/wiki/basic-concepts/project-introduction)をご覧ください。 5. 本プロジェクトを使用する際は、関連する法令、アップストリームのサービス規約、プラットフォームルール、およびコンテンツセキュリティ要件を遵守する必要があります。 6. コミュニティでの議論は、合法的なライセンス、コンプライアンスに準拠したデプロイ、および正当なエンジニアリング問題を中心に展開されるべきであり、関連するメッセージとグループメンバーの管理はコミュニティルールに従って処理されます。 diff --git a/content/docs/ja/support/faq.mdx b/content/docs/ja/support/faq.mdx index 83dc7a2..809ff59 100644 --- a/content/docs/ja/support/faq.mdx +++ b/content/docs/ja/support/faq.mdx @@ -20,7 +20,7 @@ import { Accordions, Accordion } from 'fumadocs-ui/components/accordion'; **注意事項:** - 非ストリーミングモードでは、公式APIは消費された総トークンを返しますが、プロンプトと補完の消費倍率は異なります。 - - New API のデフォルト倍率は公式倍率と一致しており、調整済みです。 + - LFAPI のデフォルト倍率は公式倍率と一致しており、調整済みです。 diff --git a/content/docs/ja/support/feedback-issues.mdx b/content/docs/ja/support/feedback-issues.mdx index bf90281..93b1e11 100644 --- a/content/docs/ja/support/feedback-issues.mdx +++ b/content/docs/ja/support/feedback-issues.mdx @@ -6,7 +6,7 @@ title: 問題のフィードバック ## 📝 問題の提出方法 -GitHub Issuesページにアクセスしてください:[New API Issues](https://github.com/Calcium-Ion/new-api/issues) +GitHub Issuesページにアクセスしてください:[LFAPI Issues](https://github.com/Calcium-Ion/new-api/issues) 新しいissueを提出する前に、以下をお勧めします: diff --git a/content/docs/zh/api/index.mdx b/content/docs/zh/api/index.mdx index fd27fe1..5dc2d0e 100644 --- a/content/docs/zh/api/index.mdx +++ b/content/docs/zh/api/index.mdx @@ -1,6 +1,6 @@ --- title: API 参考 -description: New API 完整接口文档 +description: LFAPI 完整接口文档 --- import { Card, Cards } from 'fumadocs-ui/components/card'; @@ -37,10 +37,10 @@ import { ## 概述 -New API 提供完整的 RESTful API 接口,分为 **AI 模型接口** 和 **管理接口** 两大类。您可以通过这些接口实现 AI 能力调用和系统管理功能。 +LFAPI 提供完整的 RESTful API 接口,分为 **AI 模型接口** 和 **管理接口** 两大类。您可以通过这些接口实现 AI 能力调用和系统管理功能。 - 您可以访问 [Apifox 操练场](https://apifox.newapi.ai/) 在线测试和调试 API 接口,或浏览下方的 API 文档。 + 您可以访问 [Apifox 操练场](https://apifox.ai.liangfeng.net.cn/docs/) 在线测试和调试 API 接口,或浏览下方的 API 文档。 ## AI 模型接口 diff --git a/content/docs/zh/api/meta.json b/content/docs/zh/api/meta.json index 5b4365e..0f47a01 100644 --- a/content/docs/zh/api/meta.json +++ b/content/docs/zh/api/meta.json @@ -1,6 +1,6 @@ { "title": "API 参考", - "description": "New API 接口文档", + "description": "LFAPI 接口文档", "icon": "Code", "root": true, "pages": ["index", "ai-model", "management"] diff --git a/content/docs/zh/apps/aionui.mdx b/content/docs/zh/apps/aionui.mdx index 683261c..e7396af 100644 --- a/content/docs/zh/apps/aionui.mdx +++ b/content/docs/zh/apps/aionui.mdx @@ -1,6 +1,6 @@ --- title: AionUi - 免费开源的桌面办公Agent -description: AionUi 教程 — 免费开源桌面办公 Agent,支持 Gemini CLI、Claude Code、Codex 等多种 AI 代理。对接 New API 实现多模型工作流。 +description: AionUi 教程 — 免费开源桌面办公 Agent,支持 Gemini CLI、Claude Code、Codex 等多种 AI 代理。对接 LFAPI 实现多模型工作流。 --- @@ -49,19 +49,19 @@ description: AionUi 教程 — 免费开源桌面办公 Agent,支持 Gemini CL - **飞书集成** - 支持通过飞书进行访问和交互 - **本地数据安全** - 所有数据存储在本地 SQLite 数据库中,适合服务器部署 -## NewAPI 接入方法 +## LFAPI 接入方法 ### 参数填写 -提供商类型:NewAPI 支持的类型 -API 密钥:于 NewAPI 获取 -API 地址:NewAPI 站点地址(例如:`https:///v1`) +提供商类型:LFAPI 支持的类型 +API 密钥:于 LFAPI 获取 +API 地址:LFAPI 站点地址(例如:`https:///v1`) -请使用您自己部署的 New API,或确认服务方具备合法上游授权和合规义务的 New API 服务。不要将来源不明的 API 地址或密钥接入生产环境。 +请使用您自己部署的 LFAPI,或确认服务方具备合法上游授权和合规义务的 LFAPI 服务。不要将来源不明的 API 地址或密钥接入生产环境。 ### 配置步骤 -1. **在 NewAPI 中复制 API key** +1. **在 LFAPI 中复制 API key** ![复制 API 密钥](/assets/aionui/copy_apikey.png) 2. **打开 AionUi 设置** @@ -72,21 +72,21 @@ API 地址:NewAPI 站点地址(例如:`https:///v1`) 3. **添加新的提供商** - 点击"添加模型" - - 选择 NewAPI - ![添加 NewAPI 提供商](/assets/aionui/newapi_provider.png) + - 选择 LFAPI + ![添加 LFAPI 提供商](/assets/aionui/newapi_provider.png) 4. **配置 API 信息** - - API 地址:填写您的 NewAPI 站点地址(格式:`https:///v1`) - - API 密钥:粘贴从 NewAPI 控制台复制的 API Key + - API 地址:填写您的 LFAPI 站点地址(格式:`https:///v1`) + - API 密钥:粘贴从 LFAPI 控制台复制的 API Key 5. **添加模型** - 下拉选择需要添加的模型 - - 模型名称应与 NewAPI 中配置的模型名称一致 + - 模型名称应与 LFAPI 中配置的模型名称一致 - 选择合适的请求协议 6. **开始使用** - 返回聊天页面 - - 选择已配置的 NewAPI 模型开始对话 + - 选择已配置的 LFAPI 模型开始对话 ## 相关链接 diff --git a/content/docs/zh/apps/aqbot.mdx b/content/docs/zh/apps/aqbot.mdx index bd57e6b..e3128a5 100644 --- a/content/docs/zh/apps/aqbot.mdx +++ b/content/docs/zh/apps/aqbot.mdx @@ -1,10 +1,10 @@ --- title: AQBot - 本地优先的桌面 AI 工作台 -description: AQBot 教程 — 将本地优先桌面 AI 工作台对接 New API。支持 aqbot:// 一键导入,以及 OpenAI / Claude / Gemini 协议手动配置。 +description: AQBot 教程 — 将本地优先桌面 AI 工作台对接 LFAPI。支持 aqbot:// 一键导入,以及 OpenAI / Claude / Gemini 协议手动配置。 --- - 在 New API + 在 LFAPI 控制台的系统设置->聊天设置中,可添加如下快捷选项,便于在令牌管理页一键填充到 AQBot: @@ -41,37 +41,37 @@ description: AQBot 教程 — 将本地优先桌面 AI 工作台对接 New API - **Agent** — 对话内 Agent(使用已配置服务商 API)与 ACP Agent 工作台 - **本地数据** — 应用状态位于 `~/.aqbot/`,用户文件位于 `~/Documents/aqbot/` -完整功能请参考 [AQBot 官网](https://app.aqbot.top)。本页只覆盖对接 New API。 +完整功能请参考 [AQBot 官网](https://app.aqbot.top)。本页只覆盖对接 LFAPI。 -## NewAPI 接入方法 +## LFAPI 接入方法 -请使用您自己部署的 New API,或确认服务方具备合法上游授权和合规义务的 New API 服务。不要将来源不明的 API 地址或密钥接入生产环境。 +请使用您自己部署的 LFAPI,或确认服务方具备合法上游授权和合规义务的 LFAPI 服务。不要将来源不明的 API 地址或密钥接入生产环境。 ### 方式一:一键导入(推荐) 1. 安装并至少打开过一次 AQBot 桌面端,系统才会注册 `aqbot://` 协议 -2. 在 New API 控制台的「系统设置 → 聊天设置」中加入上文 JSON +2. 在 LFAPI 控制台的「系统设置 → 聊天设置」中加入上文 JSON 3. 打开「令牌管理」,在目标令牌的操作菜单中选择 **AQBot** 4. 浏览器唤起 AQBot,在确认框中核对服务商名称、API 地址、类型 `openai` 和密钥前缀 5. 确认后 AQBot 会进入 **设置 → 服务商管理**;按 API 地址 + 类型复用已有服务商,否则新建 6. 打开该服务商,点击 **同步模型**,再回到对话页选择模型开始使用 -`{address}` 是 New API 站点根地址(例如 `https://your-newapi.example`),不要带 query。AQBot 对 OpenAI 类型会自动补上 `/v1`。导入后不会自动验证密钥,也不会自动同步模型。 +`{address}` 是 LFAPI 站点根地址(例如 `https://your-newapi.example`),不要带 query。AQBot 对 OpenAI 类型会自动补上 `/v1`。导入后不会自动验证密钥,也不会自动同步模型。 ### 方式二:手动配置 -1. 在 New API 令牌管理页复制 API Key +1. 在 LFAPI 令牌管理页复制 API Key 2. 打开 AQBot → **设置 → 服务商管理** → **添加服务商** 3. 填写以下字段: | 字段 | 填法 | | --- | --- | -| 服务商名称 | 例如 `New API` | +| 服务商名称 | 例如 `LFAPI` | | 服务商类型 | `OpenAI`(推荐) | -| API 地址 | New API 站点地址,如 `https://your-newapi.example` | -| API 密钥 | New API 令牌 | +| API 地址 | LFAPI 站点地址,如 `https://your-newapi.example` | +| API 密钥 | LFAPI 令牌 | -4. 点击 **同步模型**,拉取 New API 当前可用的模型 +4. 点击 **同步模型**,拉取 LFAPI 当前可用的模型 5. 回到对话页,选择刚同步的模型开始使用 ![切换模型](/assets/aqbot/switch-model.png) @@ -84,7 +84,7 @@ description: AQBot 教程 — 将本地优先桌面 AI 工作台对接 New API ### 可选:原生协议 -New API 同时提供 Claude / Gemini 原生接口时,可以再添加一条服务商: +LFAPI 同时提供 Claude / Gemini 原生接口时,可以再添加一条服务商: | 需求 | 服务商类型 | API 地址 | | --- | --- | --- | @@ -97,7 +97,7 @@ New API 同时提供 Claude / Gemini 原生接口时,可以再添加一条服 ## 常见问题 - **点击 AQBot 没有唤起应用**:先安装并启动过桌面端。只打开官网或开发服务器不会注册 `aqbot://` -- **导入成功但无法对话**:先点击「同步模型」,并确认模型 ID 与 New API 实际暴露的名称一致 +- **导入成功但无法对话**:先点击「同步模型」,并确认模型 ID 与 LFAPI 实际暴露的名称一致 - **macOS 提示「已损坏」或「无法验证开发者」**:按 [AQBot README](https://github.com/AQBot-Desktop/AQBot) 与[官方快速开始](https://app.aqbot.top/zh/guide/getting-started)放行当前应用,不必关闭整个 Gatekeeper - **一键链接里带有 API Key**:只在已登录的令牌页生成该链接,不要把带真实密钥的 URL 发到公开页面 diff --git a/content/docs/zh/apps/astrbot.mdx b/content/docs/zh/apps/astrbot.mdx index ae18964..af44373 100644 --- a/content/docs/zh/apps/astrbot.mdx +++ b/content/docs/zh/apps/astrbot.mdx @@ -1,6 +1,6 @@ --- title: AstrBot - Agent 聊天机器人 -description: AstrBot 配置教程 — 将开源 Agent 聊天机器人平台对接 New API,为 QQ、飞书、钉钉、企业微信等即时通讯注入 AI 能力。 +description: AstrBot 配置教程 — 将开源 Agent 聊天机器人平台对接 LFAPI,为 QQ、飞书、钉钉、企业微信等即时通讯注入 AI 能力。 --- @@ -14,15 +14,15 @@ description: AstrBot 配置教程 — 将开源 Agent 聊天机器人平台对 - 官方文档:[https://docs.astrbot.app](https://docs.astrbot.app) - 项目主页:[https://github.com/astrbotdevs/astrbot](https://github.com/astrbotdevs/astrbot) -## NewAPI 接入方法 +## LFAPI 接入方法 -AstrBot 支持接入 NewAPI 作为模型提供商,用户可以通过 NewAPI 来访问和使用各种 AI 模型服务。 +AstrBot 支持接入 LFAPI 作为模型提供商,用户可以通过 LFAPI 来访问和使用各种 AI 模型服务。 ### 配置步骤 -#### 获取 NewAPI API Key 密钥 +#### 获取 LFAPI API Key 密钥 -在 NewAPI 注册并登录后,点击上方导航栏的「控制台」,点击「令牌管理」,然后点击「添加令牌」按钮,创建一个新的 API Key 密钥,选择适当的权限,然后点击「创建」。 +在 LFAPI 注册并登录后,点击上方导航栏的「控制台」,点击「令牌管理」,然后点击「添加令牌」按钮,创建一个新的 API Key 密钥,选择适当的权限,然后点击「创建」。 ![create-api-key](/assets/astrbot/image.png) @@ -30,24 +30,24 @@ AstrBot 支持接入 NewAPI 作为模型提供商,用户可以通过 NewAPI ![copy-api-key](/assets/astrbot/image-1.png) -#### 在 AstrBot 中配置 NewAPI 服务提供商 +#### 在 AstrBot 中配置 LFAPI 服务提供商 打开 AstrBot 管理面板,进入「模型提供商」页面,然后,点击「新增模型提供商」按钮。 -NewAPI 完美地支持了 OpenAI Chat Completion 和 Responses 接口,我们点击 「OpenAI」,进入 OpenAI 提供商的配置页面。 +LFAPI 完美地支持了 OpenAI Chat Completion 和 Responses 接口,我们点击 「OpenAI」,进入 OpenAI 提供商的配置页面。 -在弹出的对话框中,将 API Base URL 设置为 NewAPI 的接口地址。请使用您自己部署的 New API,或确认服务方具备合法上游授权和合规义务的 New API 服务。如果您本地部署了 NewAPI,则填写本地地址,例如 `http://localhost:3000/v1`。不要将来源不明的 API 地址或密钥接入生产环境。 +在弹出的对话框中,将 API Base URL 设置为 LFAPI 的接口地址。请使用您自己部署的 LFAPI,或确认服务方具备合法上游授权和合规义务的 LFAPI 服务。如果您本地部署了 LFAPI,则填写本地地址,例如 `http://localhost:3000/v1`。不要将来源不明的 API 地址或密钥接入生产环境。 然后,将 API Key 填入「API Key」字段中,点击「保存」按钮。 ![astrbot-provider-config](/assets/astrbot/image-2.png) -然后点击保存,完成 NewAPI 提供商的配置。 +然后点击保存,完成 LFAPI 提供商的配置。 #### 应用服务提供商 -进入「配置文件」页面,找到模型一节,将「默认聊天模型」修改为刚刚创建的 NewAPI 提供商,点击「保存」按钮。 +进入「配置文件」页面,找到模型一节,将「默认聊天模型」修改为刚刚创建的 LFAPI 提供商,点击「保存」按钮。 ![apply](/assets/astrbot/image-3.png) -至此,您已经成功配置了 NewAPI 作为 AstrBot 的模型提供商。现在,您可以通过 AstrBot 来访问和使用 NewAPI 提供的各种 AI 模型服务了。 +至此,您已经成功配置了 LFAPI 作为 AstrBot 的模型提供商。现在,您可以通过 AstrBot 来访问和使用 LFAPI 提供的各种 AI 模型服务了。 diff --git a/content/docs/zh/apps/cc-switch.mdx b/content/docs/zh/apps/cc-switch.mdx index 448123f..4ff4125 100644 --- a/content/docs/zh/apps/cc-switch.mdx +++ b/content/docs/zh/apps/cc-switch.mdx @@ -1,10 +1,10 @@ --- title: CC Switch - AI CLI 统一管理工具 -description: CC Switch 教程 — 跨平台 AI CLI 管理工具,统一管理 Claude Code、Codex、Gemini CLI 的 Provider 配置、MCP 服务器与系统提示词。对接 New API 一键填入。 +description: CC Switch 教程 — 跨平台 AI CLI 管理工具,统一管理 Claude Code、Codex、Gemini CLI 的 Provider 配置、MCP 服务器与系统提示词。对接 LFAPI 一键填入。 --- - 在 New API 控制台的系统设置->聊天设置中,可添加如下快捷选项,便于在令牌管理页一键填充到 CC Switch: + 在 LFAPI 控制台的系统设置->聊天设置中,可添加如下快捷选项,便于在令牌管理页一键填充到 CC Switch: ```json @@ -42,13 +42,13 @@ description: CC Switch 教程 — 跨平台 AI CLI 管理工具,统一管理 C - **Web 版本** — 适用于无头服务器 / SSH 远程环境的浏览器访问方案 - **CLI 版本** — 命令行交互模式与命令模式双支持 -## NewAPI 接入方法 +## LFAPI 接入方法 -CC Switch 支持 `ccswitch://` Deep Link 协议,可从 New API 令牌管理页一键导入 Provider 配置。 +CC Switch 支持 `ccswitch://` Deep Link 协议,可从 LFAPI 令牌管理页一键导入 Provider 配置。 ### 配置步骤 -1. **在 New API 令牌管理页,点击对应令牌的下拉菜单** +1. **在 LFAPI 令牌管理页,点击对应令牌的下拉菜单** 在菜单中选择 **CC Switch** 选项,系统会自动唤起 CC Switch 应用并弹出配置弹窗。 2. **在弹窗中完成配置** diff --git a/content/docs/zh/apps/cherry-studio.mdx b/content/docs/zh/apps/cherry-studio.mdx index e1ebf8f..238c00b 100644 --- a/content/docs/zh/apps/cherry-studio.mdx +++ b/content/docs/zh/apps/cherry-studio.mdx @@ -1,10 +1,10 @@ --- title: Cherry Studio - 桌面 AI 客户端 -description: Cherry Studio 教程 — 将桌面 AI 客户端对接 New API,一键填入 API Key。内置 30+ 专业 AI 助手,覆盖多种工作场景。 +description: Cherry Studio 教程 — 将桌面 AI 客户端对接 LFAPI,一键填入 API Key。内置 30+ 专业 AI 助手,覆盖多种工作场景。 --- - 在 New API + 在 LFAPI 控制台的系统设置->聊天设置中,可添加如下快捷选项,便于在令牌管理页一键填充到 Cherry Studio: @@ -22,19 +22,19 @@ description: Cherry Studio 教程 — 将桌面 AI 客户端对接 New API,一 - 下载地址:[https://cherry-ai.com/download](https://cherry-ai.com/download) - 官方文档:[https://docs.cherry-ai.com](https://docs.cherry-ai.com) -## NewAPI 接入方法 +## LFAPI 接入方法 ### 参数填写 -提供商类型:NewAPI 支持的类型 -API 密钥:于 NewAPI 获取 -API 地址:NewAPI 站点地址 +提供商类型:LFAPI 支持的类型 +API 密钥:于 LFAPI 获取 +API 地址:LFAPI 站点地址 -请使用您自己部署的 New API,或确认服务方具备合法上游授权和合规义务的 New API 服务。不要将来源不明的 API 地址或密钥接入生产环境。 +请使用您自己部署的 LFAPI,或确认服务方具备合法上游授权和合规义务的 LFAPI 服务。不要将来源不明的 API 地址或密钥接入生产环境。 ### 图文指引 -1. 在 NewAPI 中复制 API key +1. 在 LFAPI 中复制 API key ![复制 API 密钥](/assets/cherry_studio/copy_api_key.png) 2. 添加提供商 @@ -46,7 +46,7 @@ API 地址:NewAPI 站点地址 4. 返回聊天页面 ![切换聊天页面](/assets/cherry_studio/back_to_chat.png) -5. 切换 NewAPI 模型 +5. 切换 LFAPI 模型 ![切换模型](/assets/cherry_studio/switch_model.png) ## 在 Cherry Studio 中画图 diff --git a/content/docs/zh/apps/claude-code.mdx b/content/docs/zh/apps/claude-code.mdx index 9f2cd3f..28eb543 100644 --- a/content/docs/zh/apps/claude-code.mdx +++ b/content/docs/zh/apps/claude-code.mdx @@ -1,6 +1,6 @@ --- title: Claude Code -description: Claude Code 教程 — 将 Anthropic 的终端编程助手对接 New API。支持代码理解、多文件编辑,集成 VS Code 与 JetBrains IDE。 +description: Claude Code 教程 — 将 Anthropic 的终端编程助手对接 LFAPI。支持代码理解、多文件编辑,集成 VS Code 与 JetBrains IDE。 --- diff --git a/content/docs/zh/apps/codex-cli.mdx b/content/docs/zh/apps/codex-cli.mdx index 8bd90bb..0eb094e 100644 --- a/content/docs/zh/apps/codex-cli.mdx +++ b/content/docs/zh/apps/codex-cli.mdx @@ -1,6 +1,6 @@ --- title: OpenAI Codex CLI -description: OpenAI Codex CLI 安装教程 — 在 Windows、macOS、Linux 上安装终端 AI 编程助手,对接 New API。支持沙箱策略与原子补丁编辑。 +description: OpenAI Codex CLI 安装教程 — 在 Windows、macOS、Linux 上安装终端 AI 编程助手,对接 LFAPI。支持沙箱策略与原子补丁编辑。 --- @@ -150,7 +150,7 @@ description: OpenAI Codex CLI 安装教程 — 在 Windows、macOS、Linux 上 ![windows-img-14.webp](/assets/codex/windows-img-14.webp) -> 注意:修改接口地址后,使用所有模型(包括官方预设模型)均调用您配置的、合法授权的自有或组织接入点。请使用您自己部署的 New API,或确认服务方具备合法上游授权和合规义务的 New API 服务。不要将来源不明的 API 地址或密钥接入生产环境。 +> 注意:修改接口地址后,使用所有模型(包括官方预设模型)均调用您配置的、合法授权的自有或组织接入点。请使用您自己部署的 LFAPI,或确认服务方具备合法上游授权和合规义务的 LFAPI 服务。不要将来源不明的 API 地址或密钥接入生产环境。 ### macOS 端图文指引 diff --git a/content/docs/zh/apps/deepchat.mdx b/content/docs/zh/apps/deepchat.mdx index d7b57ce..e590616 100644 --- a/content/docs/zh/apps/deepchat.mdx +++ b/content/docs/zh/apps/deepchat.mdx @@ -1,10 +1,10 @@ --- title: DeepChat - 全功能AI Agent客户端 -description: DeepChat 教程 — 将全功能AI Agent客户端对接 New API,并通过 DeepLink 一键导入 DeepChat 配置。 +description: DeepChat 教程 — 将全功能AI Agent客户端对接 LFAPI,并通过 DeepLink 一键导入 DeepChat 配置。 --- - 在 New API + 在 LFAPI 控制台的系统设置->聊天设置中,可添加如下快捷选项,便于在令牌管理页一键填充到 DeepChat: @@ -23,11 +23,11 @@ description: DeepChat 教程 — 将全功能AI Agent客户端对接 New API, - GitHub 仓库:[https://github.com/ThinkInAIXYZ/deepchat](https://github.com/ThinkInAIXYZ/deepchat) - 下载地址:[https://deepchat.thinkinai.xyz/#/download](https://deepchat.thinkinai.xyz/#/download) -## NewAPI 接入方法 +## LFAPI 接入方法 ### 方式一:一键导入 -1. 在 New API 控制台侧边栏进入「令牌管理」,找到需要使用的令牌 +1. 在 LFAPI 控制台侧边栏进入「令牌管理」,找到需要使用的令牌 进入令牌管理 2. 在令牌操作中选择 **DeepChat** @@ -39,18 +39,18 @@ description: DeepChat 教程 — 将全功能AI Agent客户端对接 New API, 4. 在 DeepChat 的 Provider 导入预览中确认配置 ![确认 DeepChat 配置](/assets/deepchat/4-deepchat-ok.png) -5. 打开模型列表,选择 New API 模型开始使用 +5. 打开模型列表,选择 LFAPI 模型开始使用 ![打开模型列表](/assets/deepchat/5-open-models.png) ### 方式二:手动导入 -1. 在 New API 控制台复制 API Key 和站点地址 - ![New API 手动配置指引](/assets/deepchat/7-new-api-manual-guidance.png) +1. 在 LFAPI 控制台复制 API Key 和站点地址 + ![LFAPI 手动配置指引](/assets/deepchat/7-new-api-manual-guidance.png) -2. 在 DeepChat 设置中添加或编辑 New API Provider,填写 API 地址和 API Key +2. 在 DeepChat 设置中添加或编辑 LFAPI Provider,填写 API 地址和 API Key ![DeepChat 手动配置指引](/assets/deepchat/6-deepchat-manual-guidance.png) -3. 打开模型列表,选择 New API 模型开始使用 +3. 打开模型列表,选择 LFAPI 模型开始使用 ![打开模型列表](/assets/deepchat/5-open-models.png) ## 相关链接 diff --git a/content/docs/zh/apps/factory-droid-cli.mdx b/content/docs/zh/apps/factory-droid-cli.mdx index c689596..8433b24 100644 --- a/content/docs/zh/apps/factory-droid-cli.mdx +++ b/content/docs/zh/apps/factory-droid-cli.mdx @@ -1,6 +1,6 @@ --- title: Factory Droid CLI -description: Factory Droid CLI 教程 — 安装并配置 AI 软件工程助手,对接 New API。从规划到测试的全流程自动化开发。 +description: Factory Droid CLI 教程 — 安装并配置 AI 软件工程助手,对接 LFAPI。从规划到测试的全流程自动化开发。 --- diff --git a/content/docs/zh/apps/fluent-read.mdx b/content/docs/zh/apps/fluent-read.mdx index 36cb630..f98626c 100644 --- a/content/docs/zh/apps/fluent-read.mdx +++ b/content/docs/zh/apps/fluent-read.mdx @@ -1,10 +1,10 @@ --- title: 流畅阅读 (FluentRead) - 开源翻译插件 -description: FluentRead 教程 — 开源浏览器翻译插件,支持 20+ 翻译引擎与 AI 大模型翻译。对接 New API 实现沉浸式双语阅读体验。 +description: FluentRead 教程 — 开源浏览器翻译插件,支持 20+ 翻译引擎与 AI 大模型翻译。对接 LFAPI 实现沉浸式双语阅读体验。 --- - 在 New API + 在 LFAPI 控制台的系统设置->聊天设置中,可添加如下快捷选项,便于在令牌管理页一键填充到 FluentRead: @@ -52,9 +52,9 @@ description: FluentRead 教程 — 开源浏览器翻译插件,支持 20+ 翻 ## 🚀 配置方法 -### 从 New API 控制台导入配置(推荐) +### 从 LFAPI 控制台导入配置(推荐) -当浏览器安装了流畅阅读插件后,打开 New API 控制台->令牌管理页面会弹出添加流畅阅读的提示 +当浏览器安装了流畅阅读插件后,打开 LFAPI 控制台->令牌管理页面会弹出添加流畅阅读的提示 ![添加提示](/assets/fluentread/hint.png) @@ -62,7 +62,7 @@ description: FluentRead 教程 — 开源浏览器翻译插件,支持 20+ 翻 ![确认](/assets/fluentread/confirm.png) -确认导入后在流畅阅读中的New API配置便会启用 +确认导入后在流畅阅读中的LFAPI配置便会启用 ![配置结果](/assets/fluentread/fluentread.png) @@ -72,8 +72,8 @@ description: FluentRead 教程 — 开源浏览器翻译插件,支持 20+ 翻 | 配置项 | 内容 | | ---------- | -------------------------- | -| 翻译服务 | NewAPI | -| 访问令牌 | NewAPI 密钥 | -| NewAPI接口 | NewAPI部署地址(不带/v1) | +| 翻译服务 | LFAPI | +| 访问令牌 | LFAPI 密钥 | +| LFAPI接口 | LFAPI部署地址(不带/v1) | | 模型 | 列表中选择,或者自定义模型 | | 自定义模型 | 模型名称 | diff --git a/content/docs/zh/apps/index.mdx b/content/docs/zh/apps/index.mdx index 02bea82..7a7f832 100644 --- a/content/docs/zh/apps/index.mdx +++ b/content/docs/zh/apps/index.mdx @@ -17,7 +17,7 @@ import { ## 概述 -New API 兼容多种流行的 AI 应用和工具。以下是已验证支持的应用列表及配置指南。 +LFAPI 兼容多种流行的 AI 应用和工具。以下是已验证支持的应用列表及配置指南。 ## 支持的应用 @@ -38,13 +38,13 @@ New API 兼容多种流行的 AI 应用和工具。以下是已验证支持的 /> } title="AQBot" - description="本地优先的桌面 AI 工作台,支持多服务商对话、ACP Agent,可通过 aqbot:// 一键导入 New API。" + description="本地优先的桌面 AI 工作台,支持多服务商对话、ACP Agent,可通过 aqbot:// 一键导入 LFAPI。" href="/zh/docs/apps/aqbot" /> } title="CC Switch" - description="支持一键填入,点击 New API 后弹窗配置 Claude/Codex/Gemini 及主模型与各型号。" + description="支持一键填入,点击 LFAPI 后弹窗配置 Claude/Codex/Gemini 及主模型与各型号。" href="/zh/docs/apps/cc-switch" /> } title="OpenClaw" - description="自托管 AI 助手平台 — 安装 OpenClaw,对接 New API,支持飞书、Discord、Slack 等多渠道 AI 代理管理。" + description="自托管 AI 助手平台 — 安装 OpenClaw,对接 LFAPI,支持飞书、Discord、Slack 等多渠道 AI 代理管理。" href="/zh/docs/apps/openclaw" /> LangBot 是一个开源的即时通信机器人开发平台,支持多种即时通信平台,如飞书、钉钉、微信、QQ、Telegram、Discord、Slack 等。接入全球主流的 AI 模型,支持知识库、Agent、MCP等多种 AI - 应用能力,并完美适配 NewAPI。 + 应用能力,并完美适配 LFAPI。 - 官网地址:[https://langbot.app](https://langbot.app/) @@ -15,19 +15,19 @@ description: LangBot 对接教程 — 面向飞书、钉钉、Telegram、Discord - 官方文档:[https://docs.langbot.app](https://docs.langbot.app/) - 开源地址:[https://github.com/langbot-app/LangBot](https://github.com/langbot-app/LangBot) -## 接入 NewAPI +## 接入 LFAPI -LangBot 支持接入本地部署的 NewAPI 和第三方使用 NewAPI 搭建的 NewAPI 服务。 +LangBot 支持接入本地部署的 LFAPI 和第三方使用 LFAPI 搭建的 LFAPI 服务。 ### 使用方式 -1. 从 NewAPI 中获取 API key +1. 从 LFAPI 中获取 API key ![获取 API key](/assets/langbot/get_api_key.png) - 若是本地部署的 NewAPI 请自行配置 API 地址(可参考[容器网络连接](https://docs.langbot.app/zh/workshop/network-details.html)),若使用第三方 NewAPI 服务,可在页面上复制地址。注意,地址后需要添加`/v1`。 + 若是本地部署的 LFAPI 请自行配置 API 地址(可参考[容器网络连接](https://docs.langbot.app/zh/workshop/network-details.html)),若使用第三方 LFAPI 服务,可在页面上复制地址。注意,地址后需要添加`/v1`。 -2. 在 LangBot 中添加模型,选择使用 NewAPI 供应商,填写对应的 API key 和 API 地址 - ![添加 NewAPI 模型](/assets/langbot/add_newapi_model.png) +2. 在 LangBot 中添加模型,选择使用 LFAPI 供应商,填写对应的 API key 和 API 地址 + ![添加 LFAPI 模型](/assets/langbot/add_newapi_model.png) 3. 在流水线中选择使用模型 @@ -43,9 +43,9 @@ LangBot 支持接入本地部署的 NewAPI 和第三方使用 NewAPI 搭建的 N ### 使用 LangBot 知识库 -LangBot 支持使用 NewAPI 的嵌入模型,并将其作为知识库的向量模型。 +LangBot 支持使用 LFAPI 的嵌入模型,并将其作为知识库的向量模型。 -1. 在 LangBot 中添加嵌入模型,选择使用 NewAPI 供应商 +1. 在 LangBot 中添加嵌入模型,选择使用 LFAPI 供应商 ![添加嵌入模型](/assets/langbot/add_embedding_model.png) 2. 在新建知识库时选用嵌入模型 diff --git a/content/docs/zh/apps/luna-translator.mdx b/content/docs/zh/apps/luna-translator.mdx index aaf39bb..25ef14f 100644 --- a/content/docs/zh/apps/luna-translator.mdx +++ b/content/docs/zh/apps/luna-translator.mdx @@ -1,10 +1,10 @@ --- title: LunaTranslator - 开源 GalGame 翻译器 -description: LunaTranslator 教程 — 开源 GalGame / 视觉小说翻译器,支持 HOOK、OCR 与 AI 翻译引擎。对接 New API 提升翻译质量。 +description: LunaTranslator 教程 — 开源 GalGame / 视觉小说翻译器,支持 HOOK、OCR 与 AI 翻译引擎。对接 LFAPI 提升翻译质量。 --- - 在 New API + 在 LFAPI 控制台的系统设置->聊天设置中,可添加如下快捷选项,便于在令牌管理页一键填充到 LunaTranslator: @@ -43,13 +43,13 @@ description: LunaTranslator 教程 — 开源 GalGame / 视觉小说翻译器, 在 [LunaTranslator 文档- 下载 & 启动 & 更新](https://docs.lunatranslator.org/zh/README.html) 进行下载安装 -## 在 LunaTranslator 接入 NewAPI +## 在 LunaTranslator 接入 LFAPI -LunaTranslator 支持接入本地部署的 NewAPI。请使用您自己部署的 New API,或确认服务方具备合法上游授权和合规义务的 New API 服务。不要将来源不明的 API 地址或密钥接入生产环境。 +LunaTranslator 支持接入本地部署的 LFAPI。请使用您自己部署的 LFAPI,或确认服务方具备合法上游授权和合规义务的 LFAPI 服务。不要将来源不明的 API 地址或密钥接入生产环境。 ### 一键配置 -1. 在 New API 控制台的`系统设置`->`聊天设置`中,添加如下快捷选项: +1. 在 LFAPI 控制台的`系统设置`->`聊天设置`中,添加如下快捷选项: ```json { "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" } @@ -57,7 +57,7 @@ LunaTranslator 支持接入本地部署的 NewAPI。请使用您自己部署的 ![add_config](/assets/luna_translator/add_config.png) -2. 在 **`NewAPI`** -> `控制台` -> `令牌管理` 选项卡中选择要使用在 LunaTranslator 的令牌,点击聊天按钮旁的下拉选项,选择 `LunaTranslator`,将会跳转到 LunaTranslator 并自动配置 API 地址与 API Key +2. 在 **`LFAPI`** -> `控制台` -> `令牌管理` 选项卡中选择要使用在 LunaTranslator 的令牌,点击聊天按钮旁的下拉选项,选择 `LunaTranslator`,将会跳转到 LunaTranslator 并自动配置 API 地址与 API Key ![跳转到 LunaTranslator](/assets/luna_translator/jump_to_app.png) @@ -65,7 +65,7 @@ LunaTranslator 支持接入本地部署的 NewAPI。请使用您自己部署的 ![设置api](/assets/luna_translator/api_setting.png) -4. 点击 **model** 下拉框旁的刷新按钮,获取 NewAPI 平台的模型列表,选择或输入模型名称,完成后点击确定保存 +4. 点击 **model** 下拉框旁的刷新按钮,获取 LFAPI 平台的模型列表,选择或输入模型名称,完成后点击确定保存 ![设置模型](/assets/luna_translator/setting_model.png) @@ -75,7 +75,7 @@ LunaTranslator 支持接入本地部署的 NewAPI。请使用您自己部署的 ### 手动配置 -1. 在 **`NewAPI`** -> `控制台` -> `令牌管理` 选项卡中获取 API Key +1. 在 **`LFAPI`** -> `控制台` -> `令牌管理` 选项卡中获取 API Key ![获取 API Key](/assets/luna_translator/copy_api_key.png) @@ -93,11 +93,11 @@ LunaTranslator 支持接入本地部署的 NewAPI。请使用您自己部署的 ![设置 API2](/assets/luna_translator/setting_api2.png) -5. 点击 **model** 下拉框旁的刷新按钮,获取 NewAPI 平台的模型列表,选择或输入模型名称,完成后点击确定保存 +5. 点击 **model** 下拉框旁的刷新按钮,获取 LFAPI 平台的模型列表,选择或输入模型名称,完成后点击确定保存 ![设置 API3](/assets/luna_translator/setting_api3.png) -6. 点击 **NewAPI** 旁边的开关按钮,启用接口即可开始使用 +6. 点击 **LFAPI** 旁边的开关按钮,启用接口即可开始使用 ![打开API](/assets/luna_translator/open_api.png) diff --git a/content/docs/zh/apps/memoh.mdx b/content/docs/zh/apps/memoh.mdx index 42ab961..da4f987 100644 --- a/content/docs/zh/apps/memoh.mdx +++ b/content/docs/zh/apps/memoh.mdx @@ -1,6 +1,6 @@ --- title: Memoh - 容器化 AI 智能体平台 -description: Memoh 对接教程 — 将自托管容器化 AI 智能体平台对接 New API,为 Telegram、Discord、飞书、QQ、微信等渠道创建具有长期记忆的 AI 机器人。 +description: Memoh 对接教程 — 将自托管容器化 AI 智能体平台对接 LFAPI,为 Telegram、Discord、飞书、QQ、微信等渠道创建具有长期记忆的 AI 机器人。 --- @@ -43,15 +43,15 @@ sudo docker compose up -d 启动后访问 `http://localhost:8082`,默认账号密码:`admin` / `admin123`。 -## NewAPI 接入方法 +## LFAPI 接入方法 -Memoh 支持接入任何 OpenAI 兼容的模型提供商,可以通过 NewAPI 来统一管理和访问各种 AI 模型服务。 +Memoh 支持接入任何 OpenAI 兼容的模型提供商,可以通过 LFAPI 来统一管理和访问各种 AI 模型服务。 ### 配置步骤 -#### 获取 NewAPI API Key 密钥 +#### 获取 LFAPI API Key 密钥 -在 NewAPI 注册并登录后,点击上方导航栏的「控制台」,点击「令牌管理」,然后点击「添加令牌」按钮,创建一个新的 API Key 密钥,选择适当的权限,然后点击「创建」。 +在 LFAPI 注册并登录后,点击上方导航栏的「控制台」,点击「令牌管理」,然后点击「添加令牌」按钮,创建一个新的 API Key 密钥,选择适当的权限,然后点击「创建」。 创建成功后,点击复制密钥按钮,复制生成的 API Key 密钥。 @@ -59,14 +59,14 @@ Memoh 支持接入任何 OpenAI 兼容的模型提供商,可以通过 NewAPI #### 在 Memoh 中添加模型提供商 -登录 Memoh Web 管理面板,进入提供商管理页面,点击NewAPI。 +登录 Memoh Web 管理面板,进入提供商管理页面,点击LFAPI。 ![switch-to-newapi-provider](/assets/memoh/switch_to_newapi_provider.png) 在配置页面中填写以下信息: -- **API Base URL**:填写 NewAPI 的接口地址,例如 `https://api.example.com/v1`(如果本地部署则填写 `http://localhost:3000/v1`) -- **API Key**:粘贴从 NewAPI 复制的 API Key 密钥 +- **API Base URL**:填写 LFAPI 的接口地址,例如 `https://api.example.com/v1`(如果本地部署则填写 `http://localhost:3000/v1`) +- **API Key**:粘贴从 LFAPI 复制的 API Key 密钥 点击保存,完成提供商配置。 @@ -76,8 +76,8 @@ Memoh 支持接入任何 OpenAI 兼容的模型提供商,可以通过 NewAPI #### 为机器人配置模型 -进入机器人设置页面,在模型配置一栏中,将默认聊天模型切换为刚刚通过 NewAPI 提供商添加的模型,点击保存。 +进入机器人设置页面,在模型配置一栏中,将默认聊天模型切换为刚刚通过 LFAPI 提供商添加的模型,点击保存。 ![set_chat_model](/assets/memoh/set_chat_model.png) -至此,您已经成功配置了 NewAPI 作为 Memoh 的模型提供商。现在,您可以通过 Memoh 中的各个渠道(Telegram、Discord、飞书等)与 AI 机器人对话,所有请求将通过 NewAPI 进行转发。 +至此,您已经成功配置了 LFAPI 作为 Memoh 的模型提供商。现在,您可以通过 Memoh 中的各个渠道(Telegram、Discord、飞书等)与 AI 机器人对话,所有请求将通过 LFAPI 进行转发。 diff --git a/content/docs/zh/apps/openclaw.mdx b/content/docs/zh/apps/openclaw.mdx index 765ab28..44ec43d 100644 --- a/content/docs/zh/apps/openclaw.mdx +++ b/content/docs/zh/apps/openclaw.mdx @@ -1,6 +1,6 @@ --- title: OpenClaw - 自托管 AI 智能助手平台 -description: OpenClaw 教程 — 安装 OpenClaw、对接 New API,快速搭建自托管 AI 助手。开源项目,支持 Telegram、Discord、WhatsApp 等多渠道集成。 +description: OpenClaw 教程 — 安装 OpenClaw、对接 LFAPI,快速搭建自托管 AI 助手。开源项目,支持 Telegram、Discord、WhatsApp 等多渠道集成。 --- @@ -13,7 +13,7 @@ description: OpenClaw 教程 — 安装 OpenClaw、对接 New API,快速搭建 - GitHub:[https://github.com/openclaw/openclaw](https://github.com/openclaw/openclaw) -OpenClaw 完全开源,你可以在 [OpenClaw 的 GitHub 仓库](https://github.com/openclaw/openclaw) 浏览源码、提交 Issue 或参与贡献。本教程涵盖安装、配置,以及将 OpenClaw 对接 New API 的完整步骤。 +OpenClaw 完全开源,你可以在 [OpenClaw 的 GitHub 仓库](https://github.com/openclaw/openclaw) 浏览源码、提交 Issue 或参与贡献。本教程涵盖安装、配置,以及将 OpenClaw 对接 LFAPI 的完整步骤。 ## 🌟 核心特性 @@ -42,12 +42,12 @@ OpenClaw 完全开源,你可以在 [OpenClaw 的 GitHub 仓库](https://github - Node.js 22 或更高版本 - - 一个可用的 New API 地址(通常以 `/v1` 结尾) - - 一个可用的 New API API Key - - 请使用您自己部署的 New API,或确认服务方具备合法上游授权和合规义务的 New API 服务。不要将来源不明的 API 地址或密钥接入生产环境。 + - 一个可用的 LFAPI 地址(通常以 `/v1` 结尾) + - 一个可用的 LFAPI API Key + - 请使用您自己部署的 LFAPI,或确认服务方具备合法上游授权和合规义务的 LFAPI 服务。不要将来源不明的 API 地址或密钥接入生产环境。 -在开始接入 New API 之前,建议先按 OpenClaw 官方当前推荐流程把 Gateway 和 Control UI 跑起来。这样后续排查问题时,更容易区分是 OpenClaw 本身未启动,还是模型提供商配置有误。 +在开始接入 LFAPI 之前,建议先按 OpenClaw 官方当前推荐流程把 Gateway 和 Control UI 跑起来。这样后续排查问题时,更容易区分是 OpenClaw 本身未启动,还是模型提供商配置有误。 ### 1. 安装 OpenClaw(macOS/Linux) @@ -63,7 +63,7 @@ curl -fsSL https://openclaw.ai/install.sh | bash openclaw onboard --install-daemon ``` -该向导会完成基础认证、Gateway 设置,以及可选的渠道初始化。这里的目标是先把 OpenClaw 跑起来,后面再把默认模型切到 New API。 +该向导会完成基础认证、Gateway 设置,以及可选的渠道初始化。这里的目标是先把 OpenClaw 跑起来,后面再把默认模型切到 LFAPI。 ### 3. 检查 Gateway 与 Control UI @@ -91,21 +91,21 @@ OpenClaw 的配置文件通常位于 `~/.openclaw/openclaw.json`,你可以在 详细说明见官方环境变量文档:[Environment Variables](https://docs.openclaw.ai/help/environment)。 -## 🚀 使用 New API 作为模型提供商 +## 🚀 使用 LFAPI 作为模型提供商 -OpenClaw 支持通过 `models.providers` 接入自定义或兼容 OpenAI 接口的模型网关。对于 New API,最常见的做法是把它作为一个自定义 provider 加进配置里,再把默认模型指向 `newapi/模型ID`。 +OpenClaw 支持通过 `models.providers` 接入自定义或兼容 OpenAI 接口的模型网关。对于 LFAPI,最常见的做法是把它作为一个自定义 provider 加进配置里,再把默认模型指向 `newapi/模型ID`。 ### 接入思路 1. 在 `models.providers` 下声明一个 `newapi` provider -2. 将 `baseUrl` 指向你的 New API 地址,并确保包含 `/v1` +2. 将 `baseUrl` 指向你的 LFAPI 地址,并确保包含 `/v1` 3. 将 `api` 设为 `openai-completions` 4. 在 `models` 中列出你希望 OpenClaw 使用的模型 ID 5. 在 `agents.defaults.model.primary` 中把默认模型切到 `newapi/...` ### 推荐做法:用环境变量保存密钥 -先在当前 shell、服务环境,或 OpenClaw 可读取的 `.env` 中提供你的 New API 密钥: +先在当前 shell、服务环境,或 OpenClaw 可读取的 `.env` 中提供你的 LFAPI 密钥: ```bash export NEWAPI_API_KEY="sk-your-newapi-key" @@ -145,17 +145,17 @@ export NEWAPI_API_KEY="sk-your-newapi-key" } ``` -这不是一份必须原样照抄的完整配置,而是接入 New API 最关键的部分。只要 `provider`、模型 ID 和默认模型引用对应正确,OpenClaw 就能通过 New API 调用你暴露出来的模型资源。 +这不是一份必须原样照抄的完整配置,而是接入 LFAPI 最关键的部分。只要 `provider`、模型 ID 和默认模型引用对应正确,OpenClaw 就能通过 LFAPI 调用你暴露出来的模型资源。 ### 关键配置说明 | 配置项 | 说明 | | --- | --- | | `models.mode` | 建议设为 `merge`,在保留 OpenClaw 内置 provider 的同时追加 `newapi` | -| `models.providers.newapi.baseUrl` | 你的 New API 地址,通常需要带上 `/v1` | -| `models.providers.newapi.apiKey` | New API 密钥,推荐通过 `${NEWAPI_API_KEY}` 注入 | -| `models.providers.newapi.api` | 对于 New API 这类 OpenAI 兼容网关,使用 `openai-completions` | -| `models.providers.newapi.models` | 这里列出的模型 ID 必须与你的 New API 实际暴露的模型名称一致 | +| `models.providers.newapi.baseUrl` | 你的 LFAPI 地址,通常需要带上 `/v1` | +| `models.providers.newapi.apiKey` | LFAPI 密钥,推荐通过 `${NEWAPI_API_KEY}` 注入 | +| `models.providers.newapi.api` | 对于 LFAPI 这类 OpenAI 兼容网关,使用 `openai-completions` | +| `models.providers.newapi.models` | 这里列出的模型 ID 必须与你的 LFAPI 实际暴露的模型名称一致 | | `agents.defaults.model.primary` | 默认主模型,格式必须是 `provider/model-id` | | `agents.defaults.model.fallbacks` | 备选模型列表,主模型失败时自动切换 | | `agents.defaults.models` | 可选,用来给模型起别名,方便在 UI 或会话里引用 | diff --git a/content/docs/zh/business/index.mdx b/content/docs/zh/business/index.mdx index c7674bc..aa9be1e 100644 --- a/content/docs/zh/business/index.mdx +++ b/content/docs/zh/business/index.mdx @@ -4,7 +4,7 @@ title: 商务合作 ## 💡 我们的初衷 -New API 诞生的初衷很简单:**让更多人能够使用 AI,降低 AI 的门槛**。 +LFAPI 诞生的初衷很简单:**让更多人能够使用 AI,降低 AI 的门槛**。 我们相信,AI 不应该只是少数人的特权,而应该成为每个人都能触及的工具。无论你是独立开发者、初创团队,还是大型企业,都应该能够在合法授权和合规部署前提下,降低企业内部接入与管理复杂度。 @@ -12,16 +12,16 @@ New API 诞生的初衷很简单:**让更多人能够使用 AI,降低 AI 的 我们选择商业化,并非为了追求利润最大化,而是为了让项目能够**良性、可持续地发展**。 -服务器需要成本,维护需要精力,生态建设需要资源——适度的商业化是让 New API 持续为社区服务的必要保障。我们承诺将收益投入到产品迭代、社区建设和生态拓展中,让每一分支持都能转化为更好的服务。 +服务器需要成本,维护需要精力,生态建设需要资源——适度的商业化是让 LFAPI 持续为社区服务的必要保障。我们承诺将收益投入到产品迭代、社区建设和生态拓展中,让每一分支持都能转化为更好的服务。 ## 📜 君子协议 -New API 社区一直秉承**君子协议**的理念: +LFAPI 社区一直秉承**君子协议**的理念: - 我们信任每一位用户,提供灵活开放的使用方式 - 我们不设置繁琐的限制,相信大家会合理使用资源 - 我们期待用户在受益的同时,也能尊重项目的可持续发展 -- 如果您的项目因 New API 而获益,欢迎以任何形式回馈社区 +- 如果您的项目因 LFAPI 而获益,欢迎以任何形式回馈社区 这是一份基于信任与尊重的约定,也是开源精神的延续。 @@ -37,4 +37,4 @@ New API 社区一直秉承**君子协议**的理念: 企业微信二维码 -New API 致力于为开发者与企业提供合法授权场景下的统一 API 网关与用量管理能力。如果您希望在产品、技术层面与我们展开深度合作,我们诚挚欢迎您的来信!合作应基于合法授权、合规部署和正当业务场景开展,并遵守上游服务条款、平台规则和监管要求。客户必须合法取得上游授权,并对自身服务资质、合规运营、内容安全和用户管理承担责任。 +LFAPI 致力于为开发者与企业提供合法授权场景下的统一 API 网关与用量管理能力。如果您希望在产品、技术层面与我们展开深度合作,我们诚挚欢迎您的来信!合作应基于合法授权、合规部署和正当业务场景开展,并遵守上游服务条款、平台规则和监管要求。客户必须合法取得上游授权,并对自身服务资质、合规运营、内容安全和用户管理承担责任。 diff --git a/content/docs/zh/guide/console/channel-management.mdx b/content/docs/zh/guide/console/channel-management.mdx index e5b4a46..ce829e6 100644 --- a/content/docs/zh/guide/console/channel-management.mdx +++ b/content/docs/zh/guide/console/channel-management.mdx @@ -8,7 +8,7 @@ import { Callout } from 'fumadocs-ui/components/callout'; 上游渠道必须是部署方合法拥有或已获授权的账号、API Key、模型服务或企业合约。负载均衡、故障自动切换、加权随机、多密钥管理等功能用于高可用和企业多账号管理,使用时应遵守上游服务条款、平台规则和监管要求。 -在这里可以管理 NewAPI 的上游渠道 +在这里可以管理 LFAPI 的上游渠道 ![渠道](/assets/guide/channel.png) diff --git a/content/docs/zh/guide/console/chat.mdx b/content/docs/zh/guide/console/chat.mdx index 2de2cca..cc5e3ee 100644 --- a/content/docs/zh/guide/console/chat.mdx +++ b/content/docs/zh/guide/console/chat.mdx @@ -2,7 +2,7 @@ title: 聊天 --- -New API 可快速访问一些 AI 聊天应用,可以方便地进行测试或使用 +LFAPI 可快速访问一些 AI 聊天应用,可以方便地进行测试或使用 ## 导入配置 @@ -24,7 +24,7 @@ New API 可快速访问一些 AI 聊天应用,可以方便地进行测试或 - Lobe Chat 目前不支持从 New API 一键导入配置,需要手动填写 + Lobe Chat 目前不支持从 LFAPI 一键导入配置,需要手动填写 配置填写 @@ -38,12 +38,12 @@ New API 可快速访问一些 AI 聊天应用,可以方便地进行测试或 助手与日常办公、协作、知识管理等场景深度结合,用户可以更高效地处理信息、自动化重复任务,并获得智能建议,提升整体工作效率和体验。 -支持从 New API 一键导入配置 +支持从 LFAPI 一键导入配置 ## AMA 问天 - AMA 问天是 NewAPI + AMA 问天是 LFAPI 提供的智能问答助手,支持多轮对话和复杂问题解答。用户可以通过自然语言与 AMA 问天进行交流,获取知识、技术支持或业务咨询,提升沟通效率和体验。 diff --git a/content/docs/zh/guide/console/dashboard.mdx b/content/docs/zh/guide/console/dashboard.mdx index 6f2703f..5a7acf4 100644 --- a/content/docs/zh/guide/console/dashboard.mdx +++ b/content/docs/zh/guide/console/dashboard.mdx @@ -2,6 +2,6 @@ title: 数据看板 --- -在这里可以查看 NewAPI 的总体统计数据 +在这里可以查看 LFAPI 的总体统计数据 ![数据看板](/assets/guide/dashboard.png) diff --git a/content/docs/zh/guide/console/redeem-code-management.mdx b/content/docs/zh/guide/console/redeem-code-management.mdx index 27e48c0..5479871 100644 --- a/content/docs/zh/guide/console/redeem-code-management.mdx +++ b/content/docs/zh/guide/console/redeem-code-management.mdx @@ -4,7 +4,7 @@ title: 兑换码 import { Callout } from 'fumadocs-ui/components/callout'; -这里可以管理 NewAPI 的兑换码。兑换码仅用于内部测试、授权客户交付、活动赠送或账务调整。 +这里可以管理 LFAPI 的兑换码。兑换码仅用于内部测试、授权客户交付、活动赠送或账务调整。 兑换码使用应符合授权范围、平台规则和所在地法律法规要求。 diff --git a/content/docs/zh/guide/console/settings/chat-settings.mdx b/content/docs/zh/guide/console/settings/chat-settings.mdx index 3e2ad6e..8ee0ba1 100644 --- a/content/docs/zh/guide/console/settings/chat-settings.mdx +++ b/content/docs/zh/guide/console/settings/chat-settings.mdx @@ -2,7 +2,7 @@ title: 聊天设置 --- -这里可以配置 NewAPI 的聊天集成,可以使用以下变量: +这里可以配置 LFAPI 的聊天集成,可以使用以下变量: - `{key}`:替换为密钥 - `{address}`:替换为服务器地址(末尾不带 / 和 /v1) diff --git a/content/docs/zh/guide/console/settings/other-settings.mdx b/content/docs/zh/guide/console/settings/other-settings.mdx index 49d823a..e64529e 100644 --- a/content/docs/zh/guide/console/settings/other-settings.mdx +++ b/content/docs/zh/guide/console/settings/other-settings.mdx @@ -2,7 +2,7 @@ title: 其它设置 --- -这里检查 NewAPI 更新,设置公告和页面自定义 +这里检查 LFAPI 更新,设置公告和页面自定义 ![其它1](/assets/guide/other-setting-1.png) ![其它2](/assets/guide/other-setting-2.png) diff --git a/content/docs/zh/guide/console/settings/rate-settings.mdx b/content/docs/zh/guide/console/settings/rate-settings.mdx index 5aab4d0..4a53bd4 100644 --- a/content/docs/zh/guide/console/settings/rate-settings.mdx +++ b/content/docs/zh/guide/console/settings/rate-settings.mdx @@ -2,11 +2,11 @@ title: 倍率设置 --- -倍率设置是 NewAPI 内部成本核算体系的核心配置,通过设置不同的倍率可以灵活控制各种模型和用户组的组织内部成本分摊、预算控制或企业客户账务配置标准。 +倍率设置是 LFAPI 内部成本核算体系的核心配置,通过设置不同的倍率可以灵活控制各种模型和用户组的组织内部成本分摊、预算控制或企业客户账务配置标准。 ## 倍率系统概述 -NewAPI 使用三层倍率体系来计算用户的配额消耗: +LFAPI 使用三层倍率体系来计算用户的配额消耗: 1. 模型倍率(ModelRatio) - 定义不同AI模型的基础计费倍数 2. 补全倍率(CompletionRatio) - 对输出token进行额外计费调整 @@ -14,7 +14,7 @@ NewAPI 使用三层倍率体系来计算用户的配额消耗: ### 配额与倍率的关系 -在 New API 系统中,倍率是计算配额消耗的关键参数。配额是系统内部的计费单位,所有的API调用最终都会转换为配额点数进行扣减。 +在 LFAPI 系统中,倍率是计算配额消耗的关键参数。配额是系统内部的计费单位,所有的API调用最终都会转换为配额点数进行扣减。 配额单位转换: @@ -44,7 +44,7 @@ NewAPI 使用三层倍率体系来计算用户的配额消耗: #### 预消费与后消费机制 -New API 采用预消费和后消费的双重计费机制: +LFAPI 采用预消费和后消费的双重计费机制: 1. **预消费阶段**:API调用前,根据预估token数计算配额消耗并预扣 2. **后消费阶段**:API调用完成后,根据实际token数重新计算配额消耗 diff --git a/content/docs/zh/guide/console/settings/system-settings.mdx b/content/docs/zh/guide/console/settings/system-settings.mdx index 969f333..510cb47 100644 --- a/content/docs/zh/guide/console/settings/system-settings.mdx +++ b/content/docs/zh/guide/console/settings/system-settings.mdx @@ -2,7 +2,7 @@ title: 系统设置 --- -这里可以配置 NewAPI worker,邮件服务器和登录注册相关设置 +这里可以配置 LFAPI worker,邮件服务器和登录注册相关设置 ![系统设置1](/assets/guide/system-setting-1.png) diff --git a/content/docs/zh/guide/console/user-management.mdx b/content/docs/zh/guide/console/user-management.mdx index 6026617..7337041 100644 --- a/content/docs/zh/guide/console/user-management.mdx +++ b/content/docs/zh/guide/console/user-management.mdx @@ -2,6 +2,6 @@ title: 用户管理 --- -这里可以管理 NewAPI 的注册用户 +这里可以管理 LFAPI 的注册用户 ![用户管理](/assets/guide/user-management.png) diff --git a/content/docs/zh/guide/feature-guide/admin/system-setting-advanced.mdx b/content/docs/zh/guide/feature-guide/admin/system-setting-advanced.mdx index a3ebcd4..784fa2c 100644 --- a/content/docs/zh/guide/feature-guide/admin/system-setting-advanced.mdx +++ b/content/docs/zh/guide/feature-guide/admin/system-setting-advanced.mdx @@ -191,11 +191,11 @@ Stripe 是国际信用卡支付平台。 ## 倍率设置 -倍率设置是 New API 计费系统的核心配置,通过设置不同的倍率可以灵活控制各种模型和用户组的计费标准。 +倍率设置是 LFAPI 计费系统的核心配置,通过设置不同的倍率可以灵活控制各种模型和用户组的计费标准。 ### 倍率系统概述 -New API 使用三层倍率体系来计算用户的配额消耗: +LFAPI 使用三层倍率体系来计算用户的配额消耗: 1. **模型倍率(ModelRatio)** - 定义不同AI模型的基础计费倍数 2. **补全倍率(CompletionRatio)** - 对输出token进行额外计费调整 @@ -203,7 +203,7 @@ New API 使用三层倍率体系来计算用户的配额消耗: ### 配额与倍率的关系 -在 New API 系统中,倍率是计算配额消耗的关键参数。配额是系统内部的计费单位,所有的API调用最终都会转换为配额点数进行扣减。 +在 LFAPI 系统中,倍率是计算配额消耗的关键参数。配额是系统内部的计费单位,所有的API调用最终都会转换为配额点数进行扣减。 **配额单位转换:** @@ -233,7 +233,7 @@ New API 使用三层倍率体系来计算用户的配额消耗: #### 预消费与后消费机制 -New API 采用预消费和后消费的双重计费机制: +LFAPI 采用预消费和后消费的双重计费机制: 1. **预消费阶段**:API调用前,根据预估token数计算配额消耗并预扣 2. **后消费阶段**:API调用完成后,根据实际token数重新计算配额消耗 diff --git a/content/docs/zh/guide/feature-guide/admin/system-setting.mdx b/content/docs/zh/guide/feature-guide/admin/system-setting.mdx index c0c3663..b916463 100644 --- a/content/docs/zh/guide/feature-guide/admin/system-setting.mdx +++ b/content/docs/zh/guide/feature-guide/admin/system-setting.mdx @@ -88,7 +88,7 @@ Root 专属的全局配置中心,涵盖站点基础信息、计费规则、支 ## Worker 配置 -配置 New API Worker 相关参数。 +配置 LFAPI Worker 相关参数。 ![系统设置 - Worker 配置](/assets/guide/system-setting-1.png) diff --git a/content/docs/zh/guide/feature-guide/index.mdx b/content/docs/zh/guide/feature-guide/index.mdx index 09559f9..65b0b03 100644 --- a/content/docs/zh/guide/feature-guide/index.mdx +++ b/content/docs/zh/guide/feature-guide/index.mdx @@ -1,12 +1,12 @@ --- title: 功能指南概述 -description: New API 功能指南,按角色分为用户指南与管理员指南两部分 +description: LFAPI 功能指南,按角色分为用户指南与管理员指南两部分 --- import { Card, Cards } from 'fumadocs-ui/components/card'; import { User, Shield, Crown, Key, BarChart2, CreditCard, Bot, Settings } from 'lucide-react'; -New API 是一个统一的 LLM 网关平台,将多个 AI 服务商的接口聚合为标准的 OpenAI 兼容 API,让你通过一个地址访问数十种模型。本指南按角色分为用户指南与管理员指南两部分。 +LFAPI 是一个统一的 LLM 网关平台,将多个 AI 服务商的接口聚合为标准的 OpenAI 兼容 API,让你通过一个地址访问数十种模型。本指南按角色分为用户指南与管理员指南两部分。 ![系统首页](/assets/guide/home.png) diff --git a/content/docs/zh/guide/feature-guide/user/chat-apps.mdx b/content/docs/zh/guide/feature-guide/user/chat-apps.mdx index 85d7b5e..67740ba 100644 --- a/content/docs/zh/guide/feature-guide/user/chat-apps.mdx +++ b/content/docs/zh/guide/feature-guide/user/chat-apps.mdx @@ -1,11 +1,11 @@ --- title: 聊天应用集成 -description: 快速将 New API 配置导入到各类 AI 聊天应用中 +description: 快速将 LFAPI 配置导入到各类 AI 聊天应用中 --- import { Callout } from 'fumadocs-ui/components/callout'; -New API 支持快速导入配置到多种 AI 聊天应用,方便测试和日常使用。 +LFAPI 支持快速导入配置到多种 AI 聊天应用,方便测试和日常使用。 ## 一键导入配置 @@ -33,7 +33,7 @@ New API 支持快速导入配置到多种 AI 聊天应用,方便测试和日 - Lobe Chat 目前不支持从 New API 一键导入配置,需要手动填写 + Lobe Chat 目前不支持从 LFAPI 一键导入配置,需要手动填写 ### 配置步骤 @@ -44,13 +44,13 @@ New API 支持快速导入配置到多种 AI 聊天应用,方便测试和日 ![Lobe Chat 配置填写 - 步骤1](/assets/guide/lobechat-1.png) -- **API 地址**:填写 New API 平台的 Base URL -- **API Key**:填写在 New API 创建的令牌 +- **API 地址**:填写 LFAPI 平台的 Base URL +- **API Key**:填写在 LFAPI 创建的令牌 ![Lobe Chat 配置填写 - 步骤2](/assets/guide/lobechat-2.png) 4. 点击「保存」完成配置 -5. 在模型选择中即可看到 New API 提供的所有可用模型 +5. 在模型选择中即可看到 LFAPI 提供的所有可用模型 ## AI as Workspace @@ -59,19 +59,19 @@ New API 支持快速导入配置到多种 AI 聊天应用,方便测试和日 - 支持从 New API 一键导入配置 + 支持从 LFAPI 一键导入配置 ### 使用方法 -1. 在 New API 令牌页面点击「导入到 AI as Workspace」 +1. 在 LFAPI 令牌页面点击「导入到 AI as Workspace」 2. 系统自动跳转到 AI as Workspace 并填充配置 3. 确认配置信息后即可开始使用 ## AMA 问天 - AMA 问天是 New API 提供的智能问答助手,支持多轮对话和复杂问题解答。用户可以通过自然语言与 AMA 问天进行交流,获取知识、技术支持或业务咨询,提升沟通效率和体验。 + AMA 问天是 LFAPI 提供的智能问答助手,支持多轮对话和复杂问题解答。用户可以通过自然语言与 AMA 问天进行交流,获取知识、技术支持或业务咨询,提升沟通效率和体验。 @@ -81,7 +81,7 @@ New API 支持快速导入配置到多种 AI 聊天应用,方便测试和日 ### 使用方法 1. 从应用商店下载并安装 AMA 问天应用 -2. 在 New API 令牌页面点击「导入到 AMA 问天」 +2. 在 LFAPI 令牌页面点击「导入到 AMA 问天」 3. 应用自动打开并完成配置 4. 开始与 AI 助手对话 @@ -98,7 +98,7 @@ New API 支持快速导入配置到多种 AI 聊天应用,方便测试和日 ### 使用方法 1. 从应用商店下载并安装 OpenCat 应用 -2. 在 New API 令牌页面点击「导入到 OpenCat」 +2. 在 LFAPI 令牌页面点击「导入到 OpenCat」 3. 应用自动打开并完成配置 4. 在 OpenCat 中选择模型开始对话 @@ -108,7 +108,7 @@ New API 支持快速导入配置到多种 AI 聊天应用,方便测试和日 ### 配置信息 -从 New API 获取以下信息: +从 LFAPI 获取以下信息: | 配置项 | 说明 | 获取位置 | | --- | --- | --- | @@ -124,5 +124,5 @@ New API 支持快速导入配置到多种 AI 聊天应用,方便测试和日 4. 保存配置后即可使用 - 大多数支持 OpenAI API 的应用都可以通过填写自定义 API 地址的方式接入 New API + 大多数支持 OpenAI API 的应用都可以通过填写自定义 API 地址的方式接入 LFAPI diff --git a/content/docs/zh/guide/wiki/basic-concepts/analytics-setup.mdx b/content/docs/zh/guide/wiki/basic-concepts/analytics-setup.mdx index 6166c77..24f6872 100644 --- a/content/docs/zh/guide/wiki/basic-concepts/analytics-setup.mdx +++ b/content/docs/zh/guide/wiki/basic-concepts/analytics-setup.mdx @@ -4,7 +4,7 @@ title: 分析工具设置指南 ### 概述 -New API 现在支持与流行的分析平台集成,帮助你追踪用户行为和网站性能: +LFAPI 现在支持与流行的分析平台集成,帮助你追踪用户行为和网站性能: - **Google Analytics 4 (GA4)**:谷歌分析平台的最新版本 - **Umami Analytics**:注重隐私的开源分析工具 diff --git a/content/docs/zh/guide/wiki/basic-concepts/performance-analysis.mdx b/content/docs/zh/guide/wiki/basic-concepts/performance-analysis.mdx index cbb46aa..ea1937e 100644 --- a/content/docs/zh/guide/wiki/basic-concepts/performance-analysis.mdx +++ b/content/docs/zh/guide/wiki/basic-concepts/performance-analysis.mdx @@ -4,7 +4,7 @@ title: 性能分析设置指南 ### 概述 -New API 提供两类性能分析能力: +LFAPI 提供两类性能分析能力: - **pprof(内置)**:适合临时诊断与离线分析 - **Pyroscope(可选)**:适合线上持续分析与火焰图可视化 diff --git a/content/docs/zh/guide/wiki/basic-concepts/project-introduction.mdx b/content/docs/zh/guide/wiki/basic-concepts/project-introduction.mdx index 7f3b3fd..b2c4dc8 100644 --- a/content/docs/zh/guide/wiki/basic-concepts/project-introduction.mdx +++ b/content/docs/zh/guide/wiki/basic-concepts/project-introduction.mdx @@ -1,6 +1,6 @@ --- title: 项目介绍 -description: 了解 New API,面向合法授权场景的 AI API 网关与用量管理系统 +description: 了解 LFAPI,面向合法授权场景的 AI API 网关与用量管理系统 --- import { Callout } from 'fumadocs-ui/components/callout'; @@ -8,15 +8,15 @@ import { Callout } from 'fumadocs-ui/components/callout';
New API Logo -

New API

+

LFAPI

NewAPI Trendshift Badge - New API 无缝集成全球主流 AI 服务提供商,包括 OpenAI、Anthropic、Google + LFAPI 无缝集成全球主流 AI 服务提供商,包括 OpenAI、Anthropic、Google Gemini、DeepSeek、Midjourney、Suno 等 30+ 模型服务。 @@ -44,17 +44,17 @@ New API 是面向合法授权场景的 AI API 网关与用量管理系统,为 ## 许可证 -New API 采用 **GNU AGPLv3** 开源协议,只要遵守开源协议即可免费使用。 +LFAPI 采用 **GNU AGPLv3** 开源协议,只要遵守开源协议即可免费使用。 - 在使用 New API 之前,请阅读[项目 + 在使用 LFAPI 之前,请阅读[项目 LICENSE](https://github.com/QuantumNous/new-api/blob/main/LICENSE) 中的完整许可条款。 ### 开源许可证(AGPLv3) -在 AGPLv3 下,您可以自由地使用、修改和分发 New API。 +在 AGPLv3 下,您可以自由地使用、修改和分发 LFAPI。 **主要条款:** @@ -68,7 +68,7 @@ New API 采用 **GNU AGPLv3** 开源协议,只要遵守开源协议即可免 ### 贡献 -所有对 New API 的贡献均在 AGPLv3 下授权。 +所有对 LFAPI 的贡献均在 AGPLv3 下授权。 **提交贡献即表示:** @@ -82,7 +82,7 @@ New API 采用 **GNU AGPLv3** 开源协议,只要遵守开源协议即可免 ## 免责声明 -在使用 New API 之前,请阅读并理解这些重要声明。 +在使用 LFAPI 之前,请阅读并理解这些重要声明。 **1. 合法授权与合规使用** @@ -109,6 +109,6 @@ New API 采用 **GNU AGPLv3** 开源协议,只要遵守开源协议即可免 用户有责任确保遵守适用于其司法管辖区和使用场景的所有地方、国家和国际法律法规。 - New API + LFAPI 按"原样"提供,不提供任何形式的保证。开发者和维护者对使用本软件产生的任何损害或法律问题不承担责任。 diff --git a/content/docs/zh/guide/wiki/changelog.mdx b/content/docs/zh/guide/wiki/changelog.mdx index 99553c5..4bd7398 100644 --- a/content/docs/zh/guide/wiki/changelog.mdx +++ b/content/docs/zh/guide/wiki/changelog.mdx @@ -4,1344 +4,1808 @@ title: 更新日志 import { Callout } from 'fumadocs-ui/components/callout'; - + 如需查看全部历史版本,请访问 [GitHub Releases 页面](https://github.com/QuantumNous/new-api/releases),本页面从该页面定时获取最新更新信息。 -## v1.0.0-rc.5 - - - -### Highlights -The default dashboard has been refreshed with built-in model performance metrics and a clearer health view. This release also adds DeepChat deeplink support and fixes several default UI, wallet, playground, and ratio-display regressions. - -### New Features -- Dashboard overview has been redesigned and now includes model performance metrics with a clearer performance health panel. -- DeepChat deeplinks are now supported, making it easier to open supported chat links directly in DeepChat. (#4668) - -### Bug Fixes -- Top-up gateway availability now uses the correct top-up configuration, so wallet payment options are shown accurately. (#4599) -- Group ratio displays now honor configured group-to-group ratio settings. (#4772) -- Default UI dropdown menu items now trigger their selection handlers reliably. (#4787) -- The playground now handles legacy classic-format messages without failing. (#4650) -- Default frontend pages now avoid several v1 UI regressions, including stray empty description areas and layout issues. (#4802) +## v1.0.0-rc.28 -### Improvements -- The default web UI and charts now follow shared theme presets for more consistent colors, controls, and corner radii. -- Docker images now include project and third-party license notices for easier compliance review. (#4739) - ---- + -### What's Changed -* feat: add DeepChat deeplink support by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4668 -* fix: exclude THIRD-PARTY-LICENSES.md from .dockerignore for Docker build by @yeying-xingchen in https://github.com/QuantumNous/new-api/pull/4739 -* fix(wallet): read topup gateway flags from topupInfo instead of status by @ImogeneOctaviap794 in https://github.com/QuantumNous/new-api/pull/4599 -* fix(web/default): use getUserGroups for ratio display to respect GroupGroupRatio by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4772 -* fix(default): support DropdownMenuItem onSelect by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4787 -* fix(web/default): guard playground messages against legacy classic shape by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4650 -* fix: defaut ui triage by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4802 - -### New Contributors -* @yeying-xingchen made their first contribution in https://github.com/QuantumNous/new-api/pull/4739 -* @lihan3238 made their first contribution in https://github.com/QuantumNous/new-api/pull/4787 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.4...v1.0.0-rc.5 - -**下载资源** - - - - - ---- - -## v1.0.0-rc.4 - - - -### Highlights -OpenAI image editing is more reliable: image edit requests now preserve reference image data and related metadata, preventing edits from losing their intended context (#4646). This release also adds model performance badges and fixes several billing and dropdown UI issues. +### ⚠️ IMPORTANT WARNING / 重要警告 ⚠️ + +自 v1.0.0-rc.27 起引入的实验性插件系统仍处于测试阶段,并涉及较大的架构调整。如遇问题,请及时反馈。从 v1.0.0-rc.26 或更早版本升级的用户,**必须重新配置所有视频模型价格**;已在 v1.0.0-rc.27 完成配置的用户无需重复操作。**不推荐在生产环境中使用本版本。** + +The experimental plugin system introduced in v1.0.0-rc.27 remains under testing and includes major architectural changes. Please report any issues promptly. Users upgrading from v1.0.0-rc.26 or earlier **must reconfigure all video model prices**; users who already completed this step on v1.0.0-rc.27 do not need to repeat it. **This release is not recommended for production use.** ### New Features -- Added model performance badges to model lists so users can compare available models at a glance. -### Bug Fixes -- Fixed OpenAI image edit requests so reference images and related edit metadata are preserved when forwarded (#4646). -- Fixed billing settings forms so top-up and billing configuration inputs behave more reliably. -- Fixed dropdown and select controls so options render and select correctly after the UI component update (#4655). +* Added optional RSA-OAEP encryption for password-login request bodies. Enable it with `PASSWORD_LOGIN_ENCRYPTION_ENABLED=true`; this is an additional safeguard and does not replace HTTPS (#6743). +* Added AQBot to the default list of third-party chat options (#7079). +* Added support for channel model-mapping aliases and model-name case variants in task-plugin routing, including consistent upstream mapping and billing resolution. -### Breaking Changes -- Integrations should now read the top-up link from the top-up information API instead of the status API. +### Improvements -### Gallery -| Model availability rankings | Refreshed pricing and settings UI | -| --- | --- | -|| | +* Built-in task plugins now update with new-api releases; Marketplace actions no longer create unintended persistent overrides. +* Improved concurrent-write reliability for the default SQLite configuration by enabling WAL, a 30-second busy timeout, and immediate transactions (#7030). +* Improved PostgreSQL transaction-pooler compatibility by disabling prepared statements, and fixed JSON-column handling under the simple protocol. + +### Bug Fixes + +* Prevented unbounded memory retention and potential OOM when an upstream does not return response headers (#6949). `RELAY_RESPONSE_HEADER_TIMEOUT` now defaults to `1800` seconds; set it to `0` to restore the previous unbounded behavior. Streaming after response headers arrive is unaffected. +* Fixed the frontend display of the "subscription-only" preference when no valid subscription exists (#7086). +* Fixed setup-status detection after a page reload (#6968). +* Changed relay request-validation failures to return HTTP 400 (#6774). +* Fixed Ali image models to honor the requested response format (#7048). --- ### What's Changed -* fix: preserve OpenAI image edit reference fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4646 -* fix: migrate select to Base UI items API by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4655 +* fix(relay): 请求参数校验错误返回 HTTP 400 by @ax2 in https://github.com/QuantumNous/new-api/pull/6774 +* fix(web): recheck setup status after page reload by @seefs001 in https://github.com/QuantumNous/new-api/pull/6968 +* feat(chat): 将 AQBot 加入第三方聊天默认列表 by @Licoy in https://github.com/QuantumNous/new-api/pull/7079 +* fix(ali): honor image response format (#5513) by @PuppetKL in https://github.com/QuantumNous/new-api/pull/7048 +* fix(subscription): 无有效订阅时前端如实显示「仅用订阅」偏好 (#6222) by @CR-Yun in https://github.com/QuantumNous/new-api/pull/7086 +* fix(sqlite): enable WAL + working busy timeout + _txlock=immediate to stop concurrent write lockouts by @LinineTy in https://github.com/QuantumNous/new-api/pull/7030 +* fix(relay): bound the wait for upstream response headers (fixes unbounded heap growth → OOM) by @txgo in https://github.com/QuantumNous/new-api/pull/6949 +### New Contributors +* @ax2 made their first contribution in https://github.com/QuantumNous/new-api/pull/6774 +* @PuppetKL made their first contribution in https://github.com/QuantumNous/new-api/pull/7048 +* @CR-Yun made their first contribution in https://github.com/QuantumNous/new-api/pull/7086 +* @LinineTy made their first contribution in https://github.com/QuantumNous/new-api/pull/7030 +* @txgo made their first contribution in https://github.com/QuantumNous/new-api/pull/6949 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.3...v1.0.0-rc.4 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.27...v1.0.0-rc.28 **下载资源** --- -## v1.0.0-rc.3 +## v1.0.0-rc.27 - + -### Highlights -v1.0.0-rc.3 adds a new model rankings experience with model availability and performance visibility, making it easier to compare reliability before choosing routes or providers. This release also refreshes key default UI areas, including pricing/settings pages and table controls. - -### New Features -- Added a model rankings dashboard with real availability and performance data so users can compare model reliability at a glance (#4633). - -### Improvements -- Refreshed the default web UI with Base UI components, updated theme presets, and cleaner table toolbar interactions (#4633). -- Reorganized the system settings pricing interface to make pricing configuration easier to scan and manage. - -### Bug Fixes -- Fixed channel table sorting so server-side sorting now works correctly (#4600). -- Corrected subscription payment information display in the default UI. - -### Gallery -| Model availability rankings | Refreshed pricing and settings UI | -| --- | --- | -|| | - ---- - -### What's Changed -* feat(web/default): unified UI overhaul — Base UI migration, theme presets, rankings dashboard, and table toolbar refactor by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4633 -* feat: collect model performance metrics by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4635 -* fix: enable channel table server-side sorting by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4600 - - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.2...v1.0.0-rc.3 +### ⚠️ IMPORTANT WARNING / 重要警告 ⚠️ -**下载资源** +最新版已增加插件系统测试版本,系统架构大改,有bug请立即报告。对于切换到这个版本的用户,需要重新配置所有的视频模型价格!**不推荐生产环境使用**。 - +The latest version introduces an experimental plugin system with major architectural changes. Please report any bugs immediately. Users switching to this version MUST reconfigure all video model prices! **Not recommended for production environments.** - +### New Features +* Replaced built-in task adaptors with a new sandboxed JavaScript plugin system (#7076) +* Added support for GLM channel `/v1/responses` endpoint (#7050) +* Enabled passthrough of Claude Messages and OpenAI Responses for Ollama (#7051) + +### Bug Fixes +* Fixed an issue in billing where a constantly true time rule expression caused multipliers to apply all day (#6934) +* Restored the ability for administrators to unbind built-in providers in the web interface (#6987) +* Fixed docker development build context by adding relaykit go.mod (#7072) + +### Other +* Updated PR templates and removed the PR Check workflow (#7053) --- -## v1.0.0-rc.2 +### What's Changed +* feat: glm chanel /v1/responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/7050 +* feat(ollama): passthrough Claude Messages and OpenAI Responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/7051 +* docs: update PR template and remove PR Check workflow by @seefs001 in https://github.com/QuantumNous/new-api/pull/7053 +* fix(web): restore admin unbinding for built-in providers by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6987 +* fix(billing): 修复时间规则区间恒真表达式导致倍率全天生效 by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6934 +* fix(docker): add relaykit go.mod to dev build context by @VladKabiak in https://github.com/QuantumNous/new-api/pull/7072 +* feat(task): replace built-in task adaptors with a sandboxed JS plugin system by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/7076 - +### New Contributors +* @VladKabiak made their first contribution in https://github.com/QuantumNous/new-api/pull/7072 -### Highlights -v1.0.0-rc.2 officially opens up switching between the new and classic frontend, making it easier to test the redesigned UI, compare workflows, and fall back instantly when needed. This RC also refreshes key console pages and fixes several web issues affecting email binding, tiered pricing, API key grouping, and custom Vertex base URLs. - -### New Features -- Added a built-in switch between the new and classic frontend, so teams can adopt the redesigned UI gradually without losing access to the previous workflow. - -### Improvements -- Refreshed the web console with redesigned pricing pages, more consistent dashboard and log controls, better table and analytics filtering, smoother navigation, and improved mobile responsiveness. - -### Bug Fixes -- Fixed email binding in the redesigned frontend so the action completes correctly (#4551). -- Fixed tiered pricing number input behavior so editing values is more reliable (#4536). -- Fixed tiered pricing display issues that could cause values and labels to appear incorrectly (#4530). -- Fixed API key grouping in the default web theme so keys appear under the expected groups (#4548). -- Fixed custom Vertex base URLs so requests route correctly when a gateway prefix is configured (#4200). - -### Gallery - -| Refreshed pricing page | Dashboard and analytics controls | -| --- | --- | -| Refreshed pricing page | Dashboard and analytics controls | - -### What's Changed -* fix: 修复默认主题 API 密钥分组行为 by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4548 -* bug fix: 新版前端email绑定错误 by @SHLE1 in https://github.com/QuantumNous/new-api/pull/4551 -* fix: improve tiered pricing number input editing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4536 -* fix(vertex): honor custom base_url as gateway prefix by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4200 -* fix(web): 修复阶梯计费 Base64 解码失败与标签不匹配导致的显示错误 by @wans10 in https://github.com/QuantumNous/new-api/pull/4530 - -### New Contributors -* @SHLE1 made their first contribution in https://github.com/QuantumNous/new-api/pull/4551 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.1...v1.0.0-rc.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.26...v1.0.0-rc.27 **下载资源** --- -## v1.0.0-rc.1 +## v1.0.0-rc.26 - + -v1.0.0-rc.1 is the first release candidate for the upcoming 1.0 release, and its main focus is the brand-new v1 frontend rebuilt from the ground up for a cleaner, faster, and more capable admin experience. - -This RC refreshes the interface across navigation, configuration, analytics, and logs, making day-to-day management much easier as the project moves toward the final v1 launch. - - - -### New Features -- Introduced the rebuilt v1 frontend with modern navigation and layouts, a visual channel editor for parameter overrides, and easier access to system settings and theme switching (#4265). - -### Improvements -- Upgraded dashboards and charts with clearer model analytics, better data sorting, and more informative tooltips for easier usage analysis. -- Improved usage logs with log type indicators, usernames and avatars, and cleaner tables that make activity easier to scan. -- Polished shared layouts, tables, and form styling across the default frontend for a cleaner and more consistent experience. - -### Bug Fixes -- Fixed themes loaded from the database so the selected frontend theme now applies correctly at runtime (#4518). -- Fixed forwarded requests so empty reasoning fields are preserved instead of being silently dropped (#4520). -- Fixed required-field markers so forms more consistently show which inputs are mandatory (#4533). - ---- - -### What's Changed -* 🚀 feat: launch v1.0 — next-generation frontend built from the ground up by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4265 -* fix: 修复 Message.ReasoningContent/Reasoning 空思考内容在请求转发时被静默丢弃 by @heimoshuiyu in https://github.com/QuantumNous/new-api/pull/4520 -* fix: sync theme to runtime when loaded from database by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4518 - -### New Contributors -* @Micah-Zheng made their first contribution in https://github.com/QuantumNous/new-api/pull/4518 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-alpha.1...v1.0.0-rc.1 +### ⚠️ Important Warnings / 重要警告 -**下载资源** +* **Database Migration Risk / 数据库迁移风险**: This release changes quota fields to support values larger than 4,294,967,295. Upon startup, the system will check database table structures. Startup may fail if the column types are incorrect. In such cases, manual modification is required (instructions will be in the error message; consult AI if unsure how to proceed). +本次更新修复了额度上限问题,支持大于 42 亿的数值。启动时系统会检测数据库表结构,如果不匹配可能会导致启动失败。遇到此问题需根据错误提示手动修改数据库表结构(如不熟悉数据库操作,可寻求 AI 辅助)。 - +* **Deprecation of 32-bit Systems / 废弃 32 位系统支持**: Support for 32-bit operating systems has been temporarily deprecated to accommodate these changes. +为配合上述更改,我们已“临时”废弃对 32 位操作系统架构的支持。 - +### New Features +* Added support for `thinking_token_budget` in vLLM (#7027) + +### Bug Fixes +* Prevented browser auto-fill from incorrectly populating credentials in usage log filters (#6966) + +### Improvements +* Removed 32-bit integer limitations to allow quota values to exceed 4294 million (#7025) --- -## v1.0.0-alpha.1 - License boundary release +### What's Changed +* refactor(web): prevent credential autofill in usage log filters by @seefs001 in https://github.com/QuantumNous/new-api/pull/6966 +* refactor: deprecate int32 by @seefs001 in https://github.com/QuantumNous/new-api/pull/7025 +* feat: vllm thinking_token_budget by @seefs001 in https://github.com/QuantumNous/new-api/pull/7027 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.2...v1.0.0-alpha.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.25...v1.0.0-rc.26 **下载资源** --- -## v0.13.2 +## v1.0.0-rc.25 - + + +### Highlights +Channel testing and gateway administration gain safer workflows, user/group-aware overrides, and request-field passthrough controls. This release also improves provider compatibility, Responses API accounting, and recharge/quota reliability. ### New Features -- Model sync now detects upstream models more accurately, refreshes pricing automatically from provider pricing endpoints, shows removed upstream models in the fetch-models dialog, and keeps pricing available during sync delays (#4452). -- User records now include account creation and last login timestamps for easier auditing and administration (#4450). -- Added configurable model matching for Ali native Messages APIs, making it easier to route requests to compatible upstream models (#4468). +- Channel testing has been expanded with safer test workflows, including an auto-disable-only mode for failing channels (#6917). +- Parameter overrides can now use requester user and group context for more flexible routing and policy rules (#6534). +- Gateway channels now let administrators choose which request fields are passed through to upstream providers (#6847). ### Bug Fixes -- Tool calls now accept raw JSON argument payloads, improving compatibility with providers that return tool arguments as JSON objects (#4469). -- Configuration updates now handle JSON object fields more reliably, preventing some settings from being saved incorrectly. +- Ali provider requests now avoid sending unset `top_p` values and correctly handle mapped image models (#6772). +- Qwen TTS models are now classified correctly so they route through the proper text-to-speech path (#6711). +- Responses API handling now preserves penalties and prompt-cache settings while settling cached-token usage accurately (#6892). +- Ollama and Claude conversions now preserve reasoning/tool-call context while avoiding invalid empty tool payloads (#6862). +- Gemini-style model listing requests to `/v1/models` now return correctly (#6199). +- Recharge, refund, and quota updates are now settled more consistently, including concurrent and uncreditable order cases (#6845). +- Web forms now keep fetched model selections in sync, and the mobile sidebar behaves correctly (#6841). +- Usage logs now record reasoning effort consistently (#6641). +- Request length validation is now enforced consistently on the backend (#5548). ### Improvements -- Retry messages now clearly explain when a channel was skipped because affinity is disabled (#4453). +- Billing logs now highlight the conditional multiplier that matched a request, making cost calculations easier to audit (#6561). +- Large server and model-list searches in the web UI are debounced, improving responsiveness on big installations (#6727). +- The playground now displays streamed output with smoother word fade-ins and a more robust editor experience (#6895). +- Custom channel route editing now has a more capable advanced editor (#6865). --- ### What's Changed -* fix(channel): load model mapping during upstream model checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4437 -* feat: sync upstream pricing from pricing endpoint by @seefs001 in https://github.com/QuantumNous/new-api/pull/4452 -* fix: clarify affinity disabled channel retry message by @seefs001 in https://github.com/QuantumNous/new-api/pull/4453 -* feat: configure native messages model matching for ali by @seefs001 in https://github.com/QuantumNous/new-api/pull/4468 -* fix: support raw JSON response tool arguments by @seefs001 in https://github.com/QuantumNous/new-api/pull/4469 -* feat: show removed upstream models in fetch models modal by @seefs001 in https://github.com/QuantumNous/new-api/pull/4470 -* 增加用户创建时间和最后登录时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4450 +* fix(ali): stop injecting top_p into requests that omit it by @ENCHIGO in https://github.com/QuantumNous/new-api/pull/6674 +* fix(channels): classify Qwen TTS models correctly by @seefs001 in https://github.com/QuantumNous/new-api/pull/6711 +* feat(channels): add auto-disable-only channel test mode by @seefs001 in https://github.com/QuantumNous/new-api/pull/6728 +* perf(web): debounce server and large-list searches by @seefs001 in https://github.com/QuantumNous/new-api/pull/6727 +* fix: record reasoning effort consistently in usage logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/6641 +* feat(relay): expose user and group context to parameter override by @seefs001 in https://github.com/QuantumNous/new-api/pull/6534 +* fix(ollama): preserve reasoning and tool-call context by @seefs001 in https://github.com/QuantumNous/new-api/pull/6605 +* fix: backend length validation by @seefs001 in https://github.com/QuantumNous/new-api/pull/5548 +* feat(billing): highlight matched conditional multipliers in logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/6561 +* fix(web): require confirmation before rotating access token by @seefs001 in https://github.com/QuantumNous/new-api/pull/6749 +* fix(relay): preserve presence/frequency penalty in Responses conversion by @UzkiS in https://github.com/QuantumNous/new-api/pull/6654 +* refactor(responses): remove compact model suffix handling by @seefs001 in https://github.com/QuantumNous/new-api/pull/6770 +* fix: mobile sidebar by @seefs001 in https://github.com/QuantumNous/new-api/pull/6760 +* fix(web): refresh Turnstile token after login attempt by @thiswod in https://github.com/QuantumNous/new-api/pull/6764 +* fix: 修复 Gemini 风格 /v1/models 列表请求 by @zhibisora in https://github.com/QuantumNous/new-api/pull/6199 +* fix(billing): 异步任务退款时同步减少 used_quota by @wans10 in https://github.com/QuantumNous/new-api/pull/6795 +* fix(web): keep fetched model selection in sync with form by @enwaiax in https://github.com/QuantumNous/new-api/pull/6841 +* fix(ali): 修复阿里图片模型映射后仍使用原始模型名判断协议的问题 by @wxwwt in https://github.com/QuantumNous/new-api/pull/6772 +* chore(deps): bump builder-util-runtime and electron-builder in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6467 +* chore(deps): bump dompurify from 3.4.11 to 3.4.13 in /web by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6735 +* chore(deps-dev): bump fast-uri from 3.1.4 to 3.1.5 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6846 +* chore(deps-dev): bump tar from 7.5.16 to 7.5.22 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6468 +* fix(topup): reject uncreditable orders before payment by @enwaiax in https://github.com/QuantumNous/new-api/pull/6845 +* chore(deps-dev): bump js-yaml from 4.3.0 to 4.3.1 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6704 +* chore(deps-dev): bump electron from 39.8.5 to 39.8.10 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6705 +* fix: prompt_cache_key openai chat -> openai responses by @seefs001 in https://github.com/QuantumNous/new-api/pull/6861 +* feat: add field passthrough controls for gateway channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/6847 +* fix(relay): stop injecting empty tools into Claude requests that omit them by @zcxads666 in https://github.com/QuantumNous/new-api/pull/6837 +* fix(oauth): align custom binding response fields in frontend by @seefs001 in https://github.com/QuantumNous/new-api/pull/6818 +* test(web): standardize frontend tests on Vitest by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6569 +* fix(relaykit): preserve parameterless tools in Claude conversion by @seefs001 in https://github.com/QuantumNous/new-api/pull/6862 +* refactor: advanced custom channel route editor by @seefs001 in https://github.com/QuantumNous/new-api/pull/6865 +* feat: channel test by @seefs001 in https://github.com/QuantumNous/new-api/pull/6917 +* feat(web): fade in streamed response words and harden playground editor by @RedwindA in https://github.com/QuantumNous/new-api/pull/6895 +* fix: settle Responses cached token usage by @LiaoQi98 in https://github.com/QuantumNous/new-api/pull/6892 +### New Contributors +* @ENCHIGO made their first contribution in https://github.com/QuantumNous/new-api/pull/6674 +* @UzkiS made their first contribution in https://github.com/QuantumNous/new-api/pull/6654 +* @thiswod made their first contribution in https://github.com/QuantumNous/new-api/pull/6764 +* @zhibisora made their first contribution in https://github.com/QuantumNous/new-api/pull/6199 +* @enwaiax made their first contribution in https://github.com/QuantumNous/new-api/pull/6841 +* @zcxads666 made their first contribution in https://github.com/QuantumNous/new-api/pull/6837 +* @LiaoQi98 made their first contribution in https://github.com/QuantumNous/new-api/pull/6892 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1-patch.1...v0.13.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.24...v1.0.0-rc.25 **下载资源** --- -## v0.13.1-patch.1 +## v1.0.0-rc.24 - + -### Highlights -This patch adds support for using `len` in tier conditions and the LLM prompt helper, making it easier to build rules based on prompt length. +### Release: v1.0.0-rc.24 -### New Features -- Added a `len` variable to tier conditions and the LLM prompt helper so you can define rules based on prompt length. +#### New Features + +* Added user critical rate limiting middleware for access token and affiliate transfer routes to enhance security and stability. +* Refined the categorization of fetched models in channels to improve organization and retrieval. + +#### Bug Fixes + +* Resolved an issue with redemption code quotas experiencing precision loss, ensuring accurate credit allocation (#6685). +* Addressed an HTTP/2 transport issue where upstream stream resets could prevent transparent retries by correctly setting `Request.GetBody` in the relay (#6249). +* Ensured Claude and Gemini endpoints are tested with the native request format for improved compatibility. + +#### Other + +* Enhanced the release synchronization workflow with optional file syncing capabilities in CI. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1...v0.13.1-patch.1 +### What's Changed +* fix(relay): set Request.GetBody so the HTTP/2 transport can transparently retry after an upstream stream reset by @BlockchainHe in https://github.com/QuantumNous/new-api/pull/6249 +* feat(channels): refine fetched model categorization by @seefs001 in https://github.com/QuantumNous/new-api/pull/6632 +* fix: test Claude/Gemini endpoints with native request format by @seefs001 in https://github.com/QuantumNous/new-api/pull/6698 +* fix: 修复兑换码额度精度损失(#6680) by @lihu-001 in https://github.com/QuantumNous/new-api/pull/6685 + +### New Contributors +* @BlockchainHe made their first contribution in https://github.com/QuantumNous/new-api/pull/6249 +* @lihu-001 made their first contribution in https://github.com/QuantumNous/new-api/pull/6685 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.23...v1.0.0-rc.24 **下载资源** --- -## v0.13.1 +## v1.0.0-rc.23 - + -#### New Features -* Added support for handling DeepSeek V4 reasoning suffixes (#4428) +Highlights: This release expands provider and channel compatibility with New API channels, DeepSeek Responses API support, zstd request decompression, and automatic group routing. It also improves operational accuracy with stream visibility in logs, more reliable tiered-retry billing, and upstream Bedrock cancellation when clients disconnect. -#### Bug Fixes -* Fixed an issue where tiered billing models were excluded from the model listing (#4431) +### New Features +- Added New API channel support with Gemini-to-OpenAI streaming conversion, Advanced Custom Responses Compact handling, and multipart image edit support (#6559). +- Added DeepSeek Responses API support (#6562). +- Added automatic group selection for request routing (#6590). +- Added per-channel HTTP transport controls so administrators can tune connection behavior per channel. +- Added support for zstd-compressed requests (#6545). +- Log owners can now see whether a request was streamed (#6558). + +### Bug Fixes +- Qwen `thinking_budget` is now preserved when requests are relayed (#5836). +- Tiered retry billing now settles usage against the final selected group, including group-switch retries (#6570). +- Bedrock requests are now cancelled when clients disconnect, reducing wasted upstream work (#6589). + +### Improvements +- Public header navigation links now use a consistent font size (#6557). --- ### What's Changed -* fix: include tiered billing models in model listing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4431 -* feat: implement DeepSeek V4 reasoning suffix handling and tests by @HynoR in https://github.com/QuantumNous/new-api/pull/4428 +* refactor: extract protocol conversion layer into standalone relaykit module by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6369 +* fix: 慢查询/错误 SQL 日志参数化 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6493 +* feat(oidc): 支持自定义 OIDC 登录显示名称 by @mrchi in https://github.com/QuantumNous/new-api/pull/6012 +* fix: preserve Qwen thinking_budget passthrough by @wxwwt in https://github.com/QuantumNous/new-api/pull/5836 +* feat: support zstd request decompression by @seefs001 in https://github.com/QuantumNous/new-api/pull/6545 +* feat(logs): expose stream status to log owners by @seefs001 in https://github.com/QuantumNous/new-api/pull/6558 +* fix(relay): preserve multipart image edits for New API channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/6559 +* fix(oauth): stop treating a foreign window.opener as a bind flow by @neimaravila in https://github.com/QuantumNous/new-api/pull/6425 +* style: unify public header nav link font size to 14px (text-sm) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6557 +* feat: deepseek responses api by @seefs001 in https://github.com/QuantumNous/new-api/pull/6562 +* fix(billing): settle tiered retries with final group by @faithleysath in https://github.com/QuantumNous/new-api/pull/6518 +* fix(billing): harden tiered retry group-switch billing (follow-up to #6518) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6570 +* fix(aws): cancel Bedrock requests on client disconnect by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6589 +* Feat/auto group by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6590 +### New Contributors +* @mrchi made their first contribution in https://github.com/QuantumNous/new-api/pull/6012 +* @neimaravila made their first contribution in https://github.com/QuantumNous/new-api/pull/6425 +* @faithleysath made their first contribution in https://github.com/QuantumNous/new-api/pull/6518 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.0...v0.13.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.22...v1.0.0-rc.23 **下载资源** --- -## v0.13.0 +## v1.0.0-rc.22 - + -### Highlights -This release introduces powerful support for `expr` expression-based tiered billing, allowing administrators to configure complex, dynamic pricing rules. A simple use case for this feature is a pricing expression like `tokens <= 128000 ? 0.002 : 0.004`, where the system will automatically apply a lower rate for usage under 128K tokens and a higher rate for anything above that threshold. +This release expands channel and model administration with upstream model discovery, new Gemini image models, configurable billing options, and Sub2API support. It also improves reliability across streaming, pricing, refunds, user management, and admin UI workflows. ### New Features -* Introduces support for evaluating `expr` expressions in the billing system, enabling dynamic tiered pricing with configurable presets (#4409). -* Adds a UI for tool pricing settings and improves tool call quota calculations. -* Displays the user ID in admin top-up bills for easier tracking (#4349). -* Adds a 'last used time' column to the tokens table (#4372). -* Relaxes token key column length requirements to support the migration of longer legacy token keys (#4401). +- Channels can now discover available models from advanced custom and Codex-compatible upstreams (#6184). +- Added support for the latest Gemini image GA models (#6371). +- Added configurable tool pricing with Sub2API channel support and alpha-search billing. +- OpenAI Realtime GA models are now available with improved routing compatibility (#6032). ### Bug Fixes -* Ensures the pricing calculation logic only applies the N ratio to image models (#4412). -* Preserves text tool surcharges properly during tiered billing settlement (#4162). -* Corrects the completion ratio configuration for the `gpt-5.5` model (#4414). -* Fixes the model pricing UI to use the correct display type (#4426). -* Resolves runtime crashes and edge cases within the tiered pricing editor and settlement logic. -* Updates channel testing to properly support and evaluate tiered billing models. +- Responses-to-Chat streaming no longer emits duplicate tool calls (#6225). +- Creating a model with an existing name no longer clears its saved pricing (#6365). +- The unset-price models view now lists only models available from the selected channels (#6126). +- Very large user quota values are now handled without overflow (#6134). +- User list sorting now works correctly with paginated results (#6194). +- MiniMax models are now correctly associated with the MiniMax vendor (#6164). +- Playground model group selectors now handle auto-group listings and long options correctly (#6163). +- Task refunds are no longer duplicated during concurrent status updates (#6074). +- Top-up amount fields can now be cleared completely while editing (#6473). +- Channel inline priority updates are more reliable (#6415). ### Improvements -* Adds preset pricing tiers for Doubao Seed 1.8 to enhance discount calculations. -* Replaces Card components with divs to improve overall layout consistency. -* Updates internal billing calculations to use quota per unit for better accuracy. +- Admin JSON editing now has a more consistent experience and avoids UI issues that could hide content (#6421). +- Users page search is debounced to reduce unnecessary requests and improve responsiveness (#6474). +- Proxy-backed channel requests are more compatible and stable (#6157). +- Upstream error logs now provide more useful fallback details when providers return unclear errors (#6431). --- ### What's Changed -* fix(channel-test): support tiered billing model tests by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4145 -* 在管理员充值账单中显示用户 ID by @uskyu in https://github.com/QuantumNous/new-api/pull/4349 -* 增加令牌最后使用时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4372 -* chore(deps): bump github.com/jackc/pgx/v5 from 5.9.0 to 5.9.2 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4397 -* chore(deps-dev): bump @xmldom/xmldom from 0.8.12 to 0.8.13 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4399 -* Relax token key column length for legacy migration compatibility by @XiaoAI1024 in https://github.com/QuantumNous/new-api/pull/4401 -* fix(billing): preserve text tool surcharges in tiered settlement by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4162 -* feat: support for tiered billing expressions in the billing system by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4409 -* fix(image): only price image model use N ratio by @xyfacai in https://github.com/QuantumNous/new-api/pull/4412 -* fix: correct gpt-5.5 completion ratio by @jingx8885 in https://github.com/QuantumNous/new-api/pull/4414 -* fix: model pricing use correct display type by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4426 +* fix: list only channel models in unset price models tab by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6126 +* fix: purge authentication data on hard user deletion by @seefs001 in https://github.com/QuantumNous/new-api/pull/6168 +* fix(users): prevent large quota values from overflowing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6134 +* fix: infer MiniMax vendor for MiniMax models by @fux-dev in https://github.com/QuantumNous/new-api/pull/6164 +* fix: add server-side sorting to user list, prevent client-side sort on paged data by @DawnMoon1542 in https://github.com/QuantumNous/new-api/pull/6194 +* fix(data-table): update table body immediately when toggling columns by @DawnMoon1542 in https://github.com/QuantumNous/new-api/pull/6253 +* fix: prevent duplicate tool calls in Responses-to-Chat streaming by @nikuleo in https://github.com/QuantumNous/new-api/pull/6225 +* feat(channel): support Codex upstream model discovery by @seefs001 in https://github.com/QuantumNous/new-api/pull/6184 +* feat: support upstream model fetch for advanced custom channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/5971 +* refactor(auth): replace dashboard sessions with stateless tokens and session control by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/6329 +* fix: 中转 gpt-realtime 系列 GA 模型时不再发送 realtime beta 标识 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6032 +* fix(playground): prevent model group option stretching by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6120 +* perf(data-table): optimize action column width allocation by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6135 +* fix(web): show used quota for unlimited API keys by @RedwindA in https://github.com/QuantumNous/new-api/pull/6224 +* fix(channel): improve proxy client compatibility and cache lifecycle by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/6157 +* fix(playground): resolve auto group model listing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6163 +* fix: prevent duplicate suno task refunds via cas status update by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6074 +* chore(github): migrate issue templates to required forms by @seefs001 in https://github.com/QuantumNous/new-api/pull/6452 +* fix(github): restore issue form visibility by @seefs001 in https://github.com/QuantumNous/new-api/pull/6454 +* fix: log response body when parsed upstream error message is empty by @bigsongeth in https://github.com/QuantumNous/new-api/pull/6431 +* fix: prevent model create from wiping existing pricing for same name by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6365 +* fix(web/channel): stabilize inline priority updates by @RedwindA in https://github.com/QuantumNous/new-api/pull/6415 +* perf(json-editor): unify admin JSON editing experience by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6421 +* feat: add gemini-3-pro-image and gemini-3.1-flash-image GA models by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6371 +* feat: support Tencent TokenHub API key via OpenAI-compatible protocol by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6232 +* fix: allow topup amount input to be fully cleared by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6473 +* fix: debounce users page search input by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6474 ### New Contributors -* @uskyu made their first contribution in https://github.com/QuantumNous/new-api/pull/4349 -* @XiaoAI1024 made their first contribution in https://github.com/QuantumNous/new-api/pull/4401 -* @jingx8885 made their first contribution in https://github.com/QuantumNous/new-api/pull/4414 +* @fux-dev made their first contribution in https://github.com/QuantumNous/new-api/pull/6164 +* @DawnMoon1542 made their first contribution in https://github.com/QuantumNous/new-api/pull/6194 +* @nikuleo made their first contribution in https://github.com/QuantumNous/new-api/pull/6225 +* @bigsongeth made their first contribution in https://github.com/QuantumNous/new-api/pull/6431 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.15...v0.13.0 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.21...v1.0.0-rc.22 **下载资源** --- -## v0.12.15 +## v1.0.0-rc.21 - + -#### New Features -- Added Waffo Pay support for account top-ups and payment workflows (#4089). +### Highlights +The headline change is GPT-5.6 cache write billing: OpenAI `cache_write_tokens` are now charged at the cache-creation rate, with accounting safeguards around cached and uncached prompt tokens. This release also improves pricing workflows, Playground controls, channel table usability, and billing/logging reliability. -#### Bug Fixes -- Fixed a recharge card issue in the top-up flow that could break parts of the card interface (#4388). +### New Features +- Added GPT-5.6 cache write billing support, charging OpenAI `cache_write_tokens` at the cache-creation rate while keeping cached and uncached prompt token accounting consistent. +- Pricing pages now support group-aware dynamic calculations and avoid showing sample-only special groups (#5906). +- Model pricing settings now include an Unset Price Models tab plus status and sync filters, making it easier to find and configure models without prices (#6124). +- The Playground now includes request parameter panels for chat and generation tuning, so users can adjust model behavior directly in the UI (#6044). +- Channel lists now support manual column resizing and keep resized tables filling the available width (#5948). +- Logs now show stream timing metrics and task detail views for clearer troubleshooting. +- Added enhanced text protocol conversion and advanced custom routing capabilities for more flexible channel routing (#5825). -#### Improvements -- Added support for Gemini's `IncludeServerSideToolInvocations` setting in `ToolConfig`, improving compatibility with newer Gemini tool-calling behavior (#4311). -- Improved Codex channel reliability and usability by refreshing credentials for auto-disabled channels, using streaming for automatic tests, and refining the usage modal (#4324). +### Bug Fixes +- Browser translation can no longer corrupt React-rendered pages (#5963). +- Custom model names that differ only by case can now be added consistently, including from multi-select controls (#6061). +- Billing now handles quota pre-consumption and image-stream disconnect edge cases more accurately. +- Subscription reset handling is more reliable under concurrent updates (#6057). +- Codex response passthrough fields now sync correctly (#6018). +- Playground model selector lists now stay synchronized after model changes. +- Custom home iframes can trigger top navigation after a user action as intended (#5955). +- Restored paste behavior for default channel connection settings. + +### Improvements +- Upstream price sync tables in model pricing now load and render more efficiently (#6092). +- Refined table badges, pricing layouts, sync dialogs, and default theme styling for a cleaner admin UI. +- Font assets now resolve correctly across workspace layouts. --- ### What's Changed -* fix(gemini): add IncludeServerSideToolInvocations field to ToolConfig by @KoellM in https://github.com/QuantumNous/new-api/pull/4311 -* rafactor: payment by @seefs001 in https://github.com/QuantumNous/new-api/pull/4089 -* fix(topup): import missing Tag in recharge card by @gaoren002 in https://github.com/QuantumNous/new-api/pull/4388 -* chore: refine codex usage modal layout by @seefs001 in https://github.com/QuantumNous/new-api/pull/4386 -* fix: use stream for codex auto test by @seefs001 in https://github.com/QuantumNous/new-api/pull/4325 -* fix: refresh codex credentials for auto-disabled channels by @seefs001 in https://github.com/QuantumNous/new-api/pull/4324 -* fix: require proper verification for passkey changes by @seefs001 in https://github.com/QuantumNous/new-api/pull/4393 +* fix(web): prevent browser translation from mutating React roots by @cat0825 in https://github.com/QuantumNous/new-api/pull/5963 +* feat(web): 支持渠道列表手动调整列宽 by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/5948 +* fix(web): let channel table fill available width by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/6031 +* chore: remove dead files resurrected by v1.0 launch commit by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6041 +* fix: use GORM v2 row locking for subscription resets by @seefs001 in https://github.com/QuantumNous/new-api/pull/6057 +* feat(playground): add playground parameter settings panel by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6044 +* fix: allow adding model names that differ only by case in multi-select by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6061 +* fix: remove sample special usable groups leaking into pricing page by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5906 +* perf(model-pricing): optimize upstream price sync tables by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/6092 +* fix(web): allow user-activated top navigation for custom home iframe by @Heykode in https://github.com/QuantumNous/new-api/pull/5955 +* chore(deps): bump golang.org/x/crypto from 0.51.0 to 0.52.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/6096 +* fix: sync codex responses passthrough fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/6018 +* feat: enhance text protocol conversion and advanced custom routing by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5825 +* feat: add unset price models tab to model pricing settings by @feitianbubu in https://github.com/QuantumNous/new-api/pull/6124 ### New Contributors -* @KoellM made their first contribution in https://github.com/QuantumNous/new-api/pull/4311 -* @gaoren002 made their first contribution in https://github.com/QuantumNous/new-api/pull/4388 +* @cat0825 made their first contribution in https://github.com/QuantumNous/new-api/pull/5963 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.14...v0.12.15 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.20...v1.0.0-rc.21 **下载资源** --- -## v0.12.14 +## v1.0.0-rc.20 - + -### Improvements -- Improved user-visible management and top-up logs with a cleaner display, preserved row expansion, and clearer handling of legacy records. +### Highlights +This release adds GPT-5.6 pricing support and stale instance cleanup tools for administrators. It also fixes several quota and pricing edge cases, including wallet reward transfers and decimal ratio input. + +### New Features +- Added token pricing support for GPT-5.6 models. +- Added system-info actions for cleaning up stale instances. (#5953) + +### Bug Fixes +- Wallet reward transfers now respect the configured quota unit instead of using an incorrect fixed unit. (#5808) +- Group ratio fields now allow decimal values such as `0.05` to be typed normally. (#5995) +- Tiered pricing now uses a default token estimate during pre-consumption, improving quota calculation for affected pricing rules. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.13...v0.12.14 +### What's Changed +* fix: 分组倍率 Ratio 输入框保留小数中间态,修复无法输入 0.05 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5995 +* feat(system-info): add stale instance cleanup actions by @seefs001 in https://github.com/QuantumNous/new-api/pull/5953 +* fix(wallet): honor configured quota units for reward transfers by @A-Words in https://github.com/QuantumNous/new-api/pull/5808 + +### New Contributors +* @A-Words made their first contribution in https://github.com/QuantumNous/new-api/pull/5808 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.19-i18nfix.2...v1.0.0-rc.20 **下载资源** --- -## v0.12.13 - - - -This release improves admin workflows for top-ups and makes account status changes apply more consistently. - -#### Bug Fixes -- Disabling a user now takes effect immediately instead of being delayed by stale cached account data. - -#### Improvements -- Top-up logs now include additional admin-only audit details to make review and troubleshooting easier. - -#### Breaking Changes -- Top-up searches are now limited to a maximum 30-day date range to keep queries responsive and reliable. +## v1.0.0-rc.19-i18nfix.2 ---- + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.12...v0.12.13 +Fix i18n error **下载资源** --- -## v0.12.12 +## v1.0.0-rc.19 - - -This release adds support for Claude Opus 4.7, expanding the set of available models in the API. + ### New Features -- Added support for the Claude Opus 4.7 model, making it available through the API alongside existing model options (#4293). +- Admins can now reset subscription quotas and review quota saturation events for auditing, making quota management easier (#5952). +- Added Traditional Chinese (zh-TW) localization for the new UI (#5942). + +### Bug Fixes +- Fixed billing quota calculations for very large quotas so limits are applied correctly. --- ### What's Changed -* feat: support claude-opus-4-7 by @prnake in https://github.com/QuantumNous/new-api/pull/4293 -* chore(deps): bump github.com/jackc/pgx/v5 from 5.7.1 to 5.9.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4294 +* Localized new ui to zh-TW by @MeowTechOpenSource in https://github.com/QuantumNous/new-api/pull/5942 +* feat(subscription): add admin quota reset actions by @seefs001 in https://github.com/QuantumNous/new-api/pull/5952 +### New Contributors +* @MeowTechOpenSource made their first contribution in https://github.com/QuantumNous/new-api/pull/5942 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.11...v0.12.12 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.18...v1.0.0-rc.19 **下载资源** --- -## v0.12.11 +## v1.0.0-rc.18 - + -#### New Features -* Added payment method tracking and validation for top-ups. +Billing quota handling is more reliable in this release, with stricter quantity validation to prevent incorrect quota calculations. -#### Bug Fixes -* Improved handling of empty string content during OpenAI to Claude message conversion. +**Bug Fixes** +- Improved billing quantity validation so quota and usage calculations handle invalid or extreme values more reliably. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.10...v0.12.11 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.17...v1.0.0-rc.18 **下载资源** --- -## v0.12.10 +## v1.0.0-rc.17 + + - +### Highlights +This release improves channel testing, redemption management, theme handling, and several web UI flows. It also fixes usage reporting, classic web builds, streaming disconnect handling, and quota/video duration calculations. ### New Features -- Added passthrough support for Claude `cache_control` and `speed` options, giving you more control over request behavior when using Claude models (#4247). +- Redemption management now supports status filtering and cleanup actions for easier administration. +- Group ratio editing is easier to use, with clearer visibility behavior and more robust JSON input handling. +- Redeem failures now show clearer messages so users can understand what went wrong. ### Bug Fixes -- Fixed OpenAI Responses API compatibility issues when `instructions` contain structured content instead of plain text (#4260). +- AI Elements integrations now read nested usage data so token usage is reported correctly. +- Classic web builds now complete successfully again (#5892). +- Field passthrough controls now appear correctly for Codex channels (#5902). +- Home iframes now stay in sync with the selected theme and language (#5917). +- Custom HTML rendered inside Shadow DOM now follows light and dark mode changes correctly (#5890). +- Logged-in users are now redirected away from the sign-up page consistently with the login and classic themes (#5910). +- Streaming responses no longer continue writing after the client disconnects (#5710). +- Quota settlement and Ali video duration handling were corrected after task balance settlement (#5923). +- Build date generation no longer fails when DNS lookup fails (#5945). ### Improvements -- Improved Stripe payment processing to better handle asynchronous webhook events, making delayed payment confirmations more reliable. -- Quota adjustment logs now record the acting admin username, making administrative audit trails easier to follow (#4216). +- Channel and model test dialogs are more compact and easier to operate (#5886). +- Dynamic pricing details now use styling consistent with the log details dialog (#5905). +- Mobile user cards have been refined for better readability and layout. +- Legacy top-up warning text is clearer and easier to understand (#5855). --- ### What's Changed -* fix: use json.RawMessage for Instructions field in OpenAIResponsesResponse by @linbin524 in https://github.com/QuantumNous/new-api/pull/4260 -* fix(channel): 修复多密钥管理弹窗索引显示,将索引值调整为从1开始 by @wans10 in https://github.com/QuantumNous/new-api/pull/4231 -* feat(claude): add cache_control and speed passthrough controls by @seefs001 in https://github.com/QuantumNous/new-api/pull/4247 -* feat: include admin username in quota adjustment logs by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4216 +* chore(deps-dev): bump tmp from 0.2.5 to 0.2.7 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5147 +* chore(web): update default web dependencies by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5884 +* perf(web): refine channel test dialog interactions by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5886 +* fix(classic): fix classic web build failures by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5892 +* fix(channels): show field passthrough controls for Codex by @seefs001 in https://github.com/QuantumNous/new-api/pull/5902 +* fix: align dynamic pricing style with log details dialog sections by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5905 +* fix: 任务差额结算后 quota 和阿里视频时长优化 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5923 +* fix(web): sync home iframe theme and language by @guoruqiang in https://github.com/QuantumNous/new-api/pull/5917 +* fix(web): 修复 Shadow DOM 隔离渲染下自定义 HTML 深浅色失效的问题 by @olwater in https://github.com/QuantumNous/new-api/pull/5890 +* fix(web): 注册页补充已登录重定向守卫,与登录页 / classic 主题保持一致 (#5908) by @Heykode in https://github.com/QuantumNous/new-api/pull/5910 +* feat: optimize legacy top-up warning banner copy (#5851) by @Gravirei in https://github.com/QuantumNous/new-api/pull/5855 +* fix: avoid stale stream writes after client disconnect by @seefs001 in https://github.com/QuantumNous/new-api/pull/5710 +* Fix/build date dns error by @seefs001 in https://github.com/QuantumNous/new-api/pull/5945 ### New Contributors -* @linbin524 made their first contribution in https://github.com/QuantumNous/new-api/pull/4260 +* @Heykode made their first contribution in https://github.com/QuantumNous/new-api/pull/5910 +* @Gravirei made their first contribution in https://github.com/QuantumNous/new-api/pull/5855 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.9...v0.12.10 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.16...v1.0.0-rc.17 **下载资源** --- -## v0.12.9 +## v1.0.0-rc.16 - + -### New Features -- Subscription cards now show the next quota reset time, making it easier to see when usage limits will refresh (#4181). +**Highlights** -### Bug Fixes -- Claude requests are now more reliable by avoiding incompatible Top P settings when needed. -- Azure channels now correctly support the `/v1/responses/compact` route (#4149). -- Editing values in GroupTable no longer forces the cursor to jump to the end on each keystroke (#4208). +This release expands model and media compatibility with Responses/Chat interoperability, Doubao Seedance 2.0 updates, and Wan2.7 i2v media mapping. It also improves the web experience around Playground rendering, channel management, page state retention, and graceful restarts. -### Improvements -- Dashboard charts have been refined to present rankings and chart sizing more clearly for easier monitoring. +**New Features** + +- Added Responses API to Chat compatibility so providers and clients using either format can interoperate more reliably (#5787). +- Expanded Doubao Seedance 2.0 support with material asset APIs, resolution-aware billing, video-input billing, 4K billing, and new request options (#5824). +- Added Wan2.7 image-to-video media mapping support (#4984). +- Added graceful shutdown support to reduce interrupted replies and avoid losing cached panel data during restarts (#4258). +- Improved channel management with a clearer layout and a more capable advanced custom route editor. + +**Bug Fixes** + +- Fixed the model pricing tiered expression editor so it refreshes correctly when switching between models (#5752). +- Fixed async task usage logs so usage is attributed to the node that initiated the task (#5684). +- Fixed theme switching so the app returns to the home page instead of landing on a 404 route (#5612). +- Fixed custom HTML and Markdown rendering so content keeps consistent styling and spacing, including isolated HTML views (#5795). +- Fixed page state resets when switching tabs within the same route, including dashboard time ranges (#5796). +- Fixed channel status filters so they persist across page navigation (#5863). +- Fixed Ollama non-streaming tool call handling (#5865). +- Fixed Waffo product information and webhook behavior (#5704). + +**Improvements** + +- Improved the Playground chat experience and Markdown rendering (#5217). +- Streamlined table actions and destructive confirmation dialogs for a cleaner web UI (#5645). +- Improved ClickHouse log filtering for LIKE queries. +- Optimized the frontend build pipeline for faster web builds (#5786). --- ### What's Changed -* fix(GroupTable): prevent Input cursor jumping to end on keystroke by @Xbang0222 in https://github.com/QuantumNous/new-api/pull/4208 -* feat: display next quota reset time in subscription card by @ShengM97 in https://github.com/QuantumNous/new-api/pull/4181 -* fix: add Azure channel support for /v1/responses/compact URL routing by @woan1136 in https://github.com/QuantumNous/new-api/pull/4149 +* chore(deps): bump dompurify from 3.4.5 to 3.4.11 in /web/default by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5718 +* fix(ci): install classic workspace dependencies for releases by @seefs001 in https://github.com/QuantumNous/new-api/pull/5719 +* perf(web): streamline table actions and destructive dialogs by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5645 +* fix: add Waffo goods info and webhook SDK update by @zhongyuanzhao-alt in https://github.com/QuantumNous/new-api/pull/5704 +* fix(model-pricing): refresh tiered expression editor when switching models by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5752 +* fix: sync bun.lock with dompurify 3.4.11 to restore frozen-lockfile build by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5738 +* fix(theme): 切换前端主题后重置到首页,避免路由 404 by @zhangzhichaolove in https://github.com/QuantumNous/new-api/pull/5612 +* fix(task): attribute async task usage log to the initiating node by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5684 +* feat: add Casbin admin permissions by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5755 +* feat(playground): improve Playground chat experience and Markdown rendering by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5217 +* fix(auth): align password validation copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5759 +* fix(web): render custom HTML and Markdown content consistently by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5760 +* fix(openai): harden Chat-to-Responses compatibility by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5772 +* feat: support Responses to Chat by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5787 +* feat: doubao-seedance-2-0-260128支持按分辨率区分计费 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5300 +* feat: support doubao seedance 2.0 safety_identifier/priority and 4k billing by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5824 +* fix(web): 修复自定义 HTML 样式被过滤及排版间距异常的问题 by @olwater in https://github.com/QuantumNous/new-api/pull/5795 +* feat: support Wan2.7 i2v media mapping by @wxwwt in https://github.com/QuantumNous/new-api/pull/4984 +* perf(web): optimize web Rsbuild and Tailwind build pipeline by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5786 +* fix(makefile): run only default web dev server from dev-web by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5794 +* fix(web): inject app styles into isolated HTML by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5860 +* fix: preserve route state when switching same-route tabs (dashboard time range resets) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5796 +* 支持服务优雅关闭,避免重启回复中断和面板缓存数据丢失 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4258 +* fix: only treat 401 as session expiry in default theme auth guard by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5872 +* fix: persist channel status filter across page navigation by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5863 +* chore(deps): bump golang.org/x/net from 0.50.0 to 0.55.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5862 +* chore(deps): bump golang.org/x/image from 0.38.0 to 0.41.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5873 +* fix: handle ollama non-stream tool calls by @stevenjoezhang in https://github.com/QuantumNous/new-api/pull/5865 ### New Contributors -* @Xbang0222 made their first contribution in https://github.com/QuantumNous/new-api/pull/4208 -* @ShengM97 made their first contribution in https://github.com/QuantumNous/new-api/pull/4181 -* @woan1136 made their first contribution in https://github.com/QuantumNous/new-api/pull/4149 +* @zhangzhichaolove made their first contribution in https://github.com/QuantumNous/new-api/pull/5612 +* @olwater made their first contribution in https://github.com/QuantumNous/new-api/pull/5795 +* @wxwwt made their first contribution in https://github.com/QuantumNous/new-api/pull/4984 +* @stevenjoezhang made their first contribution in https://github.com/QuantumNous/new-api/pull/5865 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.8...v0.12.9 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.15...v1.0.0-rc.16 **下载资源** --- -## v0.12.8 +## v1.0.0-rc.15 - + -#### Bug Fixes -* Correctly report the stream status in error logs instead of defaulting to false (#4195). +### Highlights +This release adds several operations-focused controls, including passive channel monitoring, ClickHouse-backed log storage, system task execution, and instance visibility. It also improves frontend reliability and polish across usage logs, markdown rendering, channel selection, and optional wallet UI behavior. + +### New Features +- Added passive channel monitoring mode for checking channel health without actively disrupting traffic (#5592). +- Added support for storing logs in ClickHouse for deployments that need scalable log storage and querying (#5663). +- Added a system task runner with persistent cleanup progress tracking for long-running maintenance jobs (#5680). +- Added a system instance information panel to make deployment/node status easier to inspect (#5716). +- Added a user token limit configuration section in system settings (#5678). +- Added channel testing controls for environment selection and asynchronous polling delay configuration. +- Default node names now fall back to the machine hostname when `NODE_NAME` is not set (#5659). + +### Bug Fixes +- Usage logs now show provider icons correctly for CN models (#5631). +- Corrected the Stepfun provider display name (#5636). +- Fixed SMTP compatibility with STARTTLS mode and NTLM authentication (#5426). +- Fixed classic theme build failures related to timezone date handling (#5676). +- Improved markdown rendering and expanded syntax support in the web UI (#5689). +- Fixed channel card selection state so the UI stays in sync with the selected channel (#5700). +- Hid the wallet entry from the profile dropdown when the wallet module is disabled (#5708). + +### Improvements +- Simplified log cleanup behavior as part of the new ClickHouse logging and system task maintenance flow. --- ### What's Changed -* fix: isStream status in error logs instead of hardcoded false by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4195 -* chore(deps): bump axios from 1.13.5 to 1.15.0 in /web by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4201 +* fix(usage-logs): show provider icons for CN models (align with classic frontend) by @DeliciousBuding in https://github.com/QuantumNous/new-api/pull/5631 +* fix: StepFun -> Stepfun by @seefs001 in https://github.com/QuantumNous/new-api/pull/5636 +* feat: add passive channel monitoring mode by @exherb in https://github.com/QuantumNous/new-api/pull/5592 +* feat: default node name to hostname when NODE_NAME unset by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5659 +* feat: support ClickHouse log database by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5663 +* fix: support SMTP STARTTLS mode and NTLM auth by @bensonfx in https://github.com/QuantumNous/new-api/pull/5426 +* chore(deps): bump github.com/ClickHouse/ch-go from 0.58.2 to 0.65.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5664 +* fix: date-fns-tz classic theme build error by @seefs001 in https://github.com/QuantumNous/new-api/pull/5676 +* feat: add system task runner by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5680 +* feat: add system instance info panel by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5716 +* fix(web): replace default markdown renderer and expand syntax support by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5689 +* fix(web): sync channel card selection state by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5700 +* fix(web): hide wallet entry in profile dropdown when wallet module disabled by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5708 +* feat(system-settings): add user token limit configuration section by @RedwindA in https://github.com/QuantumNous/new-api/pull/5678 +### New Contributors +* @DeliciousBuding made their first contribution in https://github.com/QuantumNous/new-api/pull/5631 +* @exherb made their first contribution in https://github.com/QuantumNous/new-api/pull/5592 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.7...v0.12.8 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.14...v1.0.0-rc.15 **下载资源** --- -## v0.12.7 +## v1.0.0-rc.14 - + +### Highlights +This release adds a new dashboard traffic flow Sankey chart for visualizing token routing and flow patterns, with interactive highlighting, persistent filters, and limits to keep large graphs readable. Channel management also gets a faster, cleaner card layout for easier browsing and reduced UI re-rendering. + +### New Features +- Added a dashboard traffic flow Sankey chart to help admins understand token flow and routing behavior at a glance (#5465). +- Added routing reliability management for better control and visibility over routing behavior. + +### Gallery +| Traffic flow chart | Channel management card layout | +| --- | --- | +|QQ_1781965314487| | + +### Bug Fixes +- Fixed log filtering by login type in the new frontend (#5620). +- Fixed the billing history dialog layout so pagination no longer overlaps the list (#5627). +- Fixed model pricing entries that could not be deleted from the visual pricing list (#5628). +- Fixed repeated database column migrations running again after restarts (#5361, #5616). + ### Improvements -- Quota management now uses an amount-first input flow and applies changes atomically, making balance adjustments simpler and more reliable. -- Model pricing errors now use cleaner, role-aware messages so it is easier to understand and resolve failed pricing actions. +- Improved the channel management card layout and reduced unnecessary re-renders for a smoother experience. +- Simplified the model list for easier scanning and management. +- Updated channel icons for better visual consistency. --- -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.6...v0.12.7 +### What's Changed +* fix: stop repeated allow_balance_pay column migration on restart by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5361 +* fix: stop repeated allow_wallet_overflow column migration on restart by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5616 +* feat(dashboard): 增加分流图,查看token流量。add traffic flow sankey chart by @Quaternijkon in https://github.com/QuantumNous/new-api/pull/5465 +* fix(log): 修复新前端日志按登录类型(type=7)筛选失效 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5620 +* fix(wallet): 修复计费历史弹窗分页与列表重叠 (#5624) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5627 +* fix(model-pricing): 修复模型定价列表项无法删除 (#5623) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5628 + +### New Contributors +* @Quaternijkon made their first contribution in https://github.com/QuantumNous/new-api/pull/5465 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.13...v1.0.0-rc.14 **下载资源** --- -## v0.12.6 +## v1.0.0-rc.13 - + -#### New Features -* Fill in custom fields for vllm-omini (#4154) +v1.0.0-rc.13 focuses on a more polished and responsive frontend experience, especially around channel management and data-heavy pages. The channel page now supports a card-style display with improved mobile layouts, while logs, metrics, endpoint selection, date picking, and usage views received UI/UX refinements. -#### Bug Fixes -* Accept string usage values in Alibaba task polling (#4155) -* Use correct endpoint for coding plan image generation in Zhipu 4V (#4146) -* Prefer explicit pricing for compact models (#4156) -* Fix document rendering (#4153) +### New Features +- Added a reusable card/table view toggle for data tables, including a new card layout that makes channel and table-heavy pages easier to browse on different screen sizes. +- Added locale-aware number formatting so numeric values are displayed more naturally for users in different regions. -#### Improvements -* Refine PR template and add PR submission checks (#4076) +### Improvements +- Improved the channel page card layout with a clearer left/right structure and better mobile handling for small screens. +- Refined logs, metrics, endpoint selection, date picker, toolbar controls, and model drawer interfaces for a cleaner and more consistent UI/UX. +- Updated the Codex usage interface for better readability and usability (#5595). +- Reduced unnecessary data refreshes when returning focus to the browser window, improving frontend performance. +- Updated frontend branding copy and visual styling for a more consistent product experience. + +### Bug Fixes +- Improved timestamp precision in drawing-related displays by including milliseconds where needed. --- ### What's Changed -* fix(zhipu_4v): use correct endpoint for coding plan image generation by @NyaMisty in https://github.com/QuantumNous/new-api/pull/4146 -* fix: prefer explicit pricing for compact models by @seefs001 in https://github.com/QuantumNous/new-api/pull/4156 -* fix(ali): accept string usage values in task polling by @seefs001 in https://github.com/QuantumNous/new-api/pull/4155 -* feat: fill in some custom fields for vllm-omini by @seefs001 in https://github.com/QuantumNous/new-api/pull/4154 -* fix: document render by @seefs001 in https://github.com/QuantumNous/new-api/pull/4153 -* ci: refine PR template and add PR submission checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4076 +* chore(web): enforce default frontend oxc quality checks by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5585 +* refactor: codex usage ui by @seefs001 in https://github.com/QuantumNous/new-api/pull/5595 -### New Contributors -* @NyaMisty made their first contribution in https://github.com/QuantumNous/new-api/pull/4146 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.5...v0.12.6 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.12...v1.0.0-rc.13 **下载资源** --- -## nightly-20260409-4d2993e +## v1.0.0-rc.12 - + -#### Highlights / 重点更新 - -This release introduces comprehensive support for **tiered billing (阶梯计费)**. It allows for flexible pricing expressions, detailed tool call quota calculations, and channel test support for tiered models. -本次发布重点增加了对**阶梯计费**的全面支持,支持灵活的计费表达式解析、自定义工具调用额度计算,并完善了UI配置项和渠道测试支持。 +Highlights: This release introduces AdvancedCustom channels for more flexible custom routing, makes channel batch testing easier to act on, and expands model marketplace performance monitoring with clearer success-rate and latency insights. -**Docker image:** `calciumion/new-api:nightly` -**Docker 镜像:** `calciumion/new-api:nightly` - - +### New Features +- Added AdvancedCustom channels with improved custom route matching for more flexible provider and model routing (#5590). +- Enhanced channel model batch testing with complete test execution, refreshed status updates, clearer results, failed-model deletion, and copying selected models (#5532). +- Expanded model marketplace performance monitoring with uptime calculations, recent success rates, success-rate grading, and compact latency/throughput displays. +- Added persistent table preferences so page size and column visibility are remembered across navigation and sessions (#5403). -#### New Features -* Added comprehensive support for tiered billing, including flexible expression evaluation, tool pricing settings UI, and channel test support (#4145). -* Added custom fields support for vllm-omini models (#4154). +### Bug Fixes +- Fixed tool-call handling so empty `arguments` values still preserve the expected `tool_use` block (#5543). +- Fixed the CC Switch model selector so model choices display and update correctly (#5515). +- Fixed several UI clipping and overflow issues in lists, data tables, usage log details, and custom home iframes (#5510, #5536, #5533, #5545). -#### Bug Fixes -* Fixed an issue in Alibaba Cloud task polling to correctly accept string usage values (#4155). -* Fixed the endpoint for Zhipu 4v coding plan image generation (#4146). -* Fixed pricing calculation to prefer explicit pricing for compact models (#4156). +### Improvements +- Improved payment and recharge UI with clearer payment method buttons, icons, and minimum top-up information. +- Improved subscription plan presentation with purchase descriptions, wallet overflow handling, and downgrade group support. +- Refined settings, overview setup guide, wallet/profile interactions, and log statistic card layouts for better readability. -#### Improvements -* Improved UI layout consistency by replacing card components with divs. -* Added nightly branch trigger to Docker image CI workflows. -* Refined PR templates and added PR submission checks (#4076). +### Breaking Changes +- Subscription product option and catalog endpoints now use `GET`, which may require client integrations to update their request method. +- Removed the “All” period option from rankings filters. --- ### What's Changed -* fix(zhipu_4v): use correct endpoint for coding plan image generation by @NyaMisty in https://github.com/QuantumNous/new-api/pull/4146 -* fix: prefer explicit pricing for compact models by @seefs001 in https://github.com/QuantumNous/new-api/pull/4156 -* fix(ali): accept string usage values in task polling by @seefs001 in https://github.com/QuantumNous/new-api/pull/4155 -* feat: fill in some custom fields for vllm-omini by @seefs001 in https://github.com/QuantumNous/new-api/pull/4154 -* fix: document render by @seefs001 in https://github.com/QuantumNous/new-api/pull/4153 -* ci: refine PR template and add PR submission checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4076 -* fix(channel-test): support tiered billing model tests by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4145 +* fix(web): prevent list cell text and badge overflow by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5510 +* fix(keys): refresh API key form options by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5512 +* fix: fix CC Switch model selector by @seefs001 in https://github.com/QuantumNous/new-api/pull/5515 +* fix(data-table): capture row selection state in memo comparison by @RedwindA in https://github.com/QuantumNous/new-api/pull/5524 +* fix(channels): refresh channel test dialog status by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5517 +* fix: restore custom home iframe viewport height by @seefs001 in https://github.com/QuantumNous/new-api/pull/5545 +* fix(web): prevent usage log details dialog from clipping bottom content by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5533 +* fix: aws ak/sk context management by @seefs001 in https://github.com/QuantumNous/new-api/pull/5547 +* test: clean up reward-hacking backend tests by @seefs001 in https://github.com/QuantumNous/new-api/pull/5563 +* fix: 工具调用 arguments 为空时保留 tool_use 块 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5543 +* fix: complete channel model batch testing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5532 +* feat: 持久化表格每页条数,跨导航/会话记忆 (#5377) by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5403 +* fix(data-table): prevent component cell clipping by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5536 +* fix(oauth): clear bindings when hard deleting users by @seefs001 in https://github.com/QuantumNous/new-api/pull/5582 +* feat: advanced custom channel by @seefs001 in https://github.com/QuantumNous/new-api/pull/5590 -### New Contributors -* @NyaMisty made their first contribution in https://github.com/QuantumNous/new-api/pull/4146 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.5...nightly-20260409 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.11...v1.0.0-rc.12 **下载资源** --- -## v0.12.5 +## v1.0.0-rc.11 - + -#### New Features -* Add support for Minimax image generation relay (#4103). - -#### Improvements -* Redesign group ratio rules with a collapsible layout for better usability. -* Enhance dashboard chart axes and sorting logic. -* Add a convenient copy button next to the API link in the dashboard info panel. - -#### Bug Fixes -* Resolve email delivery issues for Outlook and similar providers (#4112). - - - - ---- - -### What's Changed -* feat: 支持强制使用 AUTH LOGIN 以解决 outlook 等邮箱的发件问题 by @Hoshino-Yumetsuki in https://github.com/QuantumNous/new-api/pull/4112 -* feat(minimax): add image generation relay support by @forsakenyang in https://github.com/QuantumNous/new-api/pull/4103 - -### New Contributors -* @Hoshino-Yumetsuki made their first contribution in https://github.com/QuantumNous/new-api/pull/4112 -* @forsakenyang made their first contribution in https://github.com/QuantumNous/new-api/pull/4103 - -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.4...v0.12.5 +Highlights: This release adds support for Claude Opus 4.8, improves OpenAI image API compatibility, and makes the model pricing editor and data-heavy tables easier to use. It also fixes several UI, quota display, relay compatibility, and provider-specific issues. + +### New Features +- Added support for Claude Opus 4.8 (#5177). +- Added an option to control whether channel stickiness is cleared when a channel is disabled (#5306). +- Added a subscription balance redemption toggle for more flexible balance handling. +- Added user ID visibility on the profile page (#5317). +- Added support for streaming image relay and image edits in the OpenAI images API (#4608). + +### Bug Fixes +- Forms now focus the first validation error after submission, making errors easier to find and correct (#5163). +- Fixed custom cc-switch names being reset after losing focus (#5170). +- Fixed custom model icons not staying in sync in pricing views (#5224). +- Fixed advanced channel validation errors so they are shown without incorrectly expanding unrelated settings (#5239). +- Fixed quota and balance displays so currency conversion updates both the unit and the displayed value (#5296). +- Fixed Dify remote-image handling in file-based requests (#5134). +- Fixed model resolution for video generation task lookups (#5133). +- Improved Anthropic-compatible GLM relay behavior to avoid compatibility failures (#5307). +- Narrowed OpenAI o-series model adaptation to avoid applying it to unsupported models (#5293). +- Fixed multiselect popovers so they respect the active theme (#5328). +- Fixed Kimi K2.6 temperature normalization (#5390). +- Added support for filtering deleted users by status (#5464). +- Fixed deployment settings loading so they are only fetched on the deployments page (#5466). + +### Improvements +- Improved admin log and batch update performance for smoother large-scale operations (#5116). +- Improved the model pricing editor with clearer layouts, better draft saving, reusable JSON editing, and support for six-decimal pricing steps (#5275). +- Improved channel search responsiveness with debouncing and better IME input handling (#5393). +- Improved frontend table rendering, pinned columns, table layout, and badge display (#5405). +- Improved dialog sizing and footer layout across the frontend (#5346). +- Simplified public page hero copy for a cleaner landing page (#5339). + +--- + +### What's Changed +* fix(web): improve form validation error focus by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5163 +* feat(keys/cc-switch-dialog): 修复自定义cc-switch名称失焦后重置问题 by @GnezIew in https://github.com/QuantumNous/new-api/pull/5170 +* fix(model): correct idx_created_at_id index column order to (created_at, id) by @realRoc in https://github.com/QuantumNous/new-api/pull/5191 +* perf: order admin logs by created_at to use composite index by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5116 +* chore(deps): bump axios from 1.15.2 to 1.16.0 in /web/classic by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/5185 +* feat: support claude-opus-4-8 by @hjxwz123 in https://github.com/QuantumNous/new-api/pull/5177 +* fix(pricing): sync custom model icons by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5224 +* chore(web): centralize shared frontend dependency versions by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5227 +* feat(web): support classic Rsbuild dev and build by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5232 +* fix(channels): reveal advanced validation errors by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5239 +* docs: refine issue templates by @seefs001 in https://github.com/QuantumNous/new-api/pull/5271 +* fix: 修复余额显示时只切换了单位未切换数值 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/5296 +* fix(dify): initialize file pointer before remote-image field assignment by @Pluviobyte in https://github.com/QuantumNous/new-api/pull/5134 +* fix(distributor): resolve model for GET /v1/video/generations/:task_id by @Pluviobyte in https://github.com/QuantumNous/new-api/pull/5133 +* fix: add relay idle connection timeout config by @seefs001 in https://github.com/QuantumNous/new-api/pull/5309 +* feat: 支持配置渠道被禁用后是否清空渠道粘性 by @GuangYiDing in https://github.com/QuantumNous/new-api/pull/5306 +* fix(relay): fix Anthropic-compatible compatibility for GLM (avoid chunked encoding) by @Chen011214 in https://github.com/QuantumNous/new-api/pull/5307 +* fix: limit anonymous request body by @seefs001 in https://github.com/QuantumNous/new-api/pull/5244 +* fix(i18n): clarify thinking adapter copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5242 +* fix: 收窄 OpenAI o 系列模型适配范围 by @USER-HFC in https://github.com/QuantumNous/new-api/pull/5293 +* fix: reuse stream scanner buffer in channel handlers by @xujiantop-crypto in https://github.com/QuantumNous/new-api/pull/5225 +* feat(web): show user id on profile page by @P2K0 in https://github.com/QuantumNous/new-api/pull/5317 +* perf(model-pricing): improve model pricing editor UX by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5275 +* perf(web): simplify public page hero copy by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5339 +* perf(web): improve frontend dialog layout and sizing by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5346 +* fix: respect theme for multiselect combobox popover by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5328 +* fix: align mobile usage log cost badge by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5161 +* fix: support six-decimal steps in model pricing editor by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5332 +* fix(openai): support streaming image relay and image edit for images API by @gaoren002 in https://github.com/QuantumNous/new-api/pull/4608 +* perf(web): add debounce channel search and skip during IME composition by @QAbot-zh in https://github.com/QuantumNous/new-api/pull/5393 +* fix: normalize kimi k2.6 temperature by @bensonfx in https://github.com/QuantumNous/new-api/pull/5390 +* perf(web): improve frontend table rendering and pinned columns/UI table by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5405 +* perf(data-table): improve data table layout and badge display by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/5460 +* feat(audit): add localized security audit logs by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/5462 +* chore: update Codex channel by @seefs001 in https://github.com/QuantumNous/new-api/pull/5461 +* fix: add deleted user status filter by @seefs001 in https://github.com/QuantumNous/new-api/pull/5464 +* fix: only fetch deployment settings on deployments page by @seefs001 in https://github.com/QuantumNous/new-api/pull/5466 + +### New Contributors +* @GnezIew made their first contribution in https://github.com/QuantumNous/new-api/pull/5170 +* @realRoc made their first contribution in https://github.com/QuantumNous/new-api/pull/5191 +* @hjxwz123 made their first contribution in https://github.com/QuantumNous/new-api/pull/5177 +* @Pluviobyte made their first contribution in https://github.com/QuantumNous/new-api/pull/5134 +* @GuangYiDing made their first contribution in https://github.com/QuantumNous/new-api/pull/5306 +* @Chen011214 made their first contribution in https://github.com/QuantumNous/new-api/pull/5307 +* @USER-HFC made their first contribution in https://github.com/QuantumNous/new-api/pull/5293 +* @xujiantop-crypto made their first contribution in https://github.com/QuantumNous/new-api/pull/5225 +* @P2K0 made their first contribution in https://github.com/QuantumNous/new-api/pull/5317 +* @bensonfx made their first contribution in https://github.com/QuantumNous/new-api/pull/5390 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.10...v1.0.0-rc.11 **下载资源** --- -## v0.12.4 +## v1.0.0-rc.10 - + + +### Highlights +v1.0.0-rc.10 focuses on UI polish, relay reliability, and admin workflow fixes. It adds new theme options and subscription balance purchases while tightening logs, channel behavior, webhooks, payments, and provider tool-call handling. ### New Features -* Added an `IncludeModelName` option to channel affinity rules for per-model affinity tracking (#3488) -* Added an ErrorBoundary component to the web UI to prevent full-page crashes (#3350) -* Added support for `Duration` in `TaskSubmitReq` (#4068) -* Added admin user analytics to the dashboard +- New theme customization options add Anthropic and Simple Large presets, configurable serif typography, and an extra-large scaling option. +- Subscription billing now supports balance purchases. ### Bug Fixes -* Fixed pricing filtering based on usable groups (#4123) -* Fixed an issue where Claude streaming interruptions incorrectly overwrote usage data instead of preserving cache billing fields (#4128) -* Fixed an issue where the "do not retry after failure" configuration was incorrectly overwritten in memory (#4142) +- Automatically disabled channels are no longer selected for new requests, and channel actions no longer show duplicate notifications (#4983). +- Tool-call relays between Gemini and Claude are more reliable, including concurrent tool calls (#5095). +- Image relay requests now apply the requested quality setting correctly (#5103). +- Usage log filters now match exact values unless a wildcard is explicitly used, and very large upstream errors are shortened to keep logs usable (#5097). +- Webhook processing now completes more reliably (#5047). +- Waffo payment settings now save consistently and hide legacy options (#5110). +- System Settings now detects unsaved changes correctly and handles numeric inputs without invalid values. ### Improvements -* Added support for enabling error logging via environment variables (#4131) -* Wrapped scope tag labels with `t()` for better i18n support -* Fixed chart labels on the dashboard +- Large media relay requests now use less memory, improving stability under load. +- System Settings and channel creation/editing pages have clearer, more compact layouts with improved controls. +- Usage logs and the default web UI are easier to use on mobile and easier to scan, with better table spacing, badges, charts, and dark-mode readability. +- The homepage hero section has been refreshed with a cleaner two-column layout and updated copy. --- ### What's Changed -* feat: add IncludeModelName option to channel affinity rules by @clansty in https://github.com/QuantumNous/new-api/pull/3488 -* feat: add ErrorBoundary to prevent full-page crashes by @goodmorning10 in https://github.com/QuantumNous/new-api/pull/3350 -* fix: Claude 流式断流时不再整份覆盖 usage,保留 cache 计费字段 by @zuiho-kai in https://github.com/QuantumNous/new-api/pull/4128 -* fix(pricing): add filtering for pricing based on usable groups by @bbbugg in https://github.com/QuantumNous/new-api/pull/4123 -* chore(deps): bump github.com/aws/aws-sdk-go-v2/service/bedrockruntime from 1.50.0 to 1.50.4 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4136 -* add 添加 启用错误日志记录到env配置中 by @binorxin in https://github.com/QuantumNous/new-api/pull/4131 -* Seedance support duration by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4068 -* fix: 修复 失败后不重试 配置项写到内存被覆盖 by @seefs001 in https://github.com/QuantumNous/new-api/pull/4142 +* 🐛 fix(channel): evict auto-disabled multi-key channels from cache by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4983 +* [BugFix] fix webhook process by @Hill-waffo in https://github.com/QuantumNous/new-api/pull/5047 +* fix(payment): hide classic Waffo Pancake settings by @seefs001 in https://github.com/QuantumNous/new-api/pull/5085 +* fix(relay): correct image quality parameter handling by @lanfunoe in https://github.com/QuantumNous/new-api/pull/5103 +* fix: truncate oversized upstream error logs by @seefs001 in https://github.com/QuantumNous/new-api/pull/5083 +* fix: 移除 fcIdx -1 偏移,修复并发工具调用撞键问题 by @learner-i in https://github.com/QuantumNous/new-api/pull/5095 +* fix:gemini to claude tool_use err by @nekohy in https://github.com/QuantumNous/new-api/pull/5041 +* fix: handle paginated API key search response by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5014 +* fix: prevent duplicate channel action toasts by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5015 +* fix: consolidate Waffo payment settings save flow by @seefs001 in https://github.com/QuantumNous/new-api/pull/5110 +* fix: use actual user id for channel tests by @seefs001 in https://github.com/QuantumNous/new-api/pull/5109 +* fix: keep usage log filters exact unless wildcard is explicit by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5097 ### New Contributors -* @clansty made their first contribution in https://github.com/QuantumNous/new-api/pull/3488 -* @goodmorning10 made their first contribution in https://github.com/QuantumNous/new-api/pull/3350 -* @zuiho-kai made their first contribution in https://github.com/QuantumNous/new-api/pull/4128 -* @bbbugg made their first contribution in https://github.com/QuantumNous/new-api/pull/4123 +* @learner-i made their first contribution in https://github.com/QuantumNous/new-api/pull/5095 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.3...v0.12.4 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.8...v1.0.0-rc.10 **下载资源** --- -## v0.12.3 +## v1.0.0-rc.8 - + -This is a small polish release focused on making configuration easier to navigate by simplifying the settings layout and consolidating model pricing controls. +#### Highlights +This release adds Waffo Pancake gateway support with admin catalog/product binding and focuses on polishing admin/API behavior. It also improves model metadata and pricing consistency, channel-test diagnostics, dashboard/reporting filters, and request-processing efficiency. -### Improvements -- Refined the settings interface with a unified model pricing view and a cleaner tab structure to make configuration easier to navigate. +#### New Features +- Added Waffo Pancake gateway support with admin catalog/product binding (#4935). + +#### Bug Fixes +- Dashboard content now follows configured visibility settings consistently (#4975). +- Performance metric summaries now include only active groups (#4976). +- Model pricing displays are now normalized to avoid inconsistent values (#4985). +- Model ownership metadata is now resolved from active channels for more accurate model listings (#4416). +- Default frontend links now point to the correct routes (#5016). +- Restored the previous usage-log filtering behavior to avoid regressions from the earlier filter change. + +#### Improvements +- Channel tests now show clearer failure details when checks fail (#4988). +- Reduced request-processing overhead to improve performance under load (#5009). --- ### What's Changed -* feat(token): add batch API for fetching token keys by @RedwindA in https://github.com/QuantumNous/new-api/pull/4114 +* fix: expose param override audits for sensitive message fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4974 +* fix: respect dashboard content visibility settings by @seefs001 in https://github.com/QuantumNous/new-api/pull/4975 +* fix: filter perf metrics summary by active groups by @seefs001 in https://github.com/QuantumNous/new-api/pull/4976 +* fix: improve channel test failure details UX by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4988 +* fix: normalize model pricing display drift by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4985 +* fix: resolve model owned_by from active channels by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4416 +* perf: optimize request metadata extraction and disabled field filtering by @seefs001 in https://github.com/QuantumNous/new-api/pull/5009 +* fix: update default frontend hardcoded route links by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/5016 +* 修复 切换新版前端Turnstile 开启后注册页未显示验证的问题 by @JunXiaoRuo in https://github.com/QuantumNous/new-api/pull/5011 +* [Feature Request] Waffo Pancake gateway — full integration with subscription support + admin catalog binding flow by @Hill-waffo in https://github.com/QuantumNous/new-api/pull/4935 +* fix: enforce Waffo subscription compliance and product ID update by @seefs001 in https://github.com/QuantumNous/new-api/pull/5038 + +### New Contributors +* @JunXiaoRuo made their first contribution in https://github.com/QuantumNous/new-api/pull/5011 +* @Hill-waffo made their first contribution in https://github.com/QuantumNous/new-api/pull/4935 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.7...v1.0.0-rc.8 + +**下载资源** + + + + + +--- +## v1.0.0-rc.7 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.2...v0.12.3 + + +#### New Features +- Added support for `request_header` key source (#4903). + +#### Bug Fixes +- Batch fixed multiple UI issues in the default web interface (#4880, #4893, #4817, #4877, #4898, #4876). +- Addressed an issue where channel remarks could not be cleared (#4886). +- Corrected the filtering behavior for usage logs (#4883). +- Fixed validation for unlimited API key quotas in the web interface (#4881). +- Enforced access control on header navigation for public modules (#4889). +- Applied group filters correctly to channel list queries (#4847, #4885). +- Fixed an ambiguity issue with column names during `PerfMetric` upserts (#4684). +- Added missing analytics placeholders to the default theme (#4928). +- Fixed forgot password form submission by properly typing the button (#4910). +- Normalized the layout of model detail tabs in the web interface (#4938). +- Fixed user creation and deletion handling in the management panel (#4818). +- Gated the sign-up link on the login page based on registration settings (#4871). +- Updated pagination button labels in the ModelCardGrid (#4675). +- Localized the reset password confirmation message (#4769). +- Made recharge preset selections visible in dark mode (#4897). +- Fixed an issue where the API info color dot showed the wrong color due to a semantic token mismatch (#4824). +- Corrected silent failures when saving API info with invalid colors (#4823). +- Used the correct `aff_code` field name in registration payloads (#4965). +- Made the faceted filter popover width adaptive in data tables (#4966). +- Resolved stale form linkage issues when submitting keys (#4967). + +#### Improvements +- Improved performance by avoiding eager formatting in debug log calls (#4929). + +--- + +### What's Changed +* fix: allow clearing channel remark by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4886 +* fix: correct usage logs filtering by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4883 +* fix(web): handle unlimited API key quota validation by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4881 +* fix: enforce header nav access control for public modules by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4889 +* fix: GetAllChannels ignores group filter parameter by @draftgo in https://github.com/QuantumNous/new-api/pull/4847 +* fix: qualify column names in PerfMetric upsert to avoid PG ambiguity by @SAY-5 in https://github.com/QuantumNous/new-api/pull/4684 +* fix: apply group filter to channel list queries by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4885 +* feat: support request_header key source by @seefs001 in https://github.com/QuantumNous/new-api/pull/4903 +* fix: 修复新 UI 语言与文案显示问题 by @QuentinHsu in https://github.com/QuantumNous/new-api/pull/4876 +* fix: add umami & ga4 placeholder in index.html of default theme by @NitroRCr in https://github.com/QuantumNous/new-api/pull/4928 +* perf: avoid eager formatting in debug log calls by @seefs001 in https://github.com/QuantumNous/new-api/pull/4929 +* fix: add type="submit" to forgot password form button by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4910 +* fix(web): normalize model detail tabs layout by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4938 +* fix(user): fix user create and delete handling in management panel by @bugmaker2 in https://github.com/QuantumNous/new-api/pull/4818 +* fix(auth): expose register_enabled in /api/status and gate sign-up link on login page by @Gnonymous in https://github.com/QuantumNous/new-api/pull/4871 +* fix(web/default): clarify pagination button labels in ModelCardGrid by @ellisfan in https://github.com/QuantumNous/new-api/pull/4675 +* fix(auth): localize reset password confirmation by @neow021 in https://github.com/QuantumNous/new-api/pull/4769 +* fix(web/default/wallet): make recharge preset selection visible in dark mode by @xinnyu in https://github.com/QuantumNous/new-api/pull/4897 +* fix(web/default): api-info color dot shows wrong color due to semantic token mismatch by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4824 +* fix(web/default): api-info save silently fails when color is invalid or result unchecked by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4823 +* fix(auth): use aff_code field name in registration payload (#4945) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4965 +* fix(data-table): make faceted filter popover width adaptive (#4905) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4966 +* fix(keys): call submit handler directly to avoid stale form linkage (#4858) by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4967 + +### New Contributors +* @draftgo made their first contribution in https://github.com/QuantumNous/new-api/pull/4847 +* @SAY-5 made their first contribution in https://github.com/QuantumNous/new-api/pull/4684 +* @bugmaker2 made their first contribution in https://github.com/QuantumNous/new-api/pull/4818 +* @Gnonymous made their first contribution in https://github.com/QuantumNous/new-api/pull/4871 +* @ellisfan made their first contribution in https://github.com/QuantumNous/new-api/pull/4675 +* @neow021 made their first contribution in https://github.com/QuantumNous/new-api/pull/4769 +* @xinnyu made their first contribution in https://github.com/QuantumNous/new-api/pull/4897 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.6...v1.0.0-rc.7 **下载资源** - + + +--- + +## v1.0.0-rc.6 + + + +### Highlights +This release improves observability by recording upstream request IDs in logs and adds a compliance confirmation step for paid features. If your `logs` table is large, pre-apply the `upstream_request_id` column and index with online DDL before upgrading to avoid a potentially long migration. + +### New Features +- Added upstream request ID tracking in request logs for easier upstream call tracing, while avoiding unintended response header overrides. +- Added a compliance confirmation step before paid features can be used. + +### Bug Fixes +- Fixed the channel combobox so focusing it no longer hides valid channel options (#4829). + +### Other +- Upgrade notice: the `logs` table now includes a new `upstream_request_id` column and index; on large installations, run the appropriate online DDL below before upgrading to avoid a long or blocking automatic migration. ---- +MySQL / InnoDB: -## v0.12.2 +```sql +-- 1. Add the column using online DDL. +ALTER TABLE logs + ADD COLUMN upstream_request_id VARCHAR(128) NOT NULL DEFAULT '', + ALGORITHM=INPLACE, LOCK=NONE; - +-- 2. Add the index using online DDL. +ALTER TABLE logs + ADD INDEX idx_logs_upstream_request_id (upstream_request_id), + ALGORITHM=INPLACE, LOCK=NONE; +``` -#### New Features -* Add support for PDF conversion between OpenAI and Claude APIs. -* Support differential billing for Seedance 2.0 based on video vs. no-video input. -* Enhance max_tokens handling and input sanitization in the playground (#4106). -* Enhance stream status display with error tooltips in usage logs. +PostgreSQL 11+: -#### Bug Fixes -* Fix usage calculation issues when converting between Claude and OpenAI APIs by emitting `message_delta` for the final stream chunk (#4090). -* Fix Gemini stream detection by checking the `:streamGenerateContent` URL path (#4087). -* Fix Claude request requirements by properly setting TopP to nil. +```sql +-- 1. Add the column without rewriting the table on PG 11+. +ALTER TABLE logs + ADD COLUMN IF NOT EXISTS upstream_request_id VARCHAR(128) NOT NULL DEFAULT ''; -#### Improvements -* Unify file source creation and enhance caching mechanisms. +-- 2. Add the index concurrently to avoid blocking reads and writes. +CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_logs_upstream_request_id + ON logs (upstream_request_id); +``` --- ### What's Changed -* fix(gemini): detect streaming from URL path :streamGenerateContent by @D26FORWARD in https://github.com/QuantumNous/new-api/pull/4087 -* fix: emit claude message_delta for usage-only final stream chunk by @seefs001 in https://github.com/QuantumNous/new-api/pull/4090 -* chore(deps-dev): bump electron from 35.7.5 to 39.8.5 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4080 -* chore(deps-dev): bump @xmldom/xmldom from 0.8.11 to 0.8.12 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3523 -* chore(deps-dev): bump lodash from 4.17.23 to 4.18.1 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4097 -* feat(playground): enhance max_tokens handling and input sanitization by @HynoR in https://github.com/QuantumNous/new-api/pull/4106 +* chore(deps): bump axios from 1.15.0 to 1.15.2 in /web/classic by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4634 +* chore(deps-dev): bump ip-address from 10.1.0 to 10.2.0 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/4811 +* 修复渠道列表显示不全问题 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4829 -### New Contributors -* @D26FORWARD made their first contribution in https://github.com/QuantumNous/new-api/pull/4087 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.1...v0.12.2 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.5...v1.0.0-rc.6 **下载资源** --- -## v0.12.1 +## v1.0.0-rc.5 - + -This release adds Seedance 2.0 video support and broadens media compatibility across providers. It also makes failures easier to understand with clearer Seedance and performance-related error messages. +### Highlights +The default dashboard has been refreshed with built-in model performance metrics and a clearer health view. This release also adds DeepChat deeplink support and fixes several default UI, wallet, playground, and ratio-display regressions. ### New Features -- Added Seedance 2.0 video generation API support with duration control in seconds, clearer failure reporting, and better prompt handling for single-text requests (#4042). -- Added HEIC/HEIF image support, including Gemini channel compatibility and more reliable handling of HEIF images (#4049). -- Added basic inline file support for Claude relay so compatible requests can include media directly (#3505). +- Dashboard overview has been redesigned and now includes model performance metrics with a clearer performance health panel. +- DeepChat deeplinks are now supported, making it easier to open supported chat links directly in DeepChat. (#4668) + +### Bug Fixes +- Top-up gateway availability now uses the correct top-up configuration, so wallet payment options are shown accurately. (#4599) +- Group ratio displays now honor configured group-to-group ratio settings. (#4772) +- Default UI dropdown menu items now trigger their selection handlers reliably. (#4787) +- The playground now handles legacy classic-format messages without failing. (#4650) +- Default frontend pages now avoid several v1 UI regressions, including stray empty description areas and layout issues. (#4802) ### Improvements -- Improved performance-related error messages to make request failures easier to understand. +- The default web UI and charts now follow shared theme presets for more consistent colors, controls, and corner radii. +- Docker images now include project and third-party license notices for easier compliance review. (#4739) --- ### What's Changed -* fix: add basic inline file support for Claude relay by @seefs001 in https://github.com/QuantumNous/new-api/pull/3505 -* 新增seedance2.0视频接口支持 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4042 -* feat: add HEIC/HEIF image format support for Gemini channel by @RedwindA in https://github.com/QuantumNous/new-api/pull/4049 +* feat: add DeepChat deeplink support by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4668 +* fix: exclude THIRD-PARTY-LICENSES.md from .dockerignore for Docker build by @yeying-xingchen in https://github.com/QuantumNous/new-api/pull/4739 +* fix(wallet): read topup gateway flags from topupInfo instead of status by @ImogeneOctaviap794 in https://github.com/QuantumNous/new-api/pull/4599 +* fix(web/default): use getUserGroups for ratio display to respect GroupGroupRatio by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4772 +* fix(default): support DropdownMenuItem onSelect by @lihan3238 in https://github.com/QuantumNous/new-api/pull/4787 +* fix(web/default): guard playground messages against legacy classic shape by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4650 +* fix: defaut ui triage by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4802 +### New Contributors +* @yeying-xingchen made their first contribution in https://github.com/QuantumNous/new-api/pull/4739 +* @lihan3238 made their first contribution in https://github.com/QuantumNous/new-api/pull/4787 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.0...v0.12.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.4...v1.0.0-rc.5 **下载资源** --- -## v0.12.0 +## v1.0.0-rc.4 - + -v0.12.0 adds Wan 2.7 image generation support and streamlines channel setup in the admin UI. It also improves billing accuracy and fixes several model and dashboard issues. +### Highlights +OpenAI image editing is more reliable: image edit requests now preserve reference image data and related metadata, preventing edits from losing their intended context (#4646). This release also adds model performance badges and fixes several billing and dropdown UI issues. + +### New Features +- Added model performance badges to model lists so users can compare available models at a glance. + +### Bug Fixes +- Fixed OpenAI image edit requests so reference images and related edit metadata are preserved when forwarded (#4646). +- Fixed billing settings forms so top-up and billing configuration inputs behave more reliably. +- Fixed dropdown and select controls so options render and select correctly after the UI component update (#4655). + +### Breaking Changes +- Integrations should now read the top-up link from the top-up information API instead of the status API. + +### Gallery +| Model availability rankings | Refreshed pricing and settings UI | +| --- | --- | +|| | + +--- + +### What's Changed +* fix: preserve OpenAI image edit reference fields by @seefs001 in https://github.com/QuantumNous/new-api/pull/4646 +* fix: migrate select to Base UI items API by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4655 + + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.3...v1.0.0-rc.4 -### New Features -- Added support for Wan 2.7 image generation, including control over how many images are generated per request (#3526). +**下载资源** -### Bug Fixes -- Fixed image-generation billing and usage statistics so request counts and costs are reported more accurately without double-counting (#3512). -- Fixed a UI issue that caused the consumption distribution chart to make the page scrollbar flicker on hover (#3474). -- Fixed xAI Grok-3-mini compatibility when no completion token limit is set, reducing failed requests. + -### Improvements -- Made channel setup faster and smoother by letting you create a channel from a copied token, remembering advanced settings in the edit dialog, and improving clipboard handling. + --- -### What's Changed -* fix(dashboard): 修复消耗分布图表悬浮时滚动条闪烁 by @wans10 in https://github.com/QuantumNous/new-api/pull/3474 -* docs(zh-TW): fix missing content and add partner logo by @DaZuiZui in https://github.com/QuantumNous/new-api/pull/3462 -* chore(deps-dev): bump picomatch from 4.0.3 to 4.0.4 in /electron by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3450 -* fix: prevent double-counting of image count n in billing by @imlhb in https://github.com/QuantumNous/new-api/pull/3512 -* 支持wan2.7生图-wan2.7-image by @feitianbubu in https://github.com/QuantumNous/new-api/pull/3526 +## v1.0.0-rc.3 -### New Contributors -* @DaZuiZui made their first contribution in https://github.com/QuantumNous/new-api/pull/3462 -* @imlhb made their first contribution in https://github.com/QuantumNous/new-api/pull/3512 + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9...v0.12.0 +### Highlights +v1.0.0-rc.3 adds a new model rankings experience with model availability and performance visibility, making it easier to compare reliability before choosing routes or providers. This release also refreshes key default UI areas, including pricing/settings pages and table controls. + +### New Features +- Added a model rankings dashboard with real availability and performance data so users can compare model reliability at a glance (#4633). + +### Improvements +- Refreshed the default web UI with Base UI components, updated theme presets, and cleaner table toolbar interactions (#4633). +- Reorganized the system settings pricing interface to make pricing configuration easier to scan and manage. + +### Bug Fixes +- Fixed channel table sorting so server-side sorting now works correctly (#4600). +- Corrected subscription payment information display in the default UI. + +### Gallery +| Model availability rankings | Refreshed pricing and settings UI | +| --- | --- | +|| | + +--- + +### What's Changed +* feat(web/default): unified UI overhaul — Base UI migration, theme presets, rankings dashboard, and table toolbar refactor by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4633 +* feat: collect model performance metrics by @Calcium-Ion in https://github.com/QuantumNous/new-api/pull/4635 +* fix: enable channel table server-side sorting by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4600 + + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.2...v1.0.0-rc.3 **下载资源** --- -## v0.12.0-alpha.2 - - - -### Release Highlights -This release includes minor improvements to the `EditChannelModal` component to enhance clipboard handling reliability. - -### Bug Fixes -- **EditChannelModal:** Enhance clipboard handling with error checks (`670abee`) +## v1.0.0-rc.2 ---- + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.12.0-alpha.1...v0.12.0-alpha.2 +### Highlights +v1.0.0-rc.2 officially opens up switching between the new and classic frontend, making it easier to test the redesigned UI, compare workflows, and fall back instantly when needed. This RC also refreshes key console pages and fixes several web issues affecting email binding, tiered pricing, API key grouping, and custom Vertex base URLs. + +### New Features +- Added a built-in switch between the new and classic frontend, so teams can adopt the redesigned UI gradually without losing access to the previous workflow. + +### Improvements +- Refreshed the web console with redesigned pricing pages, more consistent dashboard and log controls, better table and analytics filtering, smoother navigation, and improved mobile responsiveness. + +### Bug Fixes +- Fixed email binding in the redesigned frontend so the action completes correctly (#4551). +- Fixed tiered pricing number input behavior so editing values is more reliable (#4536). +- Fixed tiered pricing display issues that could cause values and labels to appear incorrectly (#4530). +- Fixed API key grouping in the default web theme so keys appear under the expected groups (#4548). +- Fixed custom Vertex base URLs so requests route correctly when a gateway prefix is configured (#4200). + +### Gallery + +| Refreshed pricing page | Dashboard and analytics controls | +| --- | --- | +| Refreshed pricing page | Dashboard and analytics controls | + +### What's Changed +* fix: 修复默认主题 API 密钥分组行为 by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4548 +* bug fix: 新版前端email绑定错误 by @SHLE1 in https://github.com/QuantumNous/new-api/pull/4551 +* fix: improve tiered pricing number input editing by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4536 +* fix(vertex): honor custom base_url as gateway prefix by @yyhhyyyyyy in https://github.com/QuantumNous/new-api/pull/4200 +* fix(web): 修复阶梯计费 Base64 解码失败与标签不匹配导致的显示错误 by @wans10 in https://github.com/QuantumNous/new-api/pull/4530 + +### New Contributors +* @SHLE1 made their first contribution in https://github.com/QuantumNous/new-api/pull/4551 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-rc.1...v1.0.0-rc.2 **下载资源** --- -## v0.12.0-alpha.1 +## v1.0.0-rc.1 - + -### Highlights -This release introduces a new clipboard magic string feature for quick channel creation and includes important security and UI improvements. +v1.0.0-rc.1 is the first release candidate for the upcoming 1.0 release, and its main focus is the brand-new v1 frontend rebuilt from the ground up for a cleaner, faster, and more capable admin experience. + +This RC refreshes the interface across navigation, configuration, analytics, and logs, making day-to-day management much easier as the project moves toward the final v1 launch. + + + +### New Features +- Introduced the rebuilt v1 frontend with modern navigation and layouts, a visual channel editor for parameter overrides, and easier access to system settings and theme switching (#4265). + +### Improvements +- Upgraded dashboards and charts with clearer model analytics, better data sorting, and more informative tooltips for easier usage analysis. +- Improved usage logs with log type indicators, usernames and avatars, and cleaner tables that make activity easier to scan. +- Polished shared layouts, tables, and form styling across the default frontend for a cleaner and more consistent experience. + +### Bug Fixes +- Fixed themes loaded from the database so the selected frontend theme now applies correctly at runtime (#4518). +- Fixed forwarded requests so empty reasoning fields are preserved instead of being silently dropped (#4520). +- Fixed required-field markers so forms more consistently show which inputs are mandatory (#4533). + +--- + +### What's Changed +* 🚀 feat: launch v1.0 — next-generation frontend built from the ground up by @t0ng7u in https://github.com/QuantumNous/new-api/pull/4265 +* fix: 修复 Message.ReasoningContent/Reasoning 空思考内容在请求转发时被静默丢弃 by @heimoshuiyu in https://github.com/QuantumNous/new-api/pull/4520 +* fix: sync theme to runtime when loaded from database by @Micah-Zheng in https://github.com/QuantumNous/new-api/pull/4518 + +### New Contributors +* @Micah-Zheng made their first contribution in https://github.com/QuantumNous/new-api/pull/4518 + +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v1.0.0-alpha.1...v1.0.0-rc.1 -### New Features -* Add clipboard magic string for quick channel creation from token copy +**下载资源** -### Bug Fixes -* 修复消耗分布图表悬浮时滚动条闪烁 (Fix dashboard scrollbar flickering) (#3474) -* Fix xAI MaxTokens mapping for grok-3-mini model + -### Improvements -* Security improvements -* Enhance footer layout and styling -* Update Traditional Chinese README with missing content and partner logo (#3462) -* Refactor account binding endpoints to use POST and normalize reset responses + --- -### What's Changed -* fix(dashboard): 修复消耗分布图表悬浮时滚动条闪烁 by @wans10 in https://github.com/QuantumNous/new-api/pull/3474 -* docs(zh-TW): fix missing content and add partner logo by @DaZuiZui in https://github.com/QuantumNous/new-api/pull/3462 +## v1.0.0-alpha.1 - License boundary release -### New Contributors -* @DaZuiZui made their first contribution in https://github.com/QuantumNous/new-api/pull/3462 + -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9...v0.12.0-alpha.1 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.2...v1.0.0-alpha.1 **下载资源** --- -## v0.11.9 - - +## v0.13.2 -### Release Notes for v0.11.9 + -#### New Features -* Add slide-in animations and update translations for new UI elements -* Prevent metadata from overriding model fields (#3461) -* Record stream interruption reasons via StreamStatus -* Expose i18n instance to the global window object for easier access +### New Features +- Model sync now detects upstream models more accurately, refreshes pricing automatically from provider pricing endpoints, shows removed upstream models in the fetch-models dialog, and keeps pricing available during sync delays (#4452). +- User records now include account creation and last login timestamps for easier auditing and administration (#4450). +- Added configurable model matching for Ali native Messages APIs, making it easier to route requests to compatible upstream models (#4468). -#### Bug Fixes -* Restore pre-3400 OpenRouter billing semantics (#3438) -* Restore doubao coding plan deprecation and regex ignored models lost during conflict resolution -* Preserve cache usage in openai-to-claude response conversion +### Bug Fixes +- Tool calls now accept raw JSON argument payloads, improving compatibility with providers that return tool arguments as JSON objects (#4469). +- Configuration updates now handle JSON object fields more reliably, preventing some settings from being saved incorrectly. -#### Improvements -* Expose skip-retry option and show it in the rules list (#3440) -* Harden Docker and release CI workflows to improve security +### Improvements +- Retry messages now clearly explain when a channel was skipped because affinity is disabled (#4453). --- ### What's Changed -* fix: restore pre-3400 OpenRouter billing semantics by @seefs001 in https://github.com/QuantumNous/new-api/pull/3438 -* refactor: expose skip-retry option and show it in rules list by @seefs001 in https://github.com/QuantumNous/new-api/pull/3440 -* feat: prevent metadata from overriding model fields by @feitianbubu in https://github.com/QuantumNous/new-api/pull/3461 -* chore(deps): bump golang.org/x/image from 0.23.0 to 0.38.0 by @dependabot[bot] in https://github.com/QuantumNous/new-api/pull/3507 +* fix(channel): load model mapping during upstream model checks by @seefs001 in https://github.com/QuantumNous/new-api/pull/4437 +* feat: sync upstream pricing from pricing endpoint by @seefs001 in https://github.com/QuantumNous/new-api/pull/4452 +* fix: clarify affinity disabled channel retry message by @seefs001 in https://github.com/QuantumNous/new-api/pull/4453 +* feat: configure native messages model matching for ali by @seefs001 in https://github.com/QuantumNous/new-api/pull/4468 +* fix: support raw JSON response tool arguments by @seefs001 in https://github.com/QuantumNous/new-api/pull/4469 +* feat: show removed upstream models in fetch models modal by @seefs001 in https://github.com/QuantumNous/new-api/pull/4470 +* 增加用户创建时间和最后登录时间 by @feitianbubu in https://github.com/QuantumNous/new-api/pull/4450 -**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.11.9-alpha.1...v0.11.9 +**Full Changelog**: https://github.com/QuantumNous/new-api/compare/v0.13.1-patch.1...v0.13.2 **下载资源** diff --git a/content/docs/zh/guide/wiki/meta.json b/content/docs/zh/guide/wiki/meta.json index c2738ba..ecda419 100644 --- a/content/docs/zh/guide/wiki/meta.json +++ b/content/docs/zh/guide/wiki/meta.json @@ -1,6 +1,6 @@ { "title": "维基百科", - "description": "New API 项目文档与基础知识", + "description": "LFAPI 项目文档与基础知识", "icon": "BookOpen", "pages": ["basic-concepts", "project-records"] } diff --git a/content/docs/zh/guide/wiki/project-records/changelog.mdx b/content/docs/zh/guide/wiki/project-records/changelog.mdx index 2b3400e..2f6d451 100644 --- a/content/docs/zh/guide/wiki/project-records/changelog.mdx +++ b/content/docs/zh/guide/wiki/project-records/changelog.mdx @@ -1440,7 +1440,7 @@ feat: sora任务优化 ### 谷歌分析设置文档 -https://docs.newapi.pro/wiki/analytics-setup/ +https://ai.liangfeng.net.cn/docs/wiki/analytics-setup/ ### New Contributors diff --git a/content/docs/zh/index.mdx b/content/docs/zh/index.mdx index 8f08b6c..fbaa00a 100644 --- a/content/docs/zh/index.mdx +++ b/content/docs/zh/index.mdx @@ -3,6 +3,8 @@ title: 快速开始 description: 选择最适合您需求的部署方式 --- +> LFAPI 由 NewAPI 二次开发而成。接口路径、参数和兼容协议保持不变。 + import { Server, Network, @@ -28,7 +30,7 @@ import { } title="Docker 单容器部署" - description="使用 Docker 镜像快速部署 New API,适合个人使用或小规模应用场景。" + description="使用 Docker 镜像快速部署 LFAPI,适合个人使用或小规模应用场景。" href="/zh/docs/installation/deployment-methods/docker-installation" /> } title="AI 应用" - description="探索基于 New API 开发的各类 AI 应用示例。" + description="探索基于 LFAPI 开发的各类 AI 应用示例。" href="/zh/docs/apps" /> - New API 支持从 `.env` 文件中读取环境变量,请参照 `.env.example` + LFAPI 支持从 `.env` 文件中读取环境变量,请参照 `.env.example` 文件,使用时请将其重命名为 `.env`。 @@ -44,7 +44,7 @@ title: 环境变量配置指南 | `BATCH_UPDATE_ENABLED` | 启用数据库批量更新聚合 | `false` | `BATCH_UPDATE_ENABLED=true` | | `BATCH_UPDATE_INTERVAL` | 批量更新聚合时间间隔(秒) | `5` | `BATCH_UPDATE_INTERVAL=10` | -`REDIS_CONN_STRING` 必须指向单一的 Redis 兼容连接端点,认证信息应直接包含在 URI 中。New API 不原生解析 Redis Cluster 或 Sentinel 节点列表;如需 Redis 高可用,请由托管服务或代理提供单一兼容端点。 +`REDIS_CONN_STRING` 必须指向单一的 Redis 兼容连接端点,认证信息应直接包含在 URI 中。LFAPI 不原生解析 Redis Cluster 或 Sentinel 节点列表;如需 Redis 高可用,请由托管服务或代理提供单一兼容端点。 数据库是面板 Session 状态的唯一权威来源。Redis 中 Session Hash 的 TTL 取 Session 剩余寿命与有效 `SYNC_FREQUENCY` 的较小值,读取不会续期。延迟完成的 active 缓存回写只使用数据库读取时观察窗口的剩余部分,因此不会在撤销 tombstone 过期后重新获得完整 TTL。 diff --git a/content/docs/zh/installation/config-maintenance/system-update.mdx b/content/docs/zh/installation/config-maintenance/system-update.mdx index de9c5eb..f2a5158 100644 --- a/content/docs/zh/installation/config-maintenance/system-update.mdx +++ b/content/docs/zh/installation/config-maintenance/system-update.mdx @@ -2,7 +2,7 @@ title: 系统更新指南 --- -本文档提供了New API系统的更新方法和最佳实践,以确保您的系统平稳升级到最新版本。 +本文档提供了LFAPI系统的更新方法和最佳实践,以确保您的系统平稳升级到最新版本。 ## 更新前的准备工作 @@ -17,7 +17,7 @@ title: 系统更新指南 ### 方法一:单容器部署更新 -如果您使用单个Docker容器部署了New API,可以按照以下步骤更新: +如果您使用单个Docker容器部署了LFAPI,可以按照以下步骤更新: ```shell # 拉取最新镜像 @@ -66,7 +66,7 @@ docker compose pull && docker compose down && docker compose up -d 如果您使用 1Panel 面板部署,可以按照以下步骤更新: 1. 登录 1Panel 面板,进入 **应用商店** -> **可升级页面** -2. 找到 New API 应用,点击 **升级** 按钮 +2. 找到 LFAPI 应用,点击 **升级** 按钮 3. 选择 **要升级到的目标版本** 4. 点击 **确认** 按钮,系统将自动拉取最新镜像升级应用 @@ -75,13 +75,13 @@ docker compose pull && docker compose down && docker compose up -d 如果您使用宝塔面板部署,可以按照以下步骤更新: 1. 登录宝塔面板,进入 **Docker管理** -> **容器列表** -2. 找到New API容器,点击 **更多** -> **重新创建** +2. 找到LFAPI容器,点击 **更多** -> **重新创建** 3. 勾选 **拉取最新镜像** 选项,确保其他配置保持不变 4. 点击 **提交** ,系统将自动拉取最新镜像并重新创建容器 ## 从源码编译的更新方法 -如果您是从源码编译部署的New API,更新步骤如下: +如果您是从源码编译部署的LFAPI,更新步骤如下: ```shell # 进入项目目录 diff --git a/content/docs/zh/installation/deployment-methods/1panel-installation.mdx b/content/docs/zh/installation/deployment-methods/1panel-installation.mdx index 4aded64..d328406 100644 --- a/content/docs/zh/installation/deployment-methods/1panel-installation.mdx +++ b/content/docs/zh/installation/deployment-methods/1panel-installation.mdx @@ -2,7 +2,7 @@ title: 1Panel 面板部署 --- -本文档提供使用 1Panel 面板部署 New API 的图文教程。 +本文档提供使用 1Panel 面板部署 LFAPI 的图文教程。 ## 前置要求 @@ -22,12 +22,12 @@ title: 1Panel 面板部署 ![1panel](/assets/1panel/1panel.jpg) -## 步骤二:安装 New API +## 步骤二:安装 LFAPI ### 搜索应用 - 进入应用商店应用列表,在【AI】分类下找到 New API 应用进行安装 + 进入应用商店应用列表,在【AI】分类下找到 LFAPI 应用进行安装 ![1panel-newapi](/assets/1panel/1panel-newapi.jpg) @@ -35,12 +35,12 @@ title: 1Panel 面板部署 ### 配置参数 - 在安装页面配置 New API 应用参数: + 在安装页面配置 LFAPI 应用参数: -- **名称**:要创建的 New API 应用的名称 -- **版本**:选择 New API 的版本 -- **端口**:New API 应用的服务端口 +- **名称**:要创建的 LFAPI 应用的名称 +- **版本**:选择 LFAPI 的版本 +- **端口**:LFAPI 应用的服务端口 - **时区**:输入服务器所在时区(默认 Asia/Shanghai) - **高级设置**:务必勾选端口外部访问 @@ -49,7 +49,7 @@ title: 1Panel 面板部署 ### 确认安装 - 点击确认开始安装,页面将自动跳转到已安装应用列表,等待 New API 应用状态变为已启动 + 点击确认开始安装,页面将自动跳转到已安装应用列表,等待 LFAPI 应用状态变为已启动 ![newapi-start](/assets/1panel/newapi-start.jpg) @@ -67,7 +67,7 @@ title: 1Panel 面板部署 ### 配置方法 -1. 在 1Panel 应用列表中,点击 New API 应用的 **参数** 按钮 +1. 在 1Panel 应用列表中,点击 LFAPI 应用的 **参数** 按钮 2. 在环境变量区域添加: - `SESSION_SECRET=your_random_secret_key` - `CRYPTO_SECRET=your_crypto_secret_key`(可选) @@ -84,10 +84,10 @@ openssl rand -hex 16 head -c 16 /dev/urandom | xxd -p ``` -## 步骤四:访问 New API +## 步骤四:访问 LFAPI - - 在 `已安装` 页面,点击 `跳转` 即可进入 New API 的 WebUI 页面 + - 在 `已安装` 页面,点击 `跳转` 即可进入 LFAPI 的 WebUI 页面 - 使用前建议在 `面板设置` 页面设置好 `默认访问地址` @@ -110,7 +110,7 @@ head -c 16 /dev/urandom | xxd -p ### 如何更新版本 1. 登录 1Panel 面板,进入 **应用商店** → **可升级页面** -2. 找到 New API 应用,点击 **升级** 按钮 +2. 找到 LFAPI 应用,点击 **升级** 按钮 3. 选择目标版本,点击 **确认** ### 数据如何持久化 diff --git a/content/docs/zh/installation/deployment-methods/bt-docker-installation.mdx b/content/docs/zh/installation/deployment-methods/bt-docker-installation.mdx index dadfcae..6f615cb 100644 --- a/content/docs/zh/installation/deployment-methods/bt-docker-installation.mdx +++ b/content/docs/zh/installation/deployment-methods/bt-docker-installation.mdx @@ -2,7 +2,7 @@ title: 宝塔面板部署 --- -本文档提供使用宝塔面板 Docker 功能部署 New API 的图文教程。 +本文档提供使用宝塔面板 Docker 功能部署 LFAPI 的图文教程。 ## 前置要求 @@ -24,7 +24,7 @@ title: 宝塔面板部署 2. 首次进入会提示安装 Docker 服务,点击 **立即安装** 3. 按照提示完成 Docker 服务的安装 -## 步骤三:安装 New API +## 步骤三:安装 LFAPI ### 方法一:使用宝塔应用商店(推荐) diff --git a/content/docs/zh/installation/deployment-methods/cluster-deployment.mdx b/content/docs/zh/installation/deployment-methods/cluster-deployment.mdx index 12e6231..1d83c96 100644 --- a/content/docs/zh/installation/deployment-methods/cluster-deployment.mdx +++ b/content/docs/zh/installation/deployment-methods/cluster-deployment.mdx @@ -2,7 +2,7 @@ title: 集群部署 --- -本文档提供了 New API 集群部署的详细配置步骤和最佳实践,帮助您构建高可用、负载均衡的分布式系统。 +本文档提供了 LFAPI 集群部署的详细配置步骤和最佳实践,帮助您构建高可用、负载均衡的分布式系统。 ## 前置要求 @@ -14,7 +14,7 @@ title: 集群部署 ## 集群架构概述 -New API 集群采用主从架构设计: +LFAPI 集群采用主从架构设计: 1. **主节点**:负责处理所有写操作和部分读操作 2. **从节点**:主要负责处理读操作,提高系统整体吞吐量 @@ -183,7 +183,7 @@ server { ### Redis 连接与高可用 -New API 通过 `REDIS_CONN_STRING` 连接单一的 Redis 兼容端点,密码应直接包含在连接 URI 中;连接池大小使用 `REDIS_POOL_SIZE`。应用不原生解析 Redis Cluster 或 Sentinel 节点列表。如需 Redis 高可用,请使用能提供单一兼容端点的托管服务或代理: +LFAPI 通过 `REDIS_CONN_STRING` 连接单一的 Redis 兼容端点,密码应直接包含在连接 URI 中;连接池大小使用 `REDIS_POOL_SIZE`。应用不原生解析 Redis Cluster 或 Sentinel 节点列表。如需 Redis 高可用,请使用能提供单一兼容端点的托管服务或代理: ```yaml environment: diff --git a/content/docs/zh/installation/deployment-methods/docker-compose-installation.mdx b/content/docs/zh/installation/deployment-methods/docker-compose-installation.mdx index 7d5b59c..99437c7 100644 --- a/content/docs/zh/installation/deployment-methods/docker-compose-installation.mdx +++ b/content/docs/zh/installation/deployment-methods/docker-compose-installation.mdx @@ -2,7 +2,7 @@ title: Docker Compose 部署 --- -本文档提供了使用Docker Compose部署New API的详细步骤。 +本文档提供了使用Docker Compose部署LFAPI的详细步骤。 ## 前置要求 @@ -38,7 +38,7 @@ nano docker-compose.yml 如果无法访问GitHub或克隆仓库,可以手动创建配置文件: -1. 创建一个目录用于New API部署: +1. 创建一个目录用于LFAPI部署: ```shell mkdir new-api diff --git a/content/docs/zh/installation/deployment-methods/docker-installation.mdx b/content/docs/zh/installation/deployment-methods/docker-installation.mdx index b85fd69..c166b14 100644 --- a/content/docs/zh/installation/deployment-methods/docker-installation.mdx +++ b/content/docs/zh/installation/deployment-methods/docker-installation.mdx @@ -2,7 +2,7 @@ title: Docker 部署 --- -本文档提供了使用Docker部署New API的详细步骤。 +本文档提供了使用Docker部署LFAPI的详细步骤。 我们强烈推荐使用 [Docker Compose @@ -32,7 +32,7 @@ docker run --name new-api -d --restart always \ ``` - PostgreSQL 是生产部署的优先推荐。New API 仍兼容 MySQL;SQLite + PostgreSQL 是生产部署的优先推荐。LFAPI 仍兼容 MySQL;SQLite 更适合本地体验和临时测试,不建议用于生产环境。 diff --git a/content/docs/zh/installation/deployment-methods/local-development.mdx b/content/docs/zh/installation/deployment-methods/local-development.mdx index 06984eb..daeb149 100644 --- a/content/docs/zh/installation/deployment-methods/local-development.mdx +++ b/content/docs/zh/installation/deployment-methods/local-development.mdx @@ -2,7 +2,7 @@ title: 本地开发部署 --- -本文档提供了在本地环境中设置和开发 New API 项目的详细步骤,适合希望参与项目开发或进行功能定制的开发者。 +本文档提供了在本地环境中设置和开发 LFAPI 项目的详细步骤,适合希望参与项目开发或进行功能定制的开发者。 ## 开发环境要求 @@ -23,7 +23,7 @@ title: 本地开发部署 ## 克隆项目 -首先,从 GitHub 克隆 New API 仓库到本地: +首先,从 GitHub 克隆 LFAPI 仓库到本地: ```bash git clone https://github.com/Calcium-Ion/new-api.git @@ -40,7 +40,7 @@ go mod download ### 配置开发环境 -New API 支持通过 `.env` 文件配置环境变量。创建 `.env` 文件(可从 `.env.example` 复制): +LFAPI 支持通过 `.env` 文件配置环境变量。创建 `.env` 文件(可从 `.env.example` 复制): ```bash cp .env.example .env @@ -74,7 +74,7 @@ go build -o new-api ## 前端开发设置 -New API 的前端代码位于 `web` 目录中,使用 React 和 [semi design 组件库](https://semi.design/zh-CN) 开发。 +LFAPI 的前端代码位于 `web` 目录中,使用 React 和 [semi design 组件库](https://semi.design/zh-CN) 开发。 ### 安装 Bun(推荐) @@ -158,7 +158,7 @@ bun run build # 使用 bun 构建前端资源 ## 项目结构 -New API 项目的目录结构: +LFAPI 项目的目录结构: ``` new-api/ # 项目根目录 diff --git a/content/docs/zh/installation/index.mdx b/content/docs/zh/installation/index.mdx index 48fa4c3..e573757 100644 --- a/content/docs/zh/installation/index.mdx +++ b/content/docs/zh/installation/index.mdx @@ -17,7 +17,7 @@ import { ## 概述 -New API 支持多种部署方式,您可以根据自己的技术背景和使用场景选择最合适的方案。 +LFAPI 支持多种部署方式,您可以根据自己的技术背景和使用场景选择最合适的方案。 ## 部署方式 @@ -78,7 +78,7 @@ New API 支持多种部署方式,您可以根据自己的技术背景和使用 } title="系统更新" - description="了解如何安全地更新 New API 到最新版本。" + description="了解如何安全地更新 LFAPI 到最新版本。" href="/zh/docs/installation/config-maintenance/system-update" /> diff --git a/content/docs/zh/legal/acceptable-use.mdx b/content/docs/zh/legal/acceptable-use.mdx index bee1901..2caa89c 100644 --- a/content/docs/zh/legal/acceptable-use.mdx +++ b/content/docs/zh/legal/acceptable-use.mdx @@ -1,17 +1,17 @@ --- title: 合规与可接受使用政策 -description: New API 项目的合规声明与可接受使用政策 +description: LFAPI 项目的合规声明与可接受使用政策 --- import { Callout } from 'fumadocs-ui/components/callout'; - 在使用 New API 之前,请仔细阅读并理解本政策。 + 在使用 LFAPI 之前,请仔细阅读并理解本政策。 ## 项目定位 -New API 是面向合法授权场景的 AI API 网关与用量管理系统,默认面向自用、团队内部和企业私有化部署。核心能力包括: +LFAPI 是面向合法授权场景的 AI API 网关与用量管理系统,默认面向自用、团队内部和企业私有化部署。核心能力包括: - 企业内部统一鉴权与多模型路由 - 组织内用量统计与权限控制 @@ -20,7 +20,7 @@ New API 是面向合法授权场景的 AI API 网关与用量管理系统,默 ## 合法授权要求 -用户在使用 New API 时,必须满足以下要求: +用户在使用 LFAPI 时,必须满足以下要求: - 合法取得上游 API Key、模型服务、支付服务和其他第三方服务授权 - 遵守上游服务条款和平台规则 @@ -74,5 +74,5 @@ New API 是面向合法授权场景的 AI API 网关与用量管理系统,默 ## 维护者立场 - New API 按"原样"提供,不提供任何形式的保证。维护者仅为合法合规使用场景提供技术讨论和社区支持,并可按社区规则处理不符合项目合规要求的 issue、PR、讨论和教程链接。开发者和维护者对使用本软件产生的任何损害或法律问题不承担责任。 + LFAPI 按"原样"提供,不提供任何形式的保证。维护者仅为合法合规使用场景提供技术讨论和社区支持,并可按社区规则处理不符合项目合规要求的 issue、PR、讨论和教程链接。开发者和维护者对使用本软件产生的任何损害或法律问题不承担责任。 diff --git a/content/docs/zh/skills/index.mdx b/content/docs/zh/skills/index.mdx index b758a8d..a88996a 100644 --- a/content/docs/zh/skills/index.mdx +++ b/content/docs/zh/skills/index.mdx @@ -1,6 +1,6 @@ --- title: Skills -description: New API 官方 AI 编辑器 Skill 插件一览,支持 Claude Code、Codex 与 OpenClaw(龙虾)。可直接在 AI 编码助手中管理模型、令牌、分组与余额,并提问 New API 的使用问题。 +description: LFAPI 官方 AI 编辑器 Skill 插件一览,支持 Claude Code、Codex 与 OpenClaw(龙虾)。可直接在 AI 编码助手中管理模型、令牌、分组与余额,并提问 LFAPI 的使用问题。 --- import { Card, Cards } from 'fumadocs-ui/components/card'; @@ -8,23 +8,23 @@ import { User, Shield } from 'lucide-react'; ## 概述 -**Skills** 是一种轻量级扩展协议,让 AI 编辑器(如 Claude Code、Codex、OpenClaw(龙虾)、Cursor、Windsurf 等)能够在编码环境内直接与 New API 交互,无需切换到浏览器或管理面板。 +**Skills** 是一种轻量级扩展协议,让 AI 编辑器(如 Claude Code、Codex、OpenClaw(龙虾)、Cursor、Windsurf 等)能够在编码环境内直接与 LFAPI 交互,无需切换到浏览器或管理面板。 -New API Skills 现已支持在 Claude Code、Codex、OpenClaw(龙虾)等工具中直接执行查询模型、管理令牌、查看余额,以及提问 New API 使用问题等操作。 +LFAPI Skills 现已支持在 Claude Code、Codex、OpenClaw(龙虾)等工具中直接执行查询模型、管理令牌、查看余额,以及提问 LFAPI 使用问题等操作。 -New API 目前提供以下 Skills: +LFAPI 目前提供以下 Skills: } title="newapi" - description="用户级 Skill — 在 Claude Code、Codex、OpenClaw(龙虾)中查询模型、管理令牌、查看分组和余额,并直接提问 New API 使用问题。" + description="用户级 Skill — 在 Claude Code、Codex、OpenClaw(龙虾)中查询模型、管理令牌、查看分组和余额,并直接提问 LFAPI 使用问题。" href="/zh/docs/skills/newapi" /> } title="newapi-admin(敬请期待)" - description="管理员级 Skill — 渠道管理、用户管理、系统配置等运维操作。面向 New API 管理员。" + description="管理员级 Skill — 渠道管理、用户管理、系统配置等运维操作。面向 LFAPI 管理员。" href="/zh/docs/skills/newapi-admin" /> @@ -42,9 +42,9 @@ New API 目前提供以下 Skills: | **Cline** | VS Code AI 扩展 | 开源 AI 编码代理 | | **Codex CLI** | 终端 AI 编程助手 | OpenAI 官方 CLI | -> 任何支持 Skills 协议的 AI 工具都可以使用 New API Skills。 +> 任何支持 Skills 协议的 AI 工具都可以使用 LFAPI Skills。 ## 了解更多 - GitHub 仓库:[github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) -- New API 官网:[www.newapi.ai](https://www.newapi.ai) +- LFAPI 官网:[www.ai.liangfeng.net.cn/docs](https://www.ai.liangfeng.net.cn/docs) diff --git a/content/docs/zh/skills/meta.json b/content/docs/zh/skills/meta.json index 701eecd..8ce668a 100644 --- a/content/docs/zh/skills/meta.json +++ b/content/docs/zh/skills/meta.json @@ -1,6 +1,6 @@ { "title": "Skills", - "description": "New API Skills,支持 Claude Code、Codex、OpenClaw(龙虾),可提问使用问题", + "description": "LFAPI Skills,支持 Claude Code、Codex、OpenClaw(龙虾),可提问使用问题", "icon": "Puzzle", "root": true, "pages": [ diff --git a/content/docs/zh/skills/newapi-admin.mdx b/content/docs/zh/skills/newapi-admin.mdx index 08b7a3b..7f003f3 100644 --- a/content/docs/zh/skills/newapi-admin.mdx +++ b/content/docs/zh/skills/newapi-admin.mdx @@ -1,6 +1,6 @@ --- title: newapi-admin(敬请期待) -description: newapi-admin 是 New API 官方管理员级 Skill 插件,支持在 Claude Code、Cursor、Windsurf 等 AI 编辑器中直接执行渠道管理、用户管理、系统配置、日志查询等管理员运维操作。正在开发中,敬请期待。 +description: newapi-admin 是 LFAPI 官方管理员级 Skill 插件,支持在 Claude Code、Cursor、Windsurf 等 AI 编辑器中直接执行渠道管理、用户管理、系统配置、日志查询等管理员运维操作。正在开发中,敬请期待。 --- import { Callout } from 'fumadocs-ui/components/callout'; @@ -11,7 +11,7 @@ import { Callout } from 'fumadocs-ui/components/callout'; ## 简介 -**newapi-admin** 是面向 New API 管理员的 Skill 插件。与用户级的 [newapi](/zh/docs/skills/newapi) Skill 不同,newapi-admin 专注于**管理员运维场景**,让站点管理员在 AI 编辑器中通过自然语言指令完成日常管理任务,无需登录管理后台。 +**newapi-admin** 是面向 LFAPI 管理员的 Skill 插件。与用户级的 [newapi](/zh/docs/skills/newapi) Skill 不同,newapi-admin 专注于**管理员运维场景**,让站点管理员在 AI 编辑器中通过自然语言指令完成日常管理任务,无需登录管理后台。 ## 计划功能 diff --git a/content/docs/zh/skills/newapi.mdx b/content/docs/zh/skills/newapi.mdx index d76101a..1eab1ac 100644 --- a/content/docs/zh/skills/newapi.mdx +++ b/content/docs/zh/skills/newapi.mdx @@ -1,27 +1,27 @@ --- title: newapi -description: newapi 是 New API 官方用户级 Skill 插件,支持 Claude Code、Codex 和 OpenClaw(龙虾)。通过自然语言指令在 AI 编码助手内查询模型、管理令牌、查看分组和余额,并直接提问 New API 的使用问题。 +description: newapi 是 LFAPI 官方用户级 Skill 插件,支持 Claude Code、Codex 和 OpenClaw(龙虾)。通过自然语言指令在 AI 编码助手内查询模型、管理令牌、查看分组和余额,并直接提问 LFAPI 的使用问题。 --- import { Callout } from 'fumadocs-ui/components/callout'; import { Step, Steps } from 'fumadocs-ui/components/steps'; - **newapi-skills** 是 New API 官方推出的 AI 编辑器 Skill 插件。Skill 是一种轻量级扩展协议,让 AI 编码助手(如 Claude Code、Codex、OpenClaw(龙虾)、Cursor、Windsurf、Cline 等)能够在编辑器内**直接调用 New API 接口**,完成模型查询、令牌管理、余额查看,以及提问 New API 部署、配置和 API 调用等使用问题,实现真正的"编码即运维"工作流。 + **newapi-skills** 是 LFAPI 官方推出的 AI 编辑器 Skill 插件。Skill 是一种轻量级扩展协议,让 AI 编码助手(如 Claude Code、Codex、OpenClaw(龙虾)、Cursor、Windsurf、Cline 等)能够在编辑器内**直接调用 LFAPI 接口**,完成模型查询、令牌管理、余额查看,以及提问 LFAPI 部署、配置和 API 调用等使用问题,实现真正的"编码即运维"工作流。 - GitHub 仓库:[github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) - 现在也支持在 OpenClaw(龙虾)中使用,你可以直接在对话工作流里调用 `/newapi` 指令完成模型查询、令牌管理、余额查看,也能直接提问 New API 的使用问题。 + 现在也支持在 OpenClaw(龙虾)中使用,你可以直接在对话工作流里调用 `/newapi` 指令完成模型查询、令牌管理、余额查看,也能直接提问 LFAPI 的使用问题。 ## 为什么使用 Skills -在日常 AI 开发中,开发者经常需要在编辑器和 New API 管理面板之间反复切换:查看可用模型、创建 API 令牌、检查余额、调整分组配额……这些操作打断了编码流程。 +在日常 AI 开发中,开发者经常需要在编辑器和 LFAPI 管理面板之间反复切换:查看可用模型、创建 API 令牌、检查余额、调整分组配额……这些操作打断了编码流程。 **newapi-skills 解决的问题:** - **零切换**:在 Claude Code、Codex、OpenClaw(龙虾)等 AI 编码助手中直接输入自然语言指令,无需打开浏览器或管理后台 -- **内置问答**:可直接提问 New API 的部署、配置、分组、模型调用格式等使用问题,快速获得帮助 +- **内置问答**:可直接提问 LFAPI 的部署、配置、分组、模型调用格式等使用问题,快速获得帮助 - **安全优先**:密钥永不明文显示,令牌复制与注入均通过安全通道完成(`sk-` 开头的密钥绝不会出现在终端或日志中) - **即装即用**:一行 `npx` 命令完成安装,自动检测运行时环境(Bun / Node.js / Deno) - **多编辑器兼容**:支持所有实现 Skills 协议的 AI 编辑器和编码助手 @@ -43,13 +43,13 @@ newapi-skills 可在以下 AI 编码工具中使用: ## 功能与指令一览 -以下是 newapi-skills 提供的全部指令。这些指令通过 New API REST API 执行,支持查询和管理 New API 实例中的各类资源。 +以下是 newapi-skills 提供的全部指令。这些指令通过 LFAPI REST API 执行,支持查询和管理 LFAPI 实例中的各类资源。 ### 查询类指令 | 指令 | 说明 | 用途 | |------|------|------| -| `/newapi models` | 列出可用 AI 模型 | 查看当前 New API 实例中配置的所有模型(OpenAI、Claude、Gemini 等) | +| `/newapi models` | 列出可用 AI 模型 | 查看当前 LFAPI 实例中配置的所有模型(OpenAI、Claude、Gemini 等) | | `/newapi groups` | 列出用户分组 | 查看账户所属的分组及其配额、倍率设置 | | `/newapi balance` | 查看账户余额 | 实时查询当前用户的账户余额和用量 | @@ -67,7 +67,7 @@ newapi-skills 可在以下 AI 编码工具中使用: | 指令 | 说明 | 用途 | |------|------|------| -| `/newapi help ` | 提问关于 New API 的问题 | 获取 New API 部署、配置、API 调用格式等帮助信息 | +| `/newapi help ` | 提问关于 LFAPI 的问题 | 获取 LFAPI 部署、配置、API 调用格式等帮助信息 | ## 安装与配置 @@ -86,7 +86,7 @@ newapi-skills 可在以下 AI 编码工具中使用: ### 设置环境变量 - newapi-skills 需要三个环境变量来连接你的 New API 实例。推荐在终端配置文件中设置: + newapi-skills 需要三个环境变量来连接你的 LFAPI 实例。推荐在终端配置文件中设置: ```bash # ~/.bashrc 或 ~/.zshrc @@ -97,7 +97,7 @@ newapi-skills 可在以下 AI 编码工具中使用: | 变量 | 说明 | 示例 | |------|------|------| - | `NEWAPI_BASE_URL` | New API 服务地址 | `https://api.example.com` | + | `NEWAPI_BASE_URL` | LFAPI 服务地址 | `https://api.example.com` | | `NEWAPI_ACCESS_TOKEN` | 管理员或用户的访问令牌 | 从「个人设置 → 账户管理 → 安全设置 → 系统访问令牌」获取 | | `NEWAPI_USER_ID` | 用户 ID | `1`(管理员默认为 1) | @@ -111,7 +111,7 @@ newapi-skills 可在以下 AI 编码工具中使用: - 输入 `/newapi models` 查看可用模型列表 - 输入 `/newapi balance` 查看当前余额 - 输入 `/newapi create-token my-app` 创建一个名为 `my-app` 的新令牌 - - 输入 `/newapi help 如何配置模型分组和令牌?` 直接提问 New API 的使用问题 + - 输入 `/newapi help 如何配置模型分组和令牌?` 直接提问 LFAPI 的使用问题 - 在 OpenClaw(龙虾)中同样可以直接调用 `/newapi models`、`/newapi balance` 等指令 @@ -140,5 +140,5 @@ newapi-skills 内置多层安全防护,保护你的 API 密钥安全: newapi-skills 正在持续迭代中,指令和功能可能随版本更新。请以仓库 README 为准获取最新信息和变更日志: - GitHub 仓库:[github.com/QuantumNous/skills](https://github.com/QuantumNous/skills) -- New API 官网:[www.newapi.ai](https://www.newapi.ai) -- New API GitHub:[github.com/QuantumNous/new-api](https://github.com/QuantumNous/new-api) +- LFAPI 官网:[www.ai.liangfeng.net.cn/docs](https://www.ai.liangfeng.net.cn/docs) +- LFAPI GitHub:[github.com/QuantumNous/new-api](https://github.com/QuantumNous/new-api) diff --git a/content/docs/zh/support/community-interaction.mdx b/content/docs/zh/support/community-interaction.mdx index 24e9c56..6554bc7 100644 --- a/content/docs/zh/support/community-interaction.mdx +++ b/content/docs/zh/support/community-interaction.mdx @@ -2,7 +2,7 @@ title: 社区互动 --- -欢迎加入 New API 开源社区!在这里,你可以与其他开发者交流经验,分享想法。 +欢迎加入 LFAPI 开源社区!在这里,你可以与其他开发者交流经验,分享想法。 ## 📜 群规则 @@ -13,9 +13,9 @@ title: 社区互动 1. 本群管理和群主没有任何义务为您提供任何技术支持,如有问题请提交 [issue](/zh/docs/support/feedback-issues) -2. 群聊内容应聚焦 New API 的开源项目使用、部署、开发和反馈,不发布账号交易、购买引导或求购相关信息 +2. 群聊内容应聚焦 LFAPI 的开源项目使用、部署、开发和反馈,不发布账号交易、购买引导或求购相关信息 3. 本群仅用于开源社区交流,请通过官方仓库、文档和社区渠道获取项目信息 -4. New API 采用 GNU AGPLv3 开源协议,只要遵守开源协议即可免费使用。详情请查看[项目介绍](/zh/docs/guide/wiki/basic-concepts/project-introduction) +4. LFAPI 采用 GNU AGPLv3 开源协议,只要遵守开源协议即可免费使用。详情请查看[项目介绍](/zh/docs/guide/wiki/basic-concepts/project-introduction) 5. 使用本项目时应遵循相关法律法规、上游服务条款、平台规则和内容安全要求 6. 社区讨论应围绕合法授权、合规部署和正当工程问题展开,相关消息和群成员管理将按社区规则处理 diff --git a/content/docs/zh/support/faq.mdx b/content/docs/zh/support/faq.mdx index 1ea55f0..cabea03 100644 --- a/content/docs/zh/support/faq.mdx +++ b/content/docs/zh/support/faq.mdx @@ -20,7 +20,7 @@ import { Accordions, Accordion } from 'fumadocs-ui/components/accordion'; **注意事项:** - 非流模式下,官方接口会返回消耗的总 token,但提示和补全的消耗倍率不同 - - New API 的默认倍率与官方倍率一致,已经过调整 + - LFAPI 的默认倍率与官方倍率一致,已经过调整 diff --git a/content/docs/zh/support/feedback-issues.mdx b/content/docs/zh/support/feedback-issues.mdx index 280553b..ae8c609 100644 --- a/content/docs/zh/support/feedback-issues.mdx +++ b/content/docs/zh/support/feedback-issues.mdx @@ -6,7 +6,7 @@ title: 问题反馈 ## 📝 如何提交问题 -请访问我们的GitHub Issues页面:[New API Issues](https://github.com/Calcium-Ion/new-api/issues) +请访问我们的GitHub Issues页面:[LFAPI Issues](https://github.com/Calcium-Ion/new-api/issues) 在提交新的issue之前,建议您: diff --git a/lfapi-site/index.html b/lfapi-site/index.html new file mode 100644 index 0000000..800c102 --- /dev/null +++ b/lfapi-site/index.html @@ -0,0 +1,75 @@ + + + + + + + + LFAPI 文档 + + + + + + +
+ +
+
+

LFAPI DOCUMENTATION

把模型接入,保持简单。

+

LFAPI 提供兼容 OpenAI 的统一入口。创建 API Key 后,可直接使用标准 SDK、已有客户端或 HTTP 请求接入可用模型。

+ +
+
协议OpenAI-compatible API
基础地址https://ai.liangfeng.net.cn/v1
认证方式Bearer API Key
+
+

01 / QUICK START

快速开始

完成下面三步即可发起第一条请求。LFAPI 的账户、API Key 和额度均在控制台管理。

+
  1. 1
    注册并登录

    使用符合站点要求的邮箱完成注册。新账户的可用额度由管理员审核后发放。

  2. 2
    创建 API Key

    进入控制台的令牌页面,创建一枚只用于当前应用的 Key,并妥善保存。

  3. 3
    确认可用模型

    先请求模型列表,再在业务侧选择返回列表中的模型 ID。

+
+
+

02 / AUTHENTICATION

使用 API Key 鉴权

所有面向模型的请求都需要在 HTTP 请求头中携带 Bearer Token。不要把 Key 提交到仓库、前端代码或公开日志。

+
HTTP Header
Authorization: Bearer $LFAPI_API_KEY
+
+
+

03 / API REFERENCE

兼容 API

以下路径均以 https://ai.liangfeng.net.cn/v1 为基础地址。请求字段与 OpenAI 兼容接口保持一致;实际可用模型以模型列表为准。

+
GET
/models

获取当前 API Key 可调用的模型。

POST
/chat/completions

创建对话补全请求,支持非流式和流式返回。

POST
/responses

使用 Responses 兼容接口发送多模态或工具调用请求。

+
cURL
curl https://ai.liangfeng.net.cn/v1/models \
+  -H "Authorization: Bearer $LFAPI_API_KEY"
+
+
+

04 / STREAMING

启用流式响应

在 /chat/completions 请求体中设置 stream: true,服务端将通过 Server-Sent Events 逐段返回生成内容。客户端需要持续读取连接直到收到结束事件。

+
JSON body
{
+  "model": "your-model-id",
+  "messages": [{ "role": "user", "content": "你好" }],
+  "stream": true
+}
+
+
+

05 / ACCOUNT

账号与额度

额度先于调用。

新注册账户默认额度为 0。获得管理员发放的额度后,再创建并使用 API Key。额度不足时,LFAPI 会拒绝上游请求,避免产生未授权消耗。

请仅使用自己的 API Key。发现 Key 泄露时,应立即在控制台删除旧 Key 并创建新 Key。

+
+
+

06 / RESPONSES

常见响应

+
状态含义处理建议
401未提供或无效的 API Key检查 Authorization 请求头。
403当前 Key 无访问权限确认账号、分组或模型授权。
429请求频率受限退避重试,降低并发。
5xx上游或临时服务异常保留请求 ID 后重试;持续出现时联系管理员。
+
+

准备好接入了吗?

从控制台创建 API Key,使用模型列表确认你的应用可调用的模型。

打开控制台
+
+
+ + + + diff --git a/lfapi-site/site.js b/lfapi-site/site.js new file mode 100644 index 0000000..aa4aae8 --- /dev/null +++ b/lfapi-site/site.js @@ -0,0 +1,9 @@ +document.querySelectorAll('.copy-button').forEach((button) => { + button.addEventListener('click', async () => { + const text = button.dataset.copy; + if (!text) return; + try { await navigator.clipboard.writeText(text); button.textContent = '已复制'; } + catch { button.textContent = '复制失败'; } + window.setTimeout(() => { button.textContent = '复制'; }, 1600); + }); +}); diff --git a/lfapi-site/styles.css b/lfapi-site/styles.css new file mode 100644 index 0000000..c237ec2 --- /dev/null +++ b/lfapi-site/styles.css @@ -0,0 +1,67 @@ +:root { color-scheme: light; --ink:#17211f; --muted:#65716d; --line:#dce5e1; --surface:#fff; --canvas:#f6f9f8; --brand:#14b8a6; --brand-deep:#0c887a; --code:#10211e; } +* { box-sizing:border-box; } html { scroll-behavior:smooth; } body { margin:0; min-width:320px; background:var(--canvas); color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; font-size:16px; line-height:1.65; } a { color:inherit; text-decoration:none; } +.skip-link { position:fixed; top:-4rem; left:1rem; z-index:20; background:var(--ink); color:#fff; padding:.5rem .75rem; } .skip-link:focus { top:1rem; } +.site-header { position:sticky; top:0; z-index:10; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--canvas) 94%,transparent); backdrop-filter:blur(12px); } .header-inner { display:flex; align-items:center; justify-content:space-between; gap:2rem; width:min(1180px,calc(100% - 3rem)); min-height:68px; margin:0 auto; } +.brand { display:inline-flex; align-items:center; gap:.62rem; font-weight:750; white-space:nowrap; } .brand img { display:block; flex:0 0 auto; border-radius:6px; } .brand-label { border-left:1px solid var(--line); padding-left:.62rem; color:var(--muted); font-size:.875rem; font-weight:500; } +.header-nav { display:flex; align-items:center; gap:1.3rem; color:#43504c; font-size:.9rem; } .header-nav a { padding:.35rem 0; border-bottom:1px solid transparent; } .header-nav a:hover,.header-nav a:focus-visible { color:var(--brand-deep); border-color:var(--brand); outline:none; } +.docs-shell { display:grid; grid-template-columns:225px minmax(0,760px); gap:clamp(2.2rem,5vw,5.4rem); width:min(1180px,calc(100% - 3rem)); margin:0 auto; } .sidebar { position:sticky; top:92px; align-self:start; padding:3.7rem 0 2rem; } +.sidebar-label,.section-kicker,.eyebrow { margin:0 0 .7rem; color:var(--brand-deep); font-size:.74rem; font-weight:750; letter-spacing:.08em; } .side-nav { display:grid; border-left:1px solid var(--line); } .side-nav a { padding:.42rem 0 .42rem 1rem; color:var(--muted); font-size:.91rem; } .side-nav a:hover,.side-nav a:focus-visible,.side-nav .active { color:var(--ink); outline:none; } .side-nav .active { border-left:2px solid var(--brand); margin-left:-1px; font-weight:650; } +.sidebar-foot { margin-top:2rem; color:var(--muted); font-size:.78rem; line-height:1.55; } .sidebar-foot a { color:var(--brand-deep); font-weight:650; } .content { min-width:0; padding:clamp(3.6rem,7vw,6.4rem) 0 5rem; } .intro { border-bottom:1px solid var(--line); padding-bottom:3.3rem; } +h1,h2,h3,p { margin-top:0; } h1 { max-width:11ch; margin-bottom:1.2rem; font-size:clamp(2.65rem,5vw,4.35rem); line-height:1.04; letter-spacing:0; } h2 { margin-bottom:1rem; font-size:clamp(1.6rem,3vw,2.1rem); line-height:1.2; letter-spacing:0; } .lead { max-width:62ch; color:#4b5954; font-size:1.13rem; } +.intro-actions { display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1.8rem; } .button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; border:1px solid transparent; border-radius:5px; padding:.55rem 1rem; font-size:.94rem; font-weight:680; transition:background .15s ease,border-color .15s ease,color .15s ease; } .button.primary { background:var(--brand); color:#062d28; } .button.primary:hover,.button.primary:focus-visible { background:#0ca895; outline:2px solid #0a6e62; outline-offset:2px; } .button.secondary { border-color:#c9d6d2; background:var(--surface); color:var(--ink); } .button.secondary:hover,.button.secondary:focus-visible { border-color:var(--brand); color:var(--brand-deep); outline:none; } +.facts { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; border-bottom:1px solid var(--line); padding:1.5rem 0; } .facts div { min-width:0; } .facts span { display:block; color:var(--muted); font-size:.75rem; } .facts strong { display:block; overflow-wrap:anywhere; font-size:.83rem; font-weight:650; line-height:1.35; } +.doc-section { scroll-margin-top:96px; border-bottom:1px solid var(--line); padding:4.1rem 0; } .doc-section > p:not(.section-kicker) { max-width:66ch; color:#4b5954; }.steps { display:grid; gap:1.25rem; margin:1.8rem 0 0; padding:0; list-style:none; }.steps li { display:grid; grid-template-columns:2rem 1fr; gap:.9rem; }.steps li>span { display:grid; width:2rem; height:2rem; place-items:center; border:1px solid #9edfd5; border-radius:50%; color:var(--brand-deep); font-size:.82rem; font-weight:750; }.steps strong { font-size:1rem; }.steps p { margin:.15rem 0 0; color:var(--muted); font-size:.93rem; } +code { border-radius:3px; background:#eaf1ee; padding:.1em .3em; color:#174b43; font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size:.9em; }.code-block { margin-top:1.55rem; overflow:hidden; border:1px solid #20332f; border-radius:6px; background:var(--code); color:#e5f4ef; }.code-title { display:flex; justify-content:space-between; align-items:center; min-height:42px; padding:0 .9rem; border-bottom:1px solid #29423c; color:#9db6ae; font-family:"SFMono-Regular",Consolas,monospace; font-size:.76rem; }.copy-button { border:1px solid #42645b; border-radius:4px; background:transparent; color:#d5e7e1; padding:.2rem .5rem; font:inherit; cursor:pointer; }.copy-button:hover,.copy-button:focus-visible { border-color:var(--brand); color:#fff; outline:none; } pre { margin:0; overflow-x:auto; padding:1rem; font-size:.84rem; line-height:1.6; } pre code { padding:0; background:transparent; color:inherit; } +.endpoint-list { display:grid; margin-top:1.6rem; border-top:1px solid var(--line); }.endpoint-list article { display:grid; grid-template-columns:58px minmax(0,1fr); align-items:start; gap:.8rem; border-bottom:1px solid var(--line); padding:1rem 0; }.method { width:fit-content; border-radius:3px; padding:.15rem .35rem; font-size:.69rem; font-weight:800; letter-spacing:.04em; }.method.get { background:#d5f1eb; color:#116a5f; }.method.post { background:#e4e8fb; color:#374b9d; }.endpoint-list p { margin:.2rem 0 0; color:var(--muted); font-size:.88rem; }.note { display:grid; gap:.2rem; border-left:3px solid var(--brand); background:#eaf8f5; padding:1rem 1.1rem; }.note p { margin:0; color:#38534d; } +.response-table { overflow:hidden; border:1px solid var(--line); border-radius:6px; font-size:.88rem; }.response-row { display:grid; grid-template-columns:72px minmax(130px,.9fr) minmax(180px,1.2fr); gap:1rem; border-top:1px solid var(--line); padding:.78rem 1rem; }.response-row:first-child { border-top:0; }.response-row.header { background:#eef4f1; color:var(--muted); font-size:.74rem; font-weight:750; }.closing { border-left:3px solid var(--brand); margin-top:4.4rem; padding:.4rem 0 .4rem 1.4rem; }.closing h2 { margin-bottom:.45rem; }.closing p { color:var(--muted); }.site-footer { display:flex; gap:1.2rem; flex-wrap:wrap; width:min(1180px,calc(100% - 3rem)); margin:0 auto; border-top:1px solid var(--line); padding:1.5rem 0 2.4rem; color:var(--muted); font-size:.8rem; }.site-footer span:first-child { color:var(--ink); font-weight:750; }.site-footer a { color:var(--brand-deep); } +@media (max-width:820px) { .header-inner { width:min(100% - 2rem,720px); min-height:60px; }.header-nav { gap:.85rem; overflow-x:auto; font-size:.8rem; white-space:nowrap; }.header-nav a:nth-child(3),.header-nav a:nth-child(5) { display:none; }.docs-shell { display:block; width:min(100% - 2rem,720px); }.sidebar { position:static; padding:1.4rem 0 0; }.sidebar-label,.sidebar-foot { display:none; }.side-nav { display:flex; overflow-x:auto; border-left:0; border-bottom:1px solid var(--line); white-space:nowrap; }.side-nav a { padding:.65rem .75rem; }.side-nav .active { border-left:0; border-bottom:2px solid var(--brand); margin:0; }.content { padding-top:3.2rem; } } +@media (max-width:540px) { body { font-size:15px; }.header-nav a:nth-child(2) { display:none; }.brand-label { display:none; } h1 { font-size:2.55rem; }.facts { grid-template-columns:1fr; gap:.85rem; }.facts div { display:grid; grid-template-columns:84px 1fr; gap:.6rem; align-items:baseline; }.facts span { font-size:.71rem; }.doc-section { padding:3.1rem 0; }.response-table { overflow-x:auto; }.response-row { min-width:520px; }.endpoint-list article { grid-template-columns:52px minmax(0,1fr); } } +@media (prefers-color-scheme:dark) { :root { color-scheme:dark; --ink:#edf5f1; --muted:#a7bbb3; --line:#2b3b36; --surface:#17211f; --canvas:#101715; --brand-deep:#5bd7c6; --code:#0a100e; }.site-header { background:color-mix(in srgb,var(--canvas) 94%,transparent); }.lead,.doc-section>p:not(.section-kicker) { color:#c1d1ca; }.button.secondary { border-color:#40554e; background:var(--surface); color:var(--ink); } code { background:#20322d; color:#8ee1d4; }.method.get { background:#153f38; color:#79ddce; }.method.post { background:#222c54; color:#aab9ff; }.note { background:#14352f; }.note p { color:#c1ded7; }.response-row.header { background:#1b2824; } } + +/* LFAPI dopamine palette: the documentation shares the application visual + system so navigation, cards, code examples, and status blocks feel like + one product at every route. */ +:root { color-scheme:light; --ink:#252640; --muted:#62647a; --line:#e8e1d7; --surface:#fffdf8; --canvas:#fff9ef; --brand:#6557e8; --brand-deep:#463bb1; --code:#252640; } +body { background:var(--canvas); color:var(--ink); } +.site-header { border-bottom-color:var(--line); background:color-mix(in srgb,var(--canvas) 94%,transparent); } +.brand-label { border-left-color:var(--line); color:var(--muted); } +.header-nav { color:var(--muted); } +.header-nav a:hover,.header-nav a:focus-visible { color:var(--brand-deep); border-color:var(--brand); } +.sidebar-label,.section-kicker,.eyebrow { color:var(--brand-deep); } +.side-nav { border-color:var(--line); } +.side-nav a { color:var(--muted); } +.side-nav a:hover,.side-nav a:focus-visible,.side-nav .active { color:var(--ink); } +.side-nav .active { border-color:var(--brand); } +.sidebar-foot a,.site-footer a { color:var(--brand-deep); } +.intro,.facts,.doc-section,.endpoint-list,.site-footer { border-color:var(--line); } +.lead,.doc-section > p:not(.section-kicker) { color:var(--muted); } +.button { border-radius:11px; border-width:2px; border-color:var(--ink); } +.button.primary { background:var(--brand); color:#fff; box-shadow:0 4px 0 var(--brand-deep); } +.button.primary:hover,.button.primary:focus-visible { background:#7669ed; outline:0; transform:translateY(-1px); box-shadow:0 5px 0 var(--brand-deep); } +.button.secondary { border-color:var(--ink); background:var(--surface); color:var(--ink); box-shadow:0 3px 0 var(--ink); } +.button.secondary:hover,.button.secondary:focus-visible { border-color:var(--brand); color:var(--brand-deep); outline:0; } +.steps li>span { border-color:var(--brand); color:var(--brand-deep); background:#eeecff; } +code { background:#eeecff; color:var(--brand-deep); } +.code-block { border-color:var(--ink); background:var(--code); } +.code-title { border-bottom-color:#3c3e5b; } +.copy-button { border-color:#7169c8; } +.copy-button:hover,.copy-button:focus-visible { border-color:var(--brand); } +.method.get { background:var(--lfapi-mint,#d9f2e7); color:#26785d; } +.method.post { background:#eeecff; color:var(--brand-deep); } +.note { border-left-color:var(--brand); background:#d9f2e7; } +.note p { color:#365c50; } +.response-row.header { background:#f3eee5; color:var(--muted); } +.site-footer span:first-child { color:var(--ink); } +@media (prefers-color-scheme:dark) { + :root { color-scheme:dark; --ink:#fff9ef; --muted:#b8b7c7; --line:#484a67; --surface:#30324f; --canvas:#1f2036; --brand:#796cf1; --brand-deep:#c4bcff; --code:#252640; } + .site-header { background:color-mix(in srgb,var(--canvas) 94%,transparent); } + .button.secondary { border-color:#8b86bf; background:var(--surface); color:var(--ink); box-shadow:0 3px 0 #15162a; } + .button.primary { background:var(--brand); color:#252640; box-shadow:0 4px 0 #463bb1; } + .steps li>span { background:#3b3d5b; color:var(--brand-deep); } + code { background:#3b3d5b; color:#eeeaff; } + .method.get { background:#234d40; color:#9be4c5; } + .method.post { background:#3b3d5b; color:#c4bcff; } + .note { background:#234d40; } + .note p { color:#c5e8da; } + .response-row.header { background:#353752; } +} diff --git a/next.config.mjs b/next.config.mjs index 0c82e3c..7dd43b7 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -6,45 +6,11 @@ const withMDX = createMDX(); const config = { reactStrictMode: true, poweredByHeader: false, - experimental: { - serverActions: { - allowedOrigins: [ - 'localhost:3000', - // newapi.pro domains - 'docs.newapi.pro', - 'newapi.pro', - 'www.newapi.pro', - // newapi.ai domains - 'docs.newapi.ai', - 'newapi.ai', - 'www.newapi.ai', - // Vercel preview - 'new-api-docs-v1.vercel.app', - ], - }, - }, - async headers() { - return [ - { - // Apply charset to HTML pages - source: '/:lang(en|zh|ja)/:path*', - headers: [ - { - key: 'Content-Type', - value: 'text/html; charset=utf-8', - }, - ], - }, - ]; - }, - async rewrites() { - return [ - { - source: '/:lang/docs/:path*.mdx', - destination: '/:lang/llms.mdx/:path*', - }, - ]; - }, + output: 'export', + basePath: '/docs', + assetPrefix: '/docs', + trailingSlash: true, + images: { unoptimized: true }, }; export default withMDX(config); diff --git a/public/assets/lfapi.svg b/public/assets/lfapi.svg new file mode 100644 index 0000000..b8d37cb --- /dev/null +++ b/public/assets/lfapi.svg @@ -0,0 +1,7 @@ + + LFAPI + + + + + diff --git a/src/app/[lang]/(home)/layout.tsx b/src/app/[lang]/(home)/layout.tsx index 4c4a1cd..9bdbc9b 100644 --- a/src/app/[lang]/(home)/layout.tsx +++ b/src/app/[lang]/(home)/layout.tsx @@ -15,7 +15,6 @@ import { Download, HelpCircle, Sparkles, - FileCode, BookOpen, Puzzle, type LucideIcon, @@ -38,11 +37,11 @@ const i18nText: Record< > = { en: { title: { text: 'Documentation', desc: '' }, - apiDocs: { text: 'Apifox Playground', desc: '' }, + apiDocs: { text: 'API Reference', desc: '' }, skills: { text: 'Skills', desc: '' }, start: { text: 'Getting Started', - desc: 'Learn how to deploy and configure New API.', + desc: 'Learn how to deploy and configure LFAPI.', }, install: { text: 'Installation', @@ -60,9 +59,9 @@ const i18nText: Record< }, zh: { title: { text: '文档', desc: '' }, - apiDocs: { text: 'Apifox 操练场', desc: '' }, + apiDocs: { text: 'API 参考', desc: '' }, skills: { text: 'Skills', desc: '' }, - start: { text: '快速开始', desc: '学习如何部署和配置 New API。' }, + start: { text: '快速开始', desc: '学习如何部署和配置 LFAPI。' }, install: { text: '部署安装', desc: '多种部署方式和安装指南。' }, support: { text: '帮助支持', desc: '常见问题和社区支持。' }, api: { text: 'API 参考', desc: '完整的 API 文档和参考指南。' }, @@ -70,9 +69,9 @@ const i18nText: Record< }, ja: { title: { text: 'ドキュメント', desc: '' }, - apiDocs: { text: 'Apifox プレイグラウンド', desc: '' }, + apiDocs: { text: 'API リファレンス', desc: '' }, skills: { text: 'Skills', desc: '' }, - start: { text: 'はじめに', desc: 'New API のデプロイと設定方法を学ぶ。' }, + start: { text: 'はじめに', desc: 'LFAPI のデプロイと設定方法を学ぶ。' }, install: { text: 'インストール', desc: '様々なデプロイ方法とインストールガイド。', @@ -163,9 +162,8 @@ export default async function Layout({ type: 'main', on: 'menu', text: texts.apiDocs.text, - url: 'https://apifox.newapi.ai/', - icon: , - external: true, + url: `${docsUrl}/api`, + icon: , }, // Desktop navigation { @@ -232,8 +230,7 @@ export default async function Layout({ type: 'main', on: 'nav', text: texts.apiDocs.text, - url: 'https://apifox.newapi.ai/', - external: true, + url: `${docsUrl}/api`, }, ...linkItems, ]} diff --git a/src/app/[lang]/(home)/page.tsx b/src/app/[lang]/(home)/page.tsx index 0604840..00925cb 100644 --- a/src/app/[lang]/(home)/page.tsx +++ b/src/app/[lang]/(home)/page.tsx @@ -1,9 +1,8 @@ import Link from 'next/link'; -import { Github, BookOpen } from 'lucide-react'; +import { BookOpen, FileCode } from 'lucide-react'; import { Hero } from './page.client'; import { getLocalePath, i18n } from '@/lib/i18n'; import Image from 'next/image'; -import { AntifraudDialog } from '@/components/antifraud-dialog'; const AtomGitIcon = () => ( @@ -22,8 +21,7 @@ const contentMap: Record< subtitle: string; highlight: string; getStarted: string; - github: string; - atomgit: string; + source: string; partnersTitle: string; partnersSubtitle: string; sponsorPartnersTitle: string; @@ -38,8 +36,7 @@ const contentMap: Record< subtitle: 'build the', highlight: 'future', getStarted: 'Getting Started', - github: 'GitHub', - atomgit: 'AtomGit', + source: 'Source', partnersTitle: 'Our Partners & Clients', partnersSubtitle: 'In no particular order', sponsorPartnersTitle: 'Sponsor Partners', @@ -53,8 +50,7 @@ const contentMap: Record< subtitle: '连接', highlight: '未来', getStarted: '快速开始', - github: 'GitHub', - atomgit: 'AtomGit', + source: '源码', partnersTitle: '我们的合作伙伴与客户', partnersSubtitle: '排名不分先后', sponsorPartnersTitle: '赞助合作伙伴', @@ -68,8 +64,7 @@ const contentMap: Record< subtitle: '', highlight: '未来を構築', getStarted: 'はじめに', - github: 'GitHub', - atomgit: 'AtomGit', + source: 'ソース', partnersTitle: '私たちのパートナーとお客様', partnersSubtitle: '順不同', sponsorPartnersTitle: 'スポンサーパートナー', @@ -151,30 +146,19 @@ export default async function Page({ {content.getStarted} - - - {content.github} - - - - {content.atomgit} - + + {content.source} +
{/* Partners Section */} -
+ {false &&

{content.partnersTitle}

@@ -202,10 +186,10 @@ export default async function Page({ ))} -
+
} {/* Sponsor Partners Section */} -
+ {false &&

{content.sponsorPartnersTitle}

@@ -239,10 +223,10 @@ export default async function Page({ ))} -
+
} {/* Development Contributors Section */} -
+ {false &&

{content.devContributorsTitle}

@@ -261,10 +245,10 @@ export default async function Page({ /> -
+
} {/* Documentation Contributors Section */} -
+ {false &&

{content.docsContributorsTitle}

@@ -283,9 +267,8 @@ export default async function Page({ /> -
+
} - ); } diff --git a/src/app/[lang]/docs/[[...slug]]/page.tsx b/src/app/[lang]/docs/[[...slug]]/page.tsx index a6c3868..8924d06 100644 --- a/src/app/[lang]/docs/[[...slug]]/page.tsx +++ b/src/app/[lang]/docs/[[...slug]]/page.tsx @@ -9,9 +9,7 @@ import { notFound } from 'next/navigation'; import { getMDXComponents } from '@/mdx-components'; import type { Metadata } from 'next'; import { createRelativeLink } from 'fumadocs-ui/mdx'; -import { Feedback } from '@/components/feedback'; import { LLMCopyButton, ViewOptions } from '@/components/page-actions'; -import { onRateAction } from '@/lib/github'; // GitHub repository info for source links const owner = 'QuantumNous'; @@ -61,7 +59,6 @@ export default async function Page(props: { })} /> - ); } diff --git a/src/app/[lang]/layout.tsx b/src/app/[lang]/layout.tsx index a86c9f0..507f314 100644 --- a/src/app/[lang]/layout.tsx +++ b/src/app/[lang]/layout.tsx @@ -43,20 +43,20 @@ const titleMap: Record< { default: string; template: string; description: string } > = { en: { - default: 'New API - The Foundation of Your AI Universe', - template: '%s | New API', + default: 'LFAPI - The Foundation of Your AI Universe', + template: '%s | LFAPI', description: 'Connect all AI providers, manage your AI assets, and build the future on a unified infrastructure platform. Deploy in minutes, scale effortlessly.', }, zh: { - default: 'New API - AI 基座', - template: '%s | New API', + default: 'LFAPI - AI 基座', + template: '%s | LFAPI', description: '承载所有 AI 应用,管理你的数字资产,连接未来的统一基础设施平台。快速部署,轻松扩展。', }, ja: { - default: 'New API - あなたの AI ユニバースの基盤', - template: '%s | New API', + default: 'LFAPI - あなたの AI ユニバースの基盤', + template: '%s | LFAPI', description: 'すべての AI プロバイダーを接続し、AI アセットを管理し、統一されたインフラストラクチャプラットフォームで未来を構築。数分でデプロイ、簡単にスケール。', }, @@ -90,9 +90,9 @@ export async function generateMetadata({ 'Intelligent API Management', ], authors: [ - { name: 'New API Team', url: 'https://github.com/QuantumNous/new-api' }, + { name: 'LFAPI', url: 'https://ai.liangfeng.net.cn/source' }, ], - creator: 'New API Team', + creator: 'LFAPI', alternates: { languages: { en: '/en', @@ -105,7 +105,7 @@ export async function generateMetadata({ locale: lang, title: titles.default, description: titles.description, - siteName: 'New API', + siteName: 'LFAPI', }, twitter: { card: 'summary_large_image', diff --git a/src/app/api/search/route.ts b/src/app/api/search/route.ts index 9729802..19e1322 100644 --- a/src/app/api/search/route.ts +++ b/src/app/api/search/route.ts @@ -3,7 +3,9 @@ import { createFromSource } from 'fumadocs-core/search/server'; import { createTokenizer as createMandarinTokenizer } from '@orama/tokenizers/mandarin'; import { createTokenizer as createJapaneseTokenizer } from '@orama/tokenizers/japanese'; -export const { GET } = createFromSource(source, { +export const dynamic = 'force-static'; + +const search = createFromSource(source, { localeMap: { en: { language: 'english' }, zh: { @@ -16,3 +18,6 @@ export const { GET } = createFromSource(source, { }, }, }); + +// Export the generated index so the static document site can search locally. +export const GET = search.staticGET; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 1b6d069..433f601 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,7 +3,7 @@ import { GoogleAnalytics } from '@next/third-parties/google'; import './global.css'; export const metadata: Metadata = { - metadataBase: new URL('https://www.newapi.ai'), + metadataBase: new URL('https://ai.liangfeng.net.cn/docs'), other: { charset: 'utf-8', }, diff --git a/src/app/robots.ts b/src/app/robots.ts index e5ee78d..55cd77c 100644 --- a/src/app/robots.ts +++ b/src/app/robots.ts @@ -1,6 +1,8 @@ import type { MetadataRoute } from 'next'; import { baseUrl } from '@/lib/metadata'; +export const dynamic = 'force-static'; + export default function robots(): MetadataRoute.Robots { const sitemapUrl = `${baseUrl.origin}/sitemap.xml`; diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index a233107..017e709 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -1,4 +1,6 @@ import type { MetadataRoute } from 'next'; + +export const dynamic = 'force-static'; import { source } from '@/lib/source'; import { i18n } from '@/lib/i18n'; import { baseUrl } from '@/lib/metadata'; diff --git a/src/components/antifraud-dialog.tsx b/src/components/antifraud-dialog.tsx index 8812e81..843c1dc 100644 --- a/src/components/antifraud-dialog.tsx +++ b/src/components/antifraud-dialog.tsx @@ -23,15 +23,15 @@ const i18nContent: Record< } > = { zh: { - title: '谨防假冒 New API 官方服务', + title: '谨防假冒 LFAPI 官方服务', summary: - 'New API 从未公开销售 API 服务,也未授权任何代理或经销商。请仅信任官方开源仓库。', + 'LFAPI 从未公开销售 API 服务,也未授权任何代理或经销商。请仅信任官方开源仓库。', sections: [ { heading: '第一:官方绝未公开发售接口,谨防受骗!', body: ( <> - New API 为纯粹的开源项目,我司 + LFAPI 为纯粹的开源项目,我司 从未授权任何机构或个人开展代理或销售。凡在外打着 “New API 官方 / 合作方 / 自营”旗号售卖 API 额度或中转服务的, 100% 均为假冒李鬼 @@ -67,21 +67,21 @@ const i18nContent: Record< dismiss: '关闭提示', }, en: { - title: 'Beware of counterfeit New API services', + title: 'Beware of counterfeit LFAPI services', summary: - 'New API has never sold API access or authorized any agents or resellers. Trust only the official open-source repository.', + 'LFAPI has never sold API access or authorized any agents or resellers. Trust only the official open-source repository.', sections: [ { heading: 'We have NEVER publicly sold API access — beware of scams!', body: ( <> - New API is a purely open-source project. We have{' '} + LFAPI is a purely open-source project. We have{' '} never authorized any organization or individual to act as an agent or reseller . Anyone selling API quotas or relay services under the name - “New API Official / Partner / Self-operated” is{' '} + “LFAPI Official / Partner / Self-operated” is{' '} 100% fraudulent. ), @@ -118,17 +118,17 @@ const i18nContent: Record< dismiss: 'Dismiss notice', }, ja: { - title: '偽の New API 公式サービスにご注意ください', + title: '偽の LFAPI 公式サービスにご注意ください', summary: - 'New API は API を販売しておらず、代理店や再販業者も認可していません。公式のオープンソースリポジトリのみをご利用ください。', + 'LFAPI は API を販売しておらず、代理店や再販業者も認可していません。公式のオープンソースリポジトリのみをご利用ください。', sections: [ { heading: '公式は API を一切販売していません — 詐欺にご注意ください!', body: ( <> - New API は純粋なオープンソースプロジェクトです。 + LFAPI は純粋なオープンソースプロジェクトです。 いかなる機関や個人にも代理販売を許可したことはありません - 。「New API 公式 / パートナー / 自営」を名乗り API + 。「LFAPI 公式 / パートナー / 自営」を名乗り API クォータや中継サービスを販売するものは、100% 偽物です。 ), diff --git a/src/components/footer.tsx b/src/components/footer.tsx index f65a7de..c0c3d5c 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -1,5 +1,5 @@ import Link from 'next/link'; -import { Github, MessageCircle } from 'lucide-react'; +import { FileCode } from 'lucide-react'; import { getLocalePath } from '@/lib/i18n'; interface FooterProps { @@ -34,63 +34,14 @@ const ProductHuntIcon = ( // Shared Data (same across all languages) // ============================================ const socialLinks: { name: string; href: string; icon: React.ReactNode }[] = [ - { - name: 'GitHub', - href: 'https://github.com/QuantumNous/new-api', - icon: , - }, - { - name: 'AtomGit', - href: 'https://atomgit.com/QuantumNous/new-api', - icon: AtomGitIcon, - }, - { - name: 'Docker', - href: 'https://hub.docker.com/r/calciumion/new-api', - icon: DockerIcon, - }, - { - name: 'QQ', - href: 'docs/support/community-interaction', - icon: , - }, - { - name: 'Product Hunt', - href: 'https://www.producthunt.com/products/new-api', - icon: ProductHuntIcon, - }, + { name: 'Source', href: '/source', icon: }, ]; -const beianLinks: { text: string; href: string }[] = [ - { text: '浙ICP备2025190188号-2', href: 'https://beian.miit.gov.cn/' }, - { - text: '浙公网安备33010602014019号', - href: 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010602014019', - }, -]; +const beianLinks: { text: string; href: string }[] = []; // External links (same labels across all languages) -const relatedProjects: { label: string; href: string }[] = [ - { label: 'One API', href: 'https://github.com/songquanpeng/one-api' }, - { - label: 'Midjourney-Proxy', - href: 'https://github.com/novicezk/midjourney-proxy', - }, - { - label: 'new-api-key-tool', - href: 'https://github.com/Calcium-Ion/new-api-key-tool', - }, -]; - -const friendshipLinks: { label: string; href: string }[] = [ - { label: 'CoAI', href: 'https://github.com/coaidev/coai' }, - { - label: 'new-api-horizon', - href: 'https://github.com/Calcium-Ion/new-api-horizon', - }, - { label: 'GPT-Load', href: 'https://www.gpt-load.com' }, - { label: 'LangBot', href: 'https://langbot.app' }, -]; +const relatedProjects: { label: string; href: string }[] = []; +const friendshipLinks: { label: string; href: string }[] = []; // ============================================ // Internal link paths (only labels need translation) @@ -145,7 +96,7 @@ const translations: Record = { relatedProjects: '相关项目', friendshipLinks: '友情链接', }, - copyright: '© 2025 锟腾科技. All Rights Reserved.', + copyright: '© LFAPI。由 NewAPI 二次开发而成。', }, en: { sections: { @@ -164,7 +115,7 @@ const translations: Record = { relatedProjects: 'Related Projects', friendshipLinks: 'Friendship Links', }, - copyright: '© 2025 QuantumNous. All Rights Reserved.', + copyright: '© LFAPI. Developed as a secondary work of NewAPI.', }, ja: { sections: { @@ -183,7 +134,7 @@ const translations: Record = { relatedProjects: '関連プロジェクト', friendshipLinks: '友好リンク', }, - copyright: '© 2025 QuantumNous. All Rights Reserved.', + copyright: '© LFAPI. NewAPI を元に二次開発。', }, }; @@ -222,7 +173,7 @@ function buildSections(t: FooterTranslation) { title: t.sections.friendshipLinks, links: friendshipLinks.map((p) => ({ ...p, external: true })), }, - ]; + ].filter((section) => section.links.length > 0); } // ============================================ diff --git a/src/components/provider.tsx b/src/components/provider.tsx index 7c60d91..17dd886 100644 --- a/src/components/provider.tsx +++ b/src/components/provider.tsx @@ -11,5 +11,17 @@ export function Provider({ i18n: Parameters[0]['i18n']; lang?: string; }) { - return {children}; + return ( + + {children} + + ); } diff --git a/src/components/qq-group-quiz.tsx b/src/components/qq-group-quiz.tsx index 317430e..cb9ec62 100644 --- a/src/components/qq-group-quiz.tsx +++ b/src/components/qq-group-quiz.tsx @@ -11,7 +11,7 @@ const translations = { questions: [ { id: 'q1', - question: '1. What is New API?', + question: '1. What is LFAPI?', options: [ { value: 'a', label: 'A commercial API sales platform' }, { @@ -24,7 +24,7 @@ const translations = { ], correct: 'b', errorMessage: - 'Please re-read the project introduction. New API is an open-source AI interface management and distribution system.', + 'Please re-read the project introduction. LFAPI is an open-source AI interface management and distribution system.', }, { id: 'q2', @@ -40,7 +40,7 @@ const translations = { }, { id: 'q3', - question: '3. Does New API have a closed-source paid version?', + question: '3. Does LFAPI have a closed-source paid version?', options: [ { value: 'true', @@ -49,12 +49,12 @@ const translations = { { value: 'false', label: - 'No, New API is open-source software, but a commercial license is required in certain scenarios', + 'No, LFAPI is open-source software, but a commercial license is required in certain scenarios', }, ], correct: 'false', errorMessage: - 'According to Group Rule 4: New API is open-source software, but a commercial license is required in certain scenarios. For details, please see the Project Introduction.', + 'According to Group Rule 4: LFAPI is open-source software, but a commercial license is required in certain scenarios. For details, please see the Project Introduction.', }, { id: 'q4', @@ -105,7 +105,7 @@ const translations = { questions: [ { id: 'q1', - question: '1. New API 是什么?', + question: '1. LFAPI 是什么?', options: [ { value: 'a', label: '一个商业API销售平台' }, { value: 'b', label: '一个开源的AI接口管理和分发系统' }, @@ -114,7 +114,7 @@ const translations = { ], correct: 'b', errorMessage: - '请重新阅读项目介绍。New API 是一个开源的AI接口管理和分发系统。', + '请重新阅读项目介绍。LFAPI 是一个开源的AI接口管理和分发系统。', }, { id: 'q2', @@ -129,17 +129,17 @@ const translations = { }, { id: 'q3', - question: '3. New API 是否有闭源的付费版本?', + question: '3. LFAPI 是否有闭源的付费版本?', options: [ { value: 'true', label: '有,存在付费的闭源版本' }, { value: 'false', - label: '没有,New API 采用 AGPLv3 开源协议,遵守协议即可免费使用', + label: '没有,LFAPI 采用 AGPLv3 开源协议,遵守协议即可免费使用', }, ], correct: 'false', errorMessage: - '根据群规第4条:New API 采用 GNU AGPLv3 开源协议,只要遵守开源协议即可免费使用。', + '根据群规第4条:LFAPI 采用 GNU AGPLv3 开源协议,只要遵守开源协议即可免费使用。', }, { id: 'q4', @@ -180,7 +180,7 @@ const translations = { questions: [ { id: 'q1', - question: '1. New APIとは何ですか?', + question: '1. LFAPIとは何ですか?', options: [ { value: 'a', label: '商用API販売プラットフォーム' }, { @@ -192,7 +192,7 @@ const translations = { ], correct: 'b', errorMessage: - 'プロジェクト紹介を再度お読みください。New APIはオープンソースのAIインターフェース管理・配布システムです。', + 'プロジェクト紹介を再度お読みください。LFAPIはオープンソースのAIインターフェース管理・配布システムです。', }, { id: 'q2', @@ -208,18 +208,18 @@ const translations = { }, { id: 'q3', - question: '3. New APIにはクローズドソースの有料版がありますか?', + question: '3. LFAPIにはクローズドソースの有料版がありますか?', options: [ { value: 'true', label: 'はい、クローズドソースの有料版があります' }, { value: 'false', label: - 'いいえ、New APIはオープンソースソフトウェアですが、特定のシナリオでは商用ライセンスが必要です', + 'いいえ、LFAPIはオープンソースソフトウェアですが、特定のシナリオでは商用ライセンスが必要です', }, ], correct: 'false', errorMessage: - 'グループルール4により:New APIはオープンソースソフトウェアですが、特定のシナリオでは商用ライセンスが必要です。詳細については、プロジェクト紹介をご覧ください。', + 'グループルール4により:LFAPIはオープンソースソフトウェアですが、特定のシナリオでは商用ライセンスが必要です。詳細については、プロジェクト紹介をご覧ください。', }, { id: 'q4', diff --git a/src/components/search.tsx b/src/components/search.tsx index d10480a..eaad9d6 100644 --- a/src/components/search.tsx +++ b/src/components/search.tsx @@ -40,11 +40,11 @@ function Header() {

Powered by{' '} - New API + LFAPI

@@ -247,7 +247,7 @@ function Input(props: ComponentProps<'textarea'>) { const roleName: Record = { user: 'you', - assistant: 'New API Docs', + assistant: 'LFAPI Docs', }; function Message({ diff --git a/src/disabled-routes/README.md b/src/disabled-routes/README.md new file mode 100755 index 0000000..abfbc1b --- /dev/null +++ b/src/disabled-routes/README.md @@ -0,0 +1,9 @@ +# Static-export exclusions + +This directory retains optional runtime-only routes from the upstream documentation +site. LFAPI publishes the documentation as static files through Nginx, so it does +not run the upstream AI chat, arbitrary OpenAPI proxy, LLM text endpoints, or +dynamic Open Graph image handler. + +The documentation search endpoint remains enabled separately at `/api/search/`. +It is built as a static Fumadocs index and queried in the browser. diff --git a/src/app/api/chat/route.ts b/src/disabled-routes/api/chat/route.ts similarity index 100% rename from src/app/api/chat/route.ts rename to src/disabled-routes/api/chat/route.ts diff --git a/src/app/api/proxy/route.ts b/src/disabled-routes/api/proxy/route.ts similarity index 100% rename from src/app/api/proxy/route.ts rename to src/disabled-routes/api/proxy/route.ts diff --git a/src/app/[lang]/llm-full.txt/route.ts b/src/disabled-routes/lang/llm-full.txt/route.ts similarity index 100% rename from src/app/[lang]/llm-full.txt/route.ts rename to src/disabled-routes/lang/llm-full.txt/route.ts diff --git a/src/app/[lang]/llm.txt/route.ts b/src/disabled-routes/lang/llm.txt/route.ts similarity index 100% rename from src/app/[lang]/llm.txt/route.ts rename to src/disabled-routes/lang/llm.txt/route.ts diff --git a/src/app/[lang]/llms-full.txt/route.ts b/src/disabled-routes/lang/llms-full.txt/route.ts similarity index 100% rename from src/app/[lang]/llms-full.txt/route.ts rename to src/disabled-routes/lang/llms-full.txt/route.ts diff --git a/src/app/[lang]/llms.mdx/[[...slug]]/route.ts b/src/disabled-routes/lang/llms.mdx/[[...slug]]/route.ts similarity index 100% rename from src/app/[lang]/llms.mdx/[[...slug]]/route.ts rename to src/disabled-routes/lang/llms.mdx/[[...slug]]/route.ts diff --git a/src/app/[lang]/llms.txt/route.ts b/src/disabled-routes/lang/llms.txt/route.ts similarity index 100% rename from src/app/[lang]/llms.txt/route.ts rename to src/disabled-routes/lang/llms.txt/route.ts diff --git a/src/app/og/docs/[...slug]/route.tsx b/src/disabled-routes/og/docs/[...slug]/route.tsx similarity index 97% rename from src/app/og/docs/[...slug]/route.tsx rename to src/disabled-routes/og/docs/[...slug]/route.tsx index 5e1f246..a0e6c48 100644 --- a/src/app/og/docs/[...slug]/route.tsx +++ b/src/disabled-routes/og/docs/[...slug]/route.tsx @@ -18,7 +18,7 @@ export async function GET( ), { diff --git a/src/app/llm-full.txt/route.ts b/src/disabled-routes/root/llm-full.txt/route.ts similarity index 100% rename from src/app/llm-full.txt/route.ts rename to src/disabled-routes/root/llm-full.txt/route.ts diff --git a/src/app/llm.txt/route.ts b/src/disabled-routes/root/llm.txt/route.ts similarity index 100% rename from src/app/llm.txt/route.ts rename to src/disabled-routes/root/llm.txt/route.ts diff --git a/src/app/llms-full.txt/route.ts b/src/disabled-routes/root/llms-full.txt/route.ts similarity index 100% rename from src/app/llms-full.txt/route.ts rename to src/disabled-routes/root/llms-full.txt/route.ts diff --git a/src/app/llms.txt/route.ts b/src/disabled-routes/root/llms.txt/route.ts similarity index 100% rename from src/app/llms.txt/route.ts rename to src/disabled-routes/root/llms.txt/route.ts diff --git a/src/lib/github.ts b/src/lib/github.ts index 1770647..e4e6e81 100644 --- a/src/lib/github.ts +++ b/src/lib/github.ts @@ -89,7 +89,6 @@ export async function onRateAction( url: string, feedback: Feedback ): Promise { - 'use server'; const octokit = await getOctokit(); const destination = await getFeedbackDestination(); if (!octokit || !destination) { diff --git a/src/lib/layout.shared.tsx b/src/lib/layout.shared.tsx index 9afa981..d4074c5 100644 --- a/src/lib/layout.shared.tsx +++ b/src/lib/layout.shared.tsx @@ -6,9 +6,9 @@ import type { LinkItemType } from 'fumadocs-ui/layouts/docs'; export const linkItems: LinkItemType[] = [ { type: 'icon', - url: 'https://github.com/QuantumNous/new-api', - label: 'GitHub', - text: 'GitHub', + url: '/source', + label: 'Source', + text: 'Source', icon: ( {logo} - New API + LFAPI ), diff --git a/src/lib/llms.ts b/src/lib/llms.ts index bc9f858..21b0354 100644 --- a/src/lib/llms.ts +++ b/src/lib/llms.ts @@ -38,9 +38,9 @@ export function generateLLMsText( .sort((a, b) => a.docsUrl.localeCompare(b.docsUrl)); const lines = [ - `# New API Docs (${lang})`, + `# LFAPI Docs (${lang})`, '', - '> LLM-friendly index for New API documentation.', + '> LLM-friendly index for LFAPI documentation.', '', '## Preferred Sources', `- [Full Documentation](${toAbsoluteUrl(origin, `/${lang}/llms-full.txt`)}): Full corpus in one file.`, diff --git a/src/lib/metadata.ts b/src/lib/metadata.ts index cd123d4..f14fb8f 100644 --- a/src/lib/metadata.ts +++ b/src/lib/metadata.ts @@ -11,9 +11,9 @@ export function createMetadata(override: Metadata): Metadata { openGraph: { title: override.title ?? undefined, description: override.description ?? undefined, - url: 'https://www.newapi.ai', + url: 'https://ai.liangfeng.net.cn/docs', images: '/assets/logo.png', - siteName: 'New API', + siteName: 'LFAPI', type: 'website', ...override.openGraph, }, @@ -27,8 +27,4 @@ export function createMetadata(override: Metadata): Metadata { }; } -export const baseUrl = - process.env.NODE_ENV === 'development' || - !process.env.VERCEL_PROJECT_PRODUCTION_URL - ? new URL('http://localhost:3000') - : new URL(`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`); +export const baseUrl = new URL('https://ai.liangfeng.net.cn/docs');