feat: playground embedding

This commit is contained in:
jialin
2024-11-22 10:00:34 +08:00
parent 01214077d3
commit 16e2ac5b6c
33 changed files with 1518 additions and 172 deletions
+1
View File
@@ -3,6 +3,7 @@
* @example Directories like 'en-US' or 'zh-CN' should correspond exactly to the configuration names in lang-config-map.ts.
*/
// @ts-ignore
const requireContext = require.context(`./en-US`, false, /\.ts$/);
let languageConfig: Record<string, string> = {};
+1 -1
View File
@@ -3,7 +3,7 @@ import IconFont from '@/components/icon-font';
/**
* Language configuration map
* Warning: The key of the map must be the same as the directory name in the locales directory
* Do not modify the key of the map
* Do not modify the key of the map !!!
*
*/
const langConfigMap = {
+1
View File
@@ -3,6 +3,7 @@
* @example Directories like 'en-US' or 'zh-CN' should correspond exactly to the configuration names in lang-config-map.ts.
*/
// @ts-ignore
const requireContext = require.context(`./zh-CN`, false, /\.ts$/);
let languageConfig: Record<string, string> = {};
+2 -1
View File
@@ -1,7 +1,8 @@
export default {
'menu.dashboard': '概览',
'menu.playground': '试验场',
'menu.playground.rerank': 'Rerank',
'menu.playground.rerank': '重排',
'menu.playground.embedding': '文本嵌入',
'menu.playground.chat': '对话',
'menu.compare': '多模型对比',
'menu.models': '模型',