Skip to content

Commit 6d46126

Browse files
committed
ux: Fine-tune LLM timeout delays
1 parent 30a7b3c commit 6d46126

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ Conversation options are represented as features. They can be configured from Ap
472472

473473
| Name | Description | Type | Default |
474474
|-|-|-|-|
475-
| `answer_hard_timeout_sec` | The hard timeout for the bot answer in secs. | `int` | 60 |
476-
| `answer_soft_timeout_sec` | The soft timeout for the bot answer in secs. | `int` | 30 |
475+
| `answer_hard_timeout_sec` | Time waiting the LLM before aborting the answer with an error message. | `int` | 40 |
476+
| `answer_soft_timeout_sec` | Time waiting the LLM before sending a waiting message. | `int` | 15 |
477477
| `callback_timeout_hour` | The timeout for a callback in hours. Set 0 to disable. | `int` | 3 |
478478
| `phone_silence_timeout_sec` | Amount of silence in secs to trigger a warning message from the assistant. | `int` | 20 |
479479
| `recognition_retry_max` | TThe maximum number of retries for voice recognition. Minimum of 1. | `int` | 3 |

app/helpers/features.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@
1717

1818
async def answer_hard_timeout_sec() -> int:
1919
"""
20-
The hard timeout for the bot answer in secs.
20+
Time waiting the LLM before aborting the answer with an error message.
2121
"""
2222
return await _default(
23-
default=60,
23+
default=40,
2424
key="answer_hard_timeout_sec",
2525
type_res=int,
2626
)
2727

2828

2929
async def answer_soft_timeout_sec() -> int:
3030
"""
31-
The soft timeout for the bot answer in secs.
31+
Time waiting the LLM before sending a waiting message.
3232
"""
3333
return await _default(
34-
default=30,
34+
default=15,
3535
key="answer_soft_timeout_sec",
3636
type_res=int,
3737
)

cicd/bicep/app.bicep

+2-2
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,8 @@ resource assignmentAppConfigurationDataReader 'Microsoft.Authorization/roleAssig
949949

950950
resource configValues 'Microsoft.AppConfiguration/configurationStores/keyValues@2023-03-01' = [
951951
for item in items({
952-
answer_hard_timeout_sec: 180
953-
answer_soft_timeout_sec: 30
952+
answer_hard_timeout_sec: 40
953+
answer_soft_timeout_sec: 15
954954
callback_timeout_hour: 3
955955
phone_silence_timeout_sec: 20
956956
recognition_retry_max: 2

0 commit comments

Comments
 (0)