mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-11 01:16:25 +00:00
extensions update
This commit is contained in:
parent
60b4258532
commit
370b190c0e
3 changed files with 5 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ class RenameChat(Extension):
|
|||
try:
|
||||
# prepare history
|
||||
history_text = self.agent.history.output_text()
|
||||
ctx_length = int(self.agent.config.utility_model.ctx_length * 0.7)
|
||||
ctx_length = int(self.agent.config.utility_model.ctx_length * 0.3)
|
||||
history_text = tokens.trim_to_tokens(history_text, ctx_length, "start")
|
||||
# prepare system and user prompt
|
||||
system = self.agent.read_prompt("fw.rename_chat.sys.md")
|
||||
Loading…
Add table
Add a link
Reference in a new issue