Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

calls#create doesn't support squadOverrides parameter #3

Copy link
Copy link

Description

@siannopollo
Issue body actions

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

Reactions are currently unavailable

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.