Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/init/migration/helper/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func LoadMenus() string {
{ID: "3", Disabled: false, Title: "menu.aiTools", IsShow: true, Label: "AI-Menu", Path: "/ai/model", Sort: 300,
Children: []dto.ShowMenu{
{ID: "44", Disabled: false, Title: "aiTools.agents.agents", IsShow: true, Label: "Agents", Path: "/ai/agents/agent", Sort: 50},
{ID: "41", Disabled: false, Title: "aiTools.model.model", IsShow: true, Label: "OllamaModel", Path: "/ai/model", Sort: 100},
{ID: "41", Disabled: false, Title: "aiTools.model.localModel", IsShow: true, Label: "OllamaModel", Path: "/ai/model", Sort: 100},
{ID: "42", Disabled: false, Title: "menu.mcp", IsShow: true, Label: "MCPServer", Path: "/ai/mcp", Sort: 200},
{ID: "43", Disabled: false, Title: "aiTools.gpu.gpu", IsShow: true, Label: "GPU", Path: "/ai/gpu", Sort: 300},
}},
Expand Down
1 change: 1 addition & 0 deletions core/init/migration/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func Init() {
migrations.UpdateAiAgentsMenu,
migrations.AddDashboardCarouselSetting,
migrations.AddEditionSetting,
migrations.UpdateAiLocalModelMenuTitle,
})
if err := m.Migrate(); err != nil {
global.LOG.Error(err)
Expand Down
12 changes: 12 additions & 0 deletions core/init/migration/migrations/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,3 +834,15 @@ var AddEditionSetting = &gormigrate.Migration{
return nil
},
}

var UpdateAiLocalModelMenuTitle = &gormigrate.Migration{
ID: "20260307-update-ai-local-model-menu-title",
Migrate: func(tx *gorm.DB) error {
return tx.Exec(
`UPDATE settings
SET value = REPLACE(value, 'aiTools.model.model', 'aiTools.model.localModel')
WHERE key = 'HideMenu'
AND value LIKE '%aiTools.model.model%'`,
).Error
},
}
1 change: 1 addition & 0 deletions frontend/src/lang/modules/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ const message = {
},
model: {
model: 'Models',
localModel: 'Local Models',
create: 'Add Model',
create_helper: 'Pull "{0}"',
ollama_doc: 'You can visit the Ollama official website to search and find more models.',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/es-es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ const message = {
},
model: {
model: 'Modelo',
localModel: 'Modelos locales',
create: 'Agregar modelo',
create_helper: 'Descargar "{0}"',
ollama_doc: 'Puede visitar el sitio oficial de Ollama para buscar y encontrar más modelos.',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ const message = {
},
model: {
model: 'モデル',
localModel: 'ローカルモデル',
create: 'モデルを追加',
create_helper: 'を取得 "{0}"',
ollama_doc: 'Ollama の公式ウェブサイトを訪れて、さらに多くのモデルを検索して見つけることができます。',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@ const message = {
},
model: {
model: '모델',
localModel: '로컬 모델',
create: '모델 추가',
create_helper: '가져오기 "{0}"',
ollama_doc: 'Ollama 공식 웹사이트를 방문하여 더 많은 모델을 검색하고 찾을 수 있습니다.',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/ms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ const message = {
},
model: {
model: 'Model',
localModel: 'Model Tempatan',
create: 'Tambah Model',
create_helper: 'Tarik "{0}"',
ollama_doc: 'Anda boleh melawat laman web rasmi Ollama untuk mencari dan menemui lebih banyak model.',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/pt-br.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ const message = {
},
model: {
model: 'Modelo',
localModel: 'Modelos locais',
create: 'Adicionar Modelo',
create_helper: 'Puxar "{0}"',
ollama_doc: 'Você pode visitar o site oficial da Ollama para pesquisar e encontrar mais modelos.',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ const message = {
},
model: {
model: 'Модель',
localModel: 'Локальные модели',
create: 'Добавить модель',
create_helper: 'Загрузить "{0}"',
ollama_doc: 'Вы можете посетить официальный сайт Ollama, чтобы искать и находить больше моделей.',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ const message = {
},
model: {
model: 'Model',
localModel: 'Yerel Modeller',
create: 'Model Ekle',
create_helper: '"{0}" çek',
ollama_doc: 'Daha fazla model aramak ve bulmak için Ollama resmi web sitesini ziyaret edebilirsiniz.',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/zh-Hant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ const message = {
},
model: {
model: '模型',
localModel: '本地模型',
create: '新增模型',
create_helper: '拉取 "{0}"',
ollama_doc: '您可以瀏覽 Ollama 官方網站,搜尋並尋找更多模型。',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ const message = {
},
model: {
model: '模型',
localModel: '本地模型',
create: '添加模型',
create_helper: '拉取 "{0}"',
ollama_doc: '您可以访问 Ollama 官网,搜索并查找更多模型。',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routers/modules/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const databaseRouter = {
component: () => import('@/views/ai/model/ollama/index.vue'),
meta: {
icon: 'p-moxing-menu',
title: 'aiTools.model.model',
title: 'aiTools.model.localModel',
requiresAuth: true,
},
},
Expand Down
Loading