minor fix to read ... complete is just confusing

This commit is contained in:
Sam Saffron 2024-04-26 15:17:58 +10:00
parent c61af76d86
commit acd3ac2371
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ module DiscourseAi
name: "post_number",
description: "the post number to read",
type: "integer",
required: true,
required: false,
},
],
}
@ -74,7 +74,7 @@ module DiscourseAi
# 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