perf: 升级okr, ai

This commit is contained in:
weifashi 2024-01-10 01:20:54 +08:00
parent f380b0433d
commit 24d90b93e2
4 changed files with 6 additions and 4 deletions

View File

@ -995,7 +995,7 @@ class ApproveController extends AbstractController
return WebSocketDialogMsg::sendMsg($msg_action, $dialog->id, 'text', ['text' => $text], $botUser->userid, false, false, true);
}
// 查找最后一条消息msg_id
$msg_action = 'update-' . $toUser['msg_id'];
$msg_action = 'change-' . $toUser['msg_id'];
}
//
try {

View File

@ -380,6 +380,7 @@ class BotReceiveMsgTask extends AbstractTask
'openai_agency' => $setting['openai_agency'],
'openai_model' => $setting['openai_model'],
'server_url' => $serverUrl,
'chunk_size' => 7,
];
if (empty($extras['openai_key'])) {
$error = 'Robot disabled.';

View File

@ -169,7 +169,7 @@ services:
ai:
container_name: "dootask-ai-${APP_ID}"
image: "kuaifan/dooai:0.0.8"
image: "kuaifan/dooai:0.0.9"
networks:
extnetwork:
ipv4_address: "${APP_IPPR}.12"
@ -177,7 +177,7 @@ services:
okr:
container_name: "dootask-okr-${APP_ID}"
image: "kuaifan/doookr:0.0.27"
image: "kuaifan/doookr:0.0.28"
environment:
TZ: "${TIMEZONE:-PRC}"
DOO_TASK_URL: "http://${APP_IPPR}.3"

View File

@ -1135,7 +1135,8 @@ export default {
watch: {
'$route': {
handler({name, params}) {
handler(data) {
const { name, params } = data || {}
if (name != 'manage-messenger') {
return
}