Skip to content

calls#create doesn't support squadOverrides parameter #3

@siannopollo

Description

@siannopollo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions