Replace system role message
In UserTurnCompletionMixin, use a developer role message for LLM messages following an incomplete turn
This commit is contained in:
@@ -292,7 +292,7 @@ class UserTurnCompletionLLMServiceMixin:
|
|||||||
|
|
||||||
# Push through pipeline to trigger LLM response
|
# Push through pipeline to trigger LLM response
|
||||||
await self.push_frame(
|
await self.push_frame(
|
||||||
LLMMessagesAppendFrame(messages=[{"role": "system", "content": prompt}])
|
LLMMessagesAppendFrame(messages=[{"role": "developer", "content": prompt}])
|
||||||
)
|
)
|
||||||
await self.push_frame(LLMRunFrame())
|
await self.push_frame(LLMRunFrame())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user