I'm attempting to create an outbound call using the SDK, however I can't override the default voice of my squad since the Vapi::CallsClient#create method doesn't allow squad_overrides as a keyword parameter, nor does it add it to the request body. Our squads have a default voice, so any attempts to override using assistant_overrides don't appear to work. Here's a simple example:
client = ::Vapi::Client.new(token: '[API TOKEN]')
client.calls.create(
squad_id: 'abc-123-s', squad_overrides: {
provider: '11labs', voiceId: 'P7x743VjyZEOihNNygQ9', model: 'eleven_turbo_v2'
}, phone_number_id: 'abc-123-p', customer: {number: '+11231231234'}
)
=> ArgumentError:
unknown keyword: :squad_overrides
Aside from monkey-patching the SDK, this method needs to be updated to accept and use the squad_overrides parameter to conform to the documentation here: https://docs.vapi.ai/api-reference/calls/create
SDK version: 0.9.1
Ruby: 3.3.9
Rails: 7.2.2
I'm attempting to create an outbound call using the SDK, however I can't override the default voice of my squad since the
Vapi::CallsClient#createmethod doesn't allowsquad_overridesas a keyword parameter, nor does it add it to the request body. Our squads have a default voice, so any attempts to override usingassistant_overridesdon't appear to work. Here's a simple example:Aside from monkey-patching the SDK, this method needs to be updated to accept and use the
squad_overridesparameter to conform to the documentation here: https://docs.vapi.ai/api-reference/calls/createSDK version: 0.9.1
Ruby: 3.3.9
Rails: 7.2.2