feat: support Tencent TokenHub API key via OpenAI-compatible protocol (#6232)
* feat: support tencent tokenhub api key via openai-compatible protocol * fix: use tokenhub base url for tencent api key channels * test: cover tencent key-format dispatch and add TokenHub key prompt locales
This commit is contained in:
@@ -386,7 +386,7 @@ export const TYPE_TO_KEY_PROMPT: Record<number, string> = {
|
||||
15: 'Format: APIKey|SecretKey',
|
||||
18: 'Format: APPID|APISecret|APIKey',
|
||||
22: 'Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041',
|
||||
23: 'Format: AppId|SecretId|SecretKey',
|
||||
23: 'Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey',
|
||||
33: 'Format: Ak|Sk|Region',
|
||||
50: 'Format: AccessKey|SecretKey (or just ApiKey if upstream is New API)',
|
||||
51: 'Format: Access Key ID|Secret Access Key',
|
||||
|
||||
@@ -2052,7 +2052,7 @@
|
||||
"Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041": "Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041",
|
||||
"Format: APIKey|SecretKey": "Format: APIKey|SecretKey",
|
||||
"Format: APPID|APISecret|APIKey": "Format: APPID|APISecret|APIKey",
|
||||
"Format: AppId|SecretId|SecretKey": "Format: AppId|SecretId|SecretKey",
|
||||
"Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey": "Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey",
|
||||
"Forward requests directly to upstream providers without any post-processing.": "Forward requests directly to upstream providers without any post-processing.",
|
||||
"Frames per second": "Frames per second",
|
||||
"Free": "Free",
|
||||
|
||||
@@ -2052,7 +2052,7 @@
|
||||
"Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041": "Format : APIKey-AppId, par ex. fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041",
|
||||
"Format: APIKey|SecretKey": "Format : APIKey|SecretKey",
|
||||
"Format: APPID|APISecret|APIKey": "Format : APPID|APISecret|APIKey",
|
||||
"Format: AppId|SecretId|SecretKey": "Format : AppId|SecretId|SecretKey",
|
||||
"Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey": "Format : TokenHub API Key, ou l'ancien format AppId|SecretId|SecretKey",
|
||||
"Forward requests directly to upstream providers without any post-processing.": "Transférer les requêtes directement aux fournisseurs amont sans aucun post-traitement.",
|
||||
"Frames per second": "Images par seconde",
|
||||
"Free": "Libre",
|
||||
|
||||
@@ -2052,7 +2052,7 @@
|
||||
"Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041": "形式: APIKey-AppId、例: fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041",
|
||||
"Format: APIKey|SecretKey": "形式: APIKey|SecretKey",
|
||||
"Format: APPID|APISecret|APIKey": "形式: APPID|APISecret|APIKey",
|
||||
"Format: AppId|SecretId|SecretKey": "形式: AppId|SecretId|SecretKey",
|
||||
"Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey": "形式: TokenHub API Key、または旧形式の AppId|SecretId|SecretKey",
|
||||
"Forward requests directly to upstream providers without any post-processing.": "ポストプロセスなしで、リクエストをアップストリームプロバイダーに直接転送します。",
|
||||
"Frames per second": "フレームレート",
|
||||
"Free": "空き",
|
||||
|
||||
@@ -2052,7 +2052,7 @@
|
||||
"Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041": "Формат: APIKey-AppId, напр., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041",
|
||||
"Format: APIKey|SecretKey": "Формат: APIKey|SecretKey",
|
||||
"Format: APPID|APISecret|APIKey": "Формат: APPID|APISecret|APIKey",
|
||||
"Format: AppId|SecretId|SecretKey": "Формат: AppId|SecretId|SecretKey",
|
||||
"Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey": "Формат: TokenHub API Key или устаревший AppId|SecretId|SecretKey",
|
||||
"Forward requests directly to upstream providers without any post-processing.": "Перенаправлять запросы напрямую upstream-провайдерам без какой-либо постобработки.",
|
||||
"Frames per second": "Кадров в секунду",
|
||||
"Free": "Свободно",
|
||||
|
||||
@@ -2052,7 +2052,7 @@
|
||||
"Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041": "Định dạng: APIKey-AppId, ví dụ: fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041",
|
||||
"Format: APIKey|SecretKey": "Định dạng: APIKey|SecretKey",
|
||||
"Format: APPID|APISecret|APIKey": "Định dạng: APPID|APISecret|APIKey",
|
||||
"Format: AppId|SecretId|SecretKey": "Định dạng: AppId|SecretId|SecretKey",
|
||||
"Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey": "Định dạng: TokenHub API Key, hoặc định dạng cũ AppId|SecretId|SecretKey",
|
||||
"Forward requests directly to upstream providers without any post-processing.": "Chuyển tiếp các yêu cầu trực tiếp đến các nhà cung cấp ngược dòng mà không cần xử lý hậu kỳ nào.",
|
||||
"Frames per second": "Khung hình / giây",
|
||||
"Free": "Trống",
|
||||
|
||||
@@ -2052,7 +2052,7 @@
|
||||
"Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041": "格式:APIKey-AppId,例如:fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041",
|
||||
"Format: APIKey|SecretKey": "格式:APIKey|SecretKey",
|
||||
"Format: APPID|APISecret|APIKey": "格式:APPID|APISecret|APIKey",
|
||||
"Format: AppId|SecretId|SecretKey": "格式:AppId|SecretId|SecretKey",
|
||||
"Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey": "格式:TokenHub API Key,或舊版 AppId|SecretId|SecretKey",
|
||||
"Forward requests directly to upstream providers without any post-processing.": "將請求直接轉發給上游供應商,不進行任何後處理。",
|
||||
"Frames per second": "幀率",
|
||||
"Free": "可用",
|
||||
|
||||
@@ -2052,7 +2052,7 @@
|
||||
"Format: APIKey-AppId, e.g., fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041": "格式:APIKey-AppId,例如:fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041",
|
||||
"Format: APIKey|SecretKey": "格式:APIKey|SecretKey",
|
||||
"Format: APPID|APISecret|APIKey": "格式:APPID|APISecret|APIKey",
|
||||
"Format: AppId|SecretId|SecretKey": "格式:AppId|SecretId|SecretKey",
|
||||
"Format: TokenHub API Key, or legacy AppId|SecretId|SecretKey": "格式:TokenHub API Key,或旧版 AppId|SecretId|SecretKey",
|
||||
"Forward requests directly to upstream providers without any post-processing.": "将请求直接转发给上游提供商,不进行任何后处理。",
|
||||
"Frames per second": "帧率",
|
||||
"Free": "可用",
|
||||
|
||||
Reference in New Issue
Block a user