feat: playground embedding
This commit is contained in:
@@ -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> = {};
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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> = {};
|
||||
|
||||
@@ -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': '模型',
|
||||
|
||||
Reference in New Issue
Block a user