diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index aba87321f..74e6a8cb4 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -6,6 +6,7 @@ on: - main # 推送到main分支时触发 tags: - 'v*' # 推送v开头的tag时触发(例如v1.0.0) + workflow_dispatch: # 允许手动触发 jobs: build-and-push: @@ -13,6 +14,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub uses: docker/login-action@v3 @@ -25,6 +29,7 @@ jobs: with: context: . # Docker构建上下文路径 file: ./Dockerfile # Dockerfile路径 + platforms: linux/amd64,linux/arm64 # 支持arm架构 tags: | ${{ secrets.DOCKERHUB_USERNAME }}/maimbot:${{ github.ref_name }} ${{ secrets.DOCKERHUB_USERNAME }}/maimbot:latest diff --git a/src/plugins/chat/bot_config_toml b/src/plugins/chat/bot_config_toml index e82280a15..f51a7a4d8 100644 --- a/src/plugins/chat/bot_config_toml +++ b/src/plugins/chat/bot_config_toml @@ -11,9 +11,9 @@ qq = #填入你的机器人QQ nickname = "麦麦" [message] -min_text_length = 2 -max_context_size = 15 -emoji_chance = 0.2 +min_text_length = 2 # 与麦麦聊天时麦麦只会回答文本大于等于此数的消息 +max_context_size = 15 # 麦麦获得的上下文数量,超出数量后自动丢弃 +emoji_chance = 0.2 # 麦麦使用表情包的概率 [emoji] check_interval = 120 @@ -24,13 +24,13 @@ enable_pic_translate = true [response] -api_using = "siliconflow" -model_r1_probability = 0.8 -model_v3_probability = 0.1 -model_r1_distill_probability = 0.1 +api_using = "siliconflow" # 选择大模型API +model_r1_probability = 0.8 # 麦麦回答时选择R1模型的概率 +model_v3_probability = 0.1 # 麦麦回答时选择V3模型的概率 +model_r1_distill_probability = 0.1 # 麦麦回答时选择R1蒸馏模型的概率 [others] -enable_advance_output = false +enable_advance_output = false # 开启后输出更多日志,false关闭true开启 [groups] @@ -45,4 +45,4 @@ talk_frequency_down = [ ban_user_id = [ #禁止回复消息的QQ号 -] \ No newline at end of file +]