ChatLunaLab / chatluna

多平台模型接入,可扩展,多种输出格式,提供大语言模型聊天服务的插件 | A bot plugin for LLM chat services with multi-model integration, extensibility, and various output formats
https://chatluna.chat
GNU Affero General Public License v3.0
181 stars 25 forks source link

[Bug] Author's Note未能触发 #291

Closed N0VI028 closed 2 weeks ago

N0VI028 commented 2 weeks ago

在预设中设置Author's Note时,log中没有出现内容,实际回答也没有起效,调整插入的三个设置项也没有变化,写法如下:

keywords:
    - chatgpt
    - gpt

prompts:
    - role: system
      content: |-
          You are ChatGPT, a large language model trained by OpenAI.
          Knowledge cutoff: 2021-09
          Current date: {date}

author_notes:
  - content: "你需要先输出“五”,再进行回答"
    insertPosition: 'in_chat'
    insertDepth: 0
    insertionFrequency: 1

版本是1.0.0-beta.109

dingyi222666 commented 2 weeks ago

6c39943564d856abd0ea64cbe50437d5

N0VI028 commented 2 weeks ago

感谢,另外,作者注释能否也支持占位符?现在使用{user}会报错TypeError: Cannot read properties of undefined (reading 'user')

dingyi222666 commented 2 weeks ago

过几天我看看

---原始邮件--- 发件人: @.> 发送时间: 2024年10月27日(周日) 凌晨0:13 收件人: @.>; 抄送: @.>;"State @.>; 主题: Re: [ChatLunaLab/chatluna] [Bug] Author's Note未能触发 (Issue #291)

感谢,另外,作者注释能否也支持占位符?现在使用{user}会报错TypeError: Cannot read properties of undefined (reading 'user')

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

dingyi222666 commented 2 weeks ago

弄上了,等新版本就支持了