apexive / apexive/odoo-llm

[16.0] llm_thread refactor

未关闭
#137 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
219
派生
159
PR 合并指标
30 天内没有已合并 PR

描述

LLM thread should format messages for the model before sending it to chat and control the sequence, so we need to get rid of _prepare_chat_params's system_prompt=None, prepend_messages=None as this should be controlled by the llm_thread in case of templating filtering and so on.

the model should expose format_messages() or actually we have a formatter on mail.message already

LLM thread methods need to be reviewed which are public and which are private and named consistently e.g.

call_assistant
call_tool and so

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。