new_conversation_history.append("\nThis conversation has some context from earlier, which has been summarized as follows: ")
new_conversation_history.append(
"\nThis conversation has some context from earlier, which has been summarized as follows: "
)
new_conversation_history.append(summarized_text)
new_conversation_history.append("\nContinue the conversation, paying very close attention to things Human told you, such as their name, and personal details.\n")
new_conversation_history.append(
"\nContinue the conversation, paying very close attention to things Human told you, such as their name, and personal details.\n"
)
# Get the last entry from the user's conversation history
raiseValueError("Summarize threshold cannot be greater than 4000 or less than 800!")
raiseValueError(
"Summarize threshold cannot be greater than 4000 or less than 800!"
)
self._summarize_threshold=value
@property
@ -292,9 +294,11 @@ class Model:
SendsasummaryrequesttotheOpenAIAPI
"""
summary_request_text=[]
summary_request_text.append("The following is a conversation instruction set and a conversation"
" between two people named Human, and GPTie. Do not summarize the instructions for GPTie, only the conversation. Summarize the conversation in a detailed fashion. If Human mentioned their name, be sure to mention it in the summary. Pay close attention to things the Human has told you, such as personal details.")
summary_request_text.append(prompt+"\nDetailed summary of conversation: \n")
summary_request_text.append(
"The following is a conversation instruction set and a conversation"
" between two people named Human, and GPTie. Do not summarize the instructions for GPTie, only the conversation. Summarize the conversation in a detailed fashion. If Human mentioned their name, be sure to mention it in the summary. Pay close attention to things the Human has told you, such as personal details."
)
summary_request_text.append(prompt+"\nDetailed summary of conversation: \n")