Skip to content

Commit

Permalink
ux: Fine-tune LLM timeout delays
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Jan 21, 2025
1 parent 30a7b3c commit 6d46126
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ Conversation options are represented as features. They can be configured from Ap

| Name | Description | Type | Default |
|-|-|-|-|
| `answer_hard_timeout_sec` | The hard timeout for the bot answer in secs. | `int` | 60 |
| `answer_soft_timeout_sec` | The soft timeout for the bot answer in secs. | `int` | 30 |
| `answer_hard_timeout_sec` | Time waiting the LLM before aborting the answer with an error message. | `int` | 40 |
| `answer_soft_timeout_sec` | Time waiting the LLM before sending a waiting message. | `int` | 15 |
| `callback_timeout_hour` | The timeout for a callback in hours. Set 0 to disable. | `int` | 3 |
| `phone_silence_timeout_sec` | Amount of silence in secs to trigger a warning message from the assistant. | `int` | 20 |
| `recognition_retry_max` | TThe maximum number of retries for voice recognition. Minimum of 1. | `int` | 3 |
Expand Down
8 changes: 4 additions & 4 deletions app/helpers/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@

async def answer_hard_timeout_sec() -> int:
"""
The hard timeout for the bot answer in secs.
Time waiting the LLM before aborting the answer with an error message.
"""
return await _default(
default=60,
default=40,
key="answer_hard_timeout_sec",
type_res=int,
)


async def answer_soft_timeout_sec() -> int:
"""
The soft timeout for the bot answer in secs.
Time waiting the LLM before sending a waiting message.
"""
return await _default(
default=30,
default=15,
key="answer_soft_timeout_sec",
type_res=int,
)
Expand Down
4 changes: 2 additions & 2 deletions cicd/bicep/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -949,8 +949,8 @@ resource assignmentAppConfigurationDataReader 'Microsoft.Authorization/roleAssig

resource configValues 'Microsoft.AppConfiguration/configurationStores/keyValues@2023-03-01' = [
for item in items({
answer_hard_timeout_sec: 180
answer_soft_timeout_sec: 30
answer_hard_timeout_sec: 40
answer_soft_timeout_sec: 15
callback_timeout_hour: 3
phone_silence_timeout_sec: 20
recognition_retry_max: 2
Expand Down

0 comments on commit 6d46126

Please sign in to comment.