Skip to content

Commit

Permalink
minor fix to read ... complete is just confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Apr 26, 2024
1 parent a8edaa6 commit 0dcc6ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ai_bot/tools/read.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.signature
name: "post_number",
description: "the post number to read",
type: "integer",
required: true,
required: false,
},
],
}
Expand Down Expand Up @@ -74,7 +74,7 @@ def invoke(_bot_user, llm)
# TODO: 16k or 100k models can handle a lot more tokens
content = llm.tokenizer.truncate(content, 1500).squish

result = { topic_id: topic_id, content: content, complete: true }
result = { topic_id: topic_id, content: content }
result[:post_number] = post_number if post_number
result
end
Expand Down

0 comments on commit 0dcc6ef

Please sign in to comment.