mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-18 02:30:51 +08:00
fix(webui): normalize gemini endpoint and oauth callback status
This commit is contained in:
@@ -82,6 +82,10 @@ class ApiClient {
|
||||
(config) => {
|
||||
// 设置 baseURL
|
||||
config.baseURL = this.apiBase;
|
||||
if (config.url) {
|
||||
// Normalize deprecated Gemini endpoint to the current path.
|
||||
config.url = config.url.replace(/\/generative-language-api-key\b/g, '/gemini-api-key');
|
||||
}
|
||||
|
||||
// 添加认证头
|
||||
if (this.managementKey) {
|
||||
|
||||
Reference in New Issue
Block a user