fix: save convo messages, docsgpt provider format

This commit is contained in:
Alex
2024-11-19 16:22:58 +00:00
parent 250edf26a5
commit cce60ce101
2 changed files with 9 additions and 19 deletions

View File

@@ -141,17 +141,17 @@ def save_conversation(conversation_id, question, response, source_log_docs, llm)
"role": "assistant",
"content": "Summarise following conversation in no more than 3 "
"words, respond ONLY with the summary, use the same "
"language as the system \n\nUser: "
+ question
+ "\n\n"
+ "AI: "
+ response,
"language as the system",
},
{
"role": "user",
"content": "Summarise following conversation in no more than 3 words, "
"respond ONLY with the summary, use the same language as the "
"system",
"system \n\nUser: "
+ question
+ "\n\n"
+ "AI: "
+ response,
},
]