feat(i18n): update WeKnoraCloud integration and enhance model management
- Revised usage steps in English, Korean, Russian, and Chinese localization files for clarity on saving credentials and adding cloud models. - Introduced a new section in WeKnoraCloudSettings.vue to display the status of cloud model integration based on credential configuration. - Added utility functions for managing WeKnoraCloud models, including model configuration and existing model checks. - Enhanced ModelSettings.vue to improve model management actions and confirm deletion prompts. - Implemented logic to handle adding cloud models with success and failure notifications.
This commit is contained in:
@@ -1178,7 +1178,7 @@ export default {
|
||||
saveHint: 'Credentials will be validated and encrypted before saving.',
|
||||
saveBtn: 'Save Credentials',
|
||||
usageTitle: 'Usage Guide',
|
||||
usageSteps: '1. Fill in and save APPID and APPSECRET on this page\n2. Model services: Go to Model Management, add a model with Remote API source, select WeKnoraCloud as provider\n3. Document parsing: Go to Knowledge Base Settings → Parser Engine, select WeKnora Cloud engine for desired file types',
|
||||
usageSteps: '1. Save APPID and APPSECRET\n2. Register chat, embedding, rerank, and vlm in Cloud Models below\n3. Parser: Knowledge Base Settings → Parser Engine → WeKnora Cloud',
|
||||
fillRequired: 'Please fill in APPID and APPSECRET',
|
||||
saveSuccess: 'Credentials saved successfully',
|
||||
saveFailed: 'Failed to save credentials',
|
||||
@@ -1189,6 +1189,29 @@ export default {
|
||||
goToSettings: 'Go to Settings',
|
||||
modelHintConfigured: 'WeKnoraCloud credentials configured. See supported models in',
|
||||
modelHintDocsLink: 'API docs',
|
||||
modelsSection: {
|
||||
title: 'Cloud Models',
|
||||
descReady: 'Register the four standard WeKnora Cloud models for chat, retrieval, reranking, and vision.',
|
||||
descPending: 'Save credentials above before adding cloud models here.',
|
||||
statusAdded: 'Added',
|
||||
statusPending: 'Credentials required',
|
||||
addOne: 'Add',
|
||||
addAllBtn: 'Add all missing ({count})',
|
||||
addAllConfirm: 'Confirm',
|
||||
confirmAddOne: 'Add {type} model "{name}"?',
|
||||
confirmAddAll: 'Add all {count} missing cloud models at once?',
|
||||
allReady: 'All four cloud models are ready',
|
||||
},
|
||||
addModelsSuccess: 'Successfully added {count} model(s)',
|
||||
addModelsPartial: 'Added {success}, {failed} failed',
|
||||
addModelsFailed: 'Failed to add models',
|
||||
addModelsEmbeddingFailed: 'Embedding connection test failed; could not detect vector dimension',
|
||||
addModelsDisplayName: {
|
||||
chat: 'WeKnoraCloud Chat',
|
||||
embedding: 'WeKnoraCloud Embedding',
|
||||
rerank: 'WeKnoraCloud ReRank',
|
||||
vllm: 'WeKnoraCloud Vision',
|
||||
},
|
||||
},
|
||||
system: 'System Settings',
|
||||
systemConfig: 'System Configuration',
|
||||
@@ -4016,7 +4039,7 @@ export default {
|
||||
viewGuide: 'View Built-in Models Guide',
|
||||
},
|
||||
builtinTag: 'Built-in',
|
||||
confirmDelete: 'Are you sure you want to delete this model?',
|
||||
confirmDelete: 'Delete model "{name}"?',
|
||||
},
|
||||
// New: Ollama Settings
|
||||
ollamaSettings: {
|
||||
|
||||
Reference in New Issue
Block a user