FIX: Return base prompt instead of nil (#106)

This commit is contained in:
Roman Rizzi 2023-07-13 21:48:25 -03:00 committed by GitHub
parent d692ecc7de
commit 473732c18a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ module DiscourseAi
]
base_prompt += "Don't use more than 400 words.\n" unless opts[:single_chunk]
base_prompt
end
def completion(prompt)