mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
Merge 515ccb2c64 into 281656b960
This commit is contained in:
commit
81804fd229
4 changed files with 8 additions and 6 deletions
|
|
@ -46,14 +46,14 @@ class UserIdleHandler:
|
|||
|
||||
if self._retry_count == 1:
|
||||
message = {
|
||||
"role": "user",
|
||||
"role": "system",
|
||||
"content": "The user has been quiet. Politely and briefly ask if they're still there in the language that the user has been speaking so far.",
|
||||
}
|
||||
await aggregator.push_frame(LLMMessagesAppendFrame([message], run_llm=True))
|
||||
return
|
||||
|
||||
message = {
|
||||
"role": "user",
|
||||
"role": "system",
|
||||
"content": "The user has been quiet. We will be disconnecting the call now. Wish them a good day in the language that the user has been speaking so far.",
|
||||
}
|
||||
await aggregator.push_frame(LLMMessagesAppendFrame([message], run_llm=True))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue