jack hai 3 semanas
pai
achega
3f257dc8bf
Modificáronse 2 ficheiros con 8 adicións e 4 borrados
  1. 4 0
      app/core/runner/thread_runner.py
  2. 4 4
      docker-compose.yml

+ 4 - 0
app/core/runner/thread_runner.py

@@ -289,6 +289,10 @@ class ThreadRunner:
                 self.event_handler.pub_run_step_completed(new_run_step)
                 return True
         else:
+            if response_msg.content == "":
+                response_msg.content = (
+                    '[{"text": {"value": "", "annotations": []}, "type": "text"}]'
+                )
             # 无 tool call 信息,message 生成结束,更新状态
             new_message = MessageService.modify_message_sync(
                 session=self.session,

+ 4 - 4
docker-compose.yml

@@ -37,7 +37,7 @@ services:
       DB_DATABASE: open_assistant1
       DB_USER: open_assistant
       DB_PASSWORD: 123456
-      DB_POOL_SIZE: 20
+      DB_POOL_SIZE: 1000
       DB_POOL_RECYCLE: 3600
 
       # redis
@@ -65,7 +65,7 @@ services:
       R2R_BASE_URL: http://r2r:7272
       R2R_USERNAME: xujiawei@cocorobo.cc
       R2R_PASSWORD: usestudio-1
-      R2R_SEARCH_LIMIT: 20
+      R2R_SEARCH_LIMIT: 10
 
       # secret
       APP_AES_ENCRYPTION_KEY: 7700b2f9c8dd982dfaddf8b47a92f1d900507ee8ac335f96a64e9ca0f018b195
@@ -104,7 +104,7 @@ services:
       DB_DATABASE: open_assistant1
       DB_USER: open_assistant
       DB_PASSWORD: 123456
-      DB_POOL_SIZE: 20
+      DB_POOL_SIZE: 1000
       DB_POOL_RECYCLE: 3600
 
       # redis
@@ -147,7 +147,7 @@ services:
       R2R_BASE_URL: http://r2r:7272
       R2R_USERNAME: xujiawei@cocorobo.cc
       R2R_PASSWORD: usestudio-1
-      R2R_SEARCH_LIMIT: 20 # secret
+      R2R_SEARCH_LIMIT: 10 # secret
       APP_AES_ENCRYPTION_KEY: 7700b2f9c8dd982dfaddf8b47a92f1d900507ee8ac335f96a64e9ca0f018b195
 
     depends_on: