mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
feat: update ai agent config texts
This commit is contained in:
@@ -95,7 +95,7 @@ export const operateTensorRTLLM = (req: AI.TensorRTLLMOperate) => {
|
||||
};
|
||||
|
||||
export const createAgent = (req: AI.AgentCreateReq) => {
|
||||
return http.post<AI.AgentItem>(`/ai/agents`, req, TimeoutEnum.T_60S);
|
||||
return http.post<AI.AgentItem>(`/ai/agents`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const pageAgents = (req: SearchWithPage) => {
|
||||
@@ -131,23 +131,23 @@ export const updateAgentModelConfig = (req: AI.AgentModelConfigUpdateReq) => {
|
||||
};
|
||||
|
||||
export const getAgentOverview = (req: AI.AgentOverviewReq) => {
|
||||
return http.post<AI.AgentOverview>(`/ai/agents/overview`, req, TimeoutEnum.T_60S);
|
||||
return http.post<AI.AgentOverview>(`/ai/agents/overview`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const createAgentRole = (req: AI.AgentRoleCreateReq) => {
|
||||
return http.post<AI.AgentRoleCreateResp>(`/ai/agents/agent/create`, req, TimeoutEnum.T_60S);
|
||||
return http.post<AI.AgentRoleCreateResp>(`/ai/agents/agent/create`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const deleteAgentRole = (req: AI.AgentRoleDeleteReq) => {
|
||||
return http.post(`/ai/agents/agent/delete`, req, TimeoutEnum.T_60S);
|
||||
return http.post(`/ai/agents/agent/delete`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const bindAgentRole = (req: AI.AgentRoleBindReq) => {
|
||||
return http.post(`/ai/agents/agent/bind`, req, TimeoutEnum.T_60S);
|
||||
return http.post(`/ai/agents/agent/bind`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const unbindAgentRole = (req: AI.AgentRoleBindReq) => {
|
||||
return http.post(`/ai/agents/agent/unbind`, req, TimeoutEnum.T_60S);
|
||||
return http.post(`/ai/agents/agent/unbind`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const getConfiguredAgentRoles = (req: AI.AgentConfiguredAgentsReq) => {
|
||||
@@ -155,7 +155,7 @@ export const getConfiguredAgentRoles = (req: AI.AgentConfiguredAgentsReq) => {
|
||||
};
|
||||
|
||||
export const getAgentRoleChannels = (req: AI.AgentRoleChannelsReq) => {
|
||||
return http.post<AI.AgentRoleChannelItem[]>(`/ai/agents/agent/channels`, req, TimeoutEnum.T_60S);
|
||||
return http.post<AI.AgentRoleChannelItem[]>(`/ai/agents/agent/channels`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const getAgentRoleMarkdownFiles = (req: AI.AgentRoleMarkdownFilesReq) => {
|
||||
@@ -163,7 +163,7 @@ export const getAgentRoleMarkdownFiles = (req: AI.AgentRoleMarkdownFilesReq) =>
|
||||
};
|
||||
|
||||
export const updateAgentRoleMarkdownFile = (req: AI.AgentRoleMarkdownFilesUpdateReq) => {
|
||||
return http.post(`/ai/agents/agent/md/update`, req, TimeoutEnum.T_60S);
|
||||
return http.post(`/ai/agents/agent/md/update`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const getAgentProviders = () => {
|
||||
@@ -299,11 +299,11 @@ export const updateAgentConfigFile = (req: AI.AgentConfigFileUpdateReq) => {
|
||||
};
|
||||
|
||||
export const listAgentSkills = (req: AI.AgentSkillsReq) => {
|
||||
return http.post<AI.AgentSkillItem[]>(`/ai/agents/skills/list`, req, TimeoutEnum.T_60S);
|
||||
return http.post<AI.AgentSkillItem[]>(`/ai/agents/skills/list`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const searchAgentSkills = (req: AI.AgentSkillSearchReq) => {
|
||||
return http.post<AI.AgentSkillSearchItem[]>(`/ai/agents/skills/search`, req, TimeoutEnum.T_60S);
|
||||
return http.post<AI.AgentSkillSearchItem[]>(`/ai/agents/skills/search`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
export const updateAgentSkill = (req: AI.AgentSkillUpdateReq) => {
|
||||
@@ -315,5 +315,5 @@ export const installAgentSkill = (req: AI.AgentSkillInstallReq) => {
|
||||
};
|
||||
|
||||
export const approveAgentChannelPairing = (req: AI.AgentChannelPairingApproveReq) => {
|
||||
return http.post(`/ai/agents/channel/pairing/approve`, req, TimeoutEnum.T_60S);
|
||||
return http.post(`/ai/agents/channel/pairing/approve`, req, TimeoutEnum.T_5M);
|
||||
};
|
||||
|
||||
@@ -168,6 +168,7 @@ const message = {
|
||||
uploadSuccess: 'Uploaded successfully',
|
||||
operateConfirm: 'To confirm, type: ',
|
||||
inputOrSelect: 'Select or enter',
|
||||
selectOne: 'Please select one {0}',
|
||||
copyFailed: 'Failed to copy',
|
||||
operatorHelper: 'Run "{1}" on "{0}". This cannot be undone. Continue?',
|
||||
notFound: 'Sorry, the page you requested does not exist.',
|
||||
|
||||
@@ -169,6 +169,7 @@ const message = {
|
||||
uploadSuccess: 'Carga completada correctamente',
|
||||
operateConfirm: 'Para confirmar, escribe: ',
|
||||
inputOrSelect: 'Selecciona o ingresa',
|
||||
selectOne: 'Selecciona un(a) {0}',
|
||||
copyFailed: 'Error al copiar',
|
||||
operatorHelper: 'Ejecuta "{1}" en "{0}". Esto no se puede deshacer. ¿Continuar?',
|
||||
notFound: 'Lo sentimos, la página que solicitó no existe.',
|
||||
|
||||
@@ -166,6 +166,7 @@ const message = {
|
||||
uploadSuccess: '正常にアップロードされました',
|
||||
operateConfirm: '操作について確信している場合は、手動で入力してください。',
|
||||
inputOrSelect: '選択または入力してください',
|
||||
selectOne: '{0}を1つ選択してください',
|
||||
copyFailed: 'コピーに失敗しました',
|
||||
operatorHelper: '操作「{1}」は「{0}」で実行され、元に戻すことはできません。続けたいですか?',
|
||||
notFound: '申し訳ありませんが、要求したページは存在しません。',
|
||||
|
||||
@@ -166,6 +166,7 @@ const message = {
|
||||
uploadSuccess: '업로드 성공',
|
||||
operateConfirm: '작업을 확인하려면 수동으로 입력하십시오: ',
|
||||
inputOrSelect: '선택하거나 입력해 주십시오',
|
||||
selectOne: '{0}을(를) 하나 선택해 주십시오',
|
||||
copyFailed: '복사 실패',
|
||||
operatorHelper: '"{0}"에 대해 "{1}" 작업이 수행되며 이 작업은 되돌릴 수 없습니다. 계속하시겠습니까?',
|
||||
notFound: '죄송합니다. 요청하신 페이지를 찾을 수 없습니다.',
|
||||
|
||||
@@ -166,6 +166,7 @@ const message = {
|
||||
uploadSuccess: 'Berjaya dimuat naik',
|
||||
operateConfirm: 'Jika anda pasti dengan operasi ini, sila masukkan secara manual: ',
|
||||
inputOrSelect: 'Sila pilih atau masukkan',
|
||||
selectOne: 'Sila pilih satu {0}',
|
||||
copyFailed: 'Gagal disalin',
|
||||
operatorHelper:
|
||||
'Operasi "{1}" akan dilakukan pada "{0}" dan tidak boleh diundur. Adakah anda mahu meneruskan?',
|
||||
|
||||
@@ -166,6 +166,7 @@ const message = {
|
||||
uploadSuccess: 'Enviado com sucesso',
|
||||
operateConfirm: 'Se você tem certeza da operação, insira-a manualmente: ',
|
||||
inputOrSelect: 'Por favor, selecione ou insira',
|
||||
selectOne: 'Selecione um(a) {0}',
|
||||
copyFailed: 'Falha ao copiar',
|
||||
operatorHelper: 'A operação "{1}" será realizada em "{0}" e não poderá ser desfeita. Deseja continuar?',
|
||||
notFound: 'Desculpe, a página solicitada não existe.',
|
||||
|
||||
@@ -166,6 +166,7 @@ const message = {
|
||||
uploadSuccess: 'Успешно загружено',
|
||||
operateConfirm: 'Если вы уверены в операции, введите её вручную: ',
|
||||
inputOrSelect: 'Пожалуйста, выберите или введите',
|
||||
selectOne: 'Пожалуйста, выберите один элемент: {0}',
|
||||
copyFailed: 'Не удалось скопировать',
|
||||
operatorHelper: 'Операция "{1}" будет выполнена над "{0}" и не может быть отменена. Хотите продолжить?',
|
||||
notFound: 'Извините, запрошенная страница не существует.',
|
||||
|
||||
@@ -169,6 +169,7 @@ const message = {
|
||||
uploadSuccess: 'Başarıyla yüklendi',
|
||||
operateConfirm: 'İşlemden eminseniz, lütfen manuel olarak girin: ',
|
||||
inputOrSelect: 'Lütfen seçin veya girin',
|
||||
selectOne: 'Lütfen bir {0} seçin',
|
||||
copyFailed: 'Kopyalama başarısız',
|
||||
operatorHelper:
|
||||
'"{0}" üzerinde "{1}" işlemi gerçekleştirilecek ve geri alınamaz. Devam etmek istiyor musunuz?',
|
||||
|
||||
@@ -165,6 +165,7 @@ const message = {
|
||||
uploadSuccess: '上傳成功',
|
||||
operateConfirm: '確認操作請輸入 ',
|
||||
inputOrSelect: '請選擇或輸入',
|
||||
selectOne: '請選擇一個{0}',
|
||||
copyFailed: '複製失敗',
|
||||
operatorHelper: '將對以下{0}進行{1}操作,是否繼續?',
|
||||
backupSuccess: '備份成功',
|
||||
|
||||
@@ -156,6 +156,7 @@ const message = {
|
||||
uploadSuccess: '上传成功',
|
||||
operateConfirm: '如果确认操作,请手动输入 ',
|
||||
inputOrSelect: '请选择或输入',
|
||||
selectOne: '请选择一个{0}',
|
||||
copyFailed: '复制失败',
|
||||
operatorHelper: '将对以下{0}进行 {1} 操作,是否继续?',
|
||||
backupSuccess: '备份成功',
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('commons.table.operate')" width="100" align="right">
|
||||
<template #default="{ $index }">
|
||||
<el-button link type="danger" @click="removeBinding($index)">
|
||||
<el-button link @click="removeBinding($index)">
|
||||
{{ $t('commons.button.delete') }}
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -51,6 +51,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button :disabled="loading || submitting" @click="handleClose">
|
||||
{{ $t('commons.button.cancel') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:loading="submitting"
|
||||
@@ -59,9 +62,6 @@
|
||||
>
|
||||
{{ $t('commons.button.bind') }}
|
||||
</el-button>
|
||||
<el-button :disabled="loading || submitting" @click="handleClose">
|
||||
{{ $t('commons.button.cancel') }}
|
||||
</el-button>
|
||||
</template>
|
||||
</DialogPro>
|
||||
</template>
|
||||
|
||||
@@ -224,7 +224,7 @@ const submit = async () => {
|
||||
await createAgentRole({
|
||||
agentId: agentId.value,
|
||||
name: form.name.trim(),
|
||||
model: form.model.trim(),
|
||||
model: form.model?.trim(),
|
||||
bindings: bindings.map((item) => ({
|
||||
channel: item.channel,
|
||||
accountId: item.accountId,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</el-popover>
|
||||
</template>
|
||||
<template #body>
|
||||
<el-scrollbar height="531px" class="moz-height">
|
||||
<el-scrollbar height="536px" class="moz-height">
|
||||
<div class="h-app-card" v-for="(app, index) in apps" :key="index">
|
||||
<el-row :gutter="5">
|
||||
<el-col :span="5" class="h-app-media-col">
|
||||
|
||||
Reference in New Issue
Block a user