mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test: expand talk config contract fixtures
This commit is contained in:
@@ -7,22 +7,26 @@
|
||||
"expectedSelection": {
|
||||
"provider": "elevenlabs",
|
||||
"normalizedPayload": true,
|
||||
"voiceId": "voice-resolved"
|
||||
"voiceId": "voice-resolved",
|
||||
"apiKey": "resolved-key"
|
||||
},
|
||||
"talk": {
|
||||
"resolved": {
|
||||
"provider": "elevenlabs",
|
||||
"config": {
|
||||
"voiceId": "voice-resolved"
|
||||
"voiceId": "voice-resolved",
|
||||
"apiKey": "resolved-key"
|
||||
}
|
||||
},
|
||||
"provider": "elevenlabs",
|
||||
"providers": {
|
||||
"elevenlabs": {
|
||||
"voiceId": "voice-normalized"
|
||||
"voiceId": "voice-normalized",
|
||||
"apiKey": "normalized-key"
|
||||
}
|
||||
},
|
||||
"voiceId": "voice-legacy"
|
||||
"voiceId": "voice-legacy",
|
||||
"apiKey": "legacy-key"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -77,12 +81,63 @@
|
||||
"expectedSelection": {
|
||||
"provider": "elevenlabs",
|
||||
"normalizedPayload": false,
|
||||
"voiceId": "voice-legacy"
|
||||
"voiceId": "voice-legacy",
|
||||
"apiKey": "legacy-key"
|
||||
},
|
||||
"talk": {
|
||||
"voiceId": "voice-legacy",
|
||||
"apiKey": "xxxxx"
|
||||
}
|
||||
}
|
||||
],
|
||||
"timeoutCases": [
|
||||
{
|
||||
"id": "integer_timeout_kept",
|
||||
"fallback": 700,
|
||||
"expectedTimeoutMs": 1500,
|
||||
"talk": {
|
||||
"silenceTimeoutMs": 1500
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "integer_like_double_timeout_kept",
|
||||
"fallback": 700,
|
||||
"expectedTimeoutMs": 1500,
|
||||
"talk": {
|
||||
"silenceTimeoutMs": 1500.0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "zero_timeout_falls_back",
|
||||
"fallback": 700,
|
||||
"expectedTimeoutMs": 700,
|
||||
"talk": {
|
||||
"silenceTimeoutMs": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "boolean_timeout_falls_back",
|
||||
"fallback": 700,
|
||||
"expectedTimeoutMs": 700,
|
||||
"talk": {
|
||||
"silenceTimeoutMs": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "string_timeout_falls_back",
|
||||
"fallback": 700,
|
||||
"expectedTimeoutMs": 700,
|
||||
"talk": {
|
||||
"silenceTimeoutMs": "1500"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fractional_timeout_falls_back",
|
||||
"fallback": 700,
|
||||
"expectedTimeoutMs": 700,
|
||||
"talk": {
|
||||
"silenceTimeoutMs": 1500.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user