feat(lkeap): integrate Tencent Cloud LKEAP Rerank support
- Added support for Tencent Cloud LKEAP Rerank, including new configuration options for SecretId and SecretKey. - Updated frontend components to handle LKEAP-specific fields and enhance user experience with appropriate labels and placeholders. - Enhanced backend logic to manage LKEAP credentials and integrate with the new rerank API. - Improved localization for LKEAP-related terms across multiple languages, ensuring clarity and consistency in user-facing messages. - Introduced tests for LKEAP Reranker functionality to ensure reliability and correctness in handling requests.
This commit is contained in:
@@ -3292,6 +3292,17 @@ export default {
|
||||
baseUrlPlaceholderAsr: 'e.g. https://api.openai.com/v1',
|
||||
apiKeyOptional: 'API Key (optional)',
|
||||
apiKeyPlaceholder: 'Enter API Key',
|
||||
lkeap: {
|
||||
secretIdLabel: 'SecretId',
|
||||
secretIdPlaceholder: 'Tencent Cloud API SecretId',
|
||||
secretKeyLabel: 'SecretKey',
|
||||
secretKeyPlaceholder: 'Tencent Cloud API SecretKey',
|
||||
regionLabel: 'Region',
|
||||
regionPlaceholder: 'ap-guangzhou',
|
||||
regionDesc: 'RunRerank supports ap-beijing, ap-guangzhou, etc. Default: ap-guangzhou',
|
||||
rerankCredentialHint:
|
||||
'Rerank uses Tencent Cloud API signature (not the OpenAI-style LKEAP API key). Create SecretId/SecretKey in the CAM console.',
|
||||
},
|
||||
customHeadersLabel: 'Custom Request Headers (optional)',
|
||||
customHeadersDesc: 'Extra HTTP headers appended to requests to the remote model API (e.g. for enterprise gateway auth or tracing). Reserved headers like Authorization / Content-Type are ignored.',
|
||||
customHeadersAdd: 'Add Header',
|
||||
@@ -3425,7 +3436,7 @@ export default {
|
||||
},
|
||||
lkeap: {
|
||||
label: 'Tencent Cloud LKEAP',
|
||||
description: 'DeepSeek-R1, DeepSeek-V3 series with chain-of-thought',
|
||||
description: 'DeepSeek-R1, DeepSeek-V3, lke-reranker-base, etc.',
|
||||
},
|
||||
nvidia: {
|
||||
label: "NVIDIA",
|
||||
|
||||
Reference in New Issue
Block a user