Merge pull request #1489 from hdkiller/remove-please-from-prompts

Remove please from prompts
This commit is contained in:
Richard Beales
2023-04-15 18:45:05 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -192,7 +192,7 @@ def create_message(chunk, question):
"""Create a message for the user to summarize a chunk of text""" """Create a message for the user to summarize a chunk of text"""
return { return {
"role": "user", "role": "user",
"content": f'"""{chunk}""" Using the above text, please answer the following' "content": f'"""{chunk}""" Using the above text, answer the following'
f' question: "{question}" -- if the question cannot be answered using the' f' question: "{question}" -- if the question cannot be answered using the'
" text, please summarize the text.", " text, summarize the text.",
} }

View File

@@ -126,7 +126,7 @@ def create_message(chunk: str, question: str) -> Dict[str, str]:
""" """
return { return {
"role": "user", "role": "user",
"content": f'"""{chunk}""" Using the above text, please answer the following' "content": f'"""{chunk}""" Using the above text, answer the following'
f' question: "{question}" -- if the question cannot be answered using the text,' f' question: "{question}" -- if the question cannot be answered using the text,'
" please summarize the text.", " summarize the text.",
} }