FIX: openai prompt was incorrect for explain (#262)

There is no "Human" role in openai, the blank assistant is not
needed
This commit is contained in:
Sam 2023-10-24 16:36:28 +11:00 committed by GitHub
parent 0e5764617a
commit 683f8fd4cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -140,7 +140,7 @@ CompletionPrompt.seed do |cp|
cp.provider = "openai"
cp.name = "explain"
cp.prompt_type = CompletionPrompt.prompt_types[:text]
cp.messages = [{ role: "Human", content: <<~TEXT }, { role: "Assistant", content: "" }]
cp.messages = [{ role: "system", content: <<~TEXT }]
You are a helpful assistant. Act as a tutor explaining terms to a student in a specific
context. Reply with a paragraph with a brief explanation about what the term means in the
content provided, format the response using markdown. Reply only with the explanation and