Custom Transcriber - Secret and Headers not worki...
# support
d
I'm creating a VAPI assistant using the Python SDK and setting the transcriber to a custom one. I'm passing both the secret and headers in the server field because I want to have a validation layer on my transcriber websocket. However, when I receive requests on my websocket, these are not included in the header. I need urgent assistance from support. https://cdn.discordapp.com/attachments/1329739141843255338/1329739141965152316/image_9.png?ex=678b6f94&is=678a1e14&hm=d595b363d2e72a908350fb8d8e05cb10f4f7aba239194d7c81f01635ae230587& https://cdn.discordapp.com/attachments/1329739141843255338/1329739142250106991/image_10.png?ex=678b6f94&is=678a1e14&hm=05eb2ca63510695045a61e475c6435f543d9d1911267250a5ceec72c26cdc527&
@User
Above I sent a print with a part of the assistant update patch request json; and the headers that I'm receiving on my websocket
v
@Diogo Gonçalves I'm here to help! When you're setting up your custom transcriber and want to include additional headers for validation, you need to ensure that these headers are properly configured in your VAPI assistant settings. The headers should not be passed in the server field. Instead, they should be set up in the configuration where you specify your transcriber options. If you're using the Python SDK, you'll want to make sure that you're including the headers in the appropriate section of your code that deals with the transcriber setup. Here's a general outline of what the code might look like:
Copy code
python
from vapi import VAPI

# Initialize your VAPI client
client = VAPI(secret_key='your_secret_key')

# Set up your transcriber with the necessary headers
transcriber_settings = {
    'provider': 'your_custom_provider',
    'model': 'your_custom_model',
    'headers': {
        'Your-Custom-Header': 'header_value',
        # Add other headers as needed
    }
}

# Apply the transcriber settings to your assistant
assistant = client.create_assistant(transcriber=transcriber_settings)
Make sure that you replace
'your_custom_provider'
,
'your_custom_model'
,
'Your-Custom-Header'
, and
'header_value'
with the actual values you intend to use. If you've already done this and the headers are still not being passed correctly, there might be an issue with how the VAPI service is handling your request or a bug in the SDK. In that case, please ask support for more info on this, and they can provide you with further assistance.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
d
Please help when possible @User @User
s
@Diogo Gonçalves could you please share a recent call id so I could take a look?
d
yes, here it goes: Call id: "0d0af496-d67a-443f-85ef-740b2a5c71d9"; Assistant ID: "e7054676-067b-46d9-98eb-cdca0f907e70"
s
@Diogo Gonçalves Created the ticket for this, will let you know about the udpates.
d
Ok, thanks for it. Please keep me in the loop as it is a blocker for a release of a feature we are currently working
@Shubham Bajaj if possible, could you provide an ETA for this fix? just to manage expectations as it's quite a blocker on my end
s
@Diogo Gonçalves As of know the ETA is end of this month.
d
Ok, keep me posted pls, thanks!
s
@Diogo Gonçalves can you try now, the enhancement has been released to PROD.
d
Perfect! it's working as expected!
s
Thanks for confirming! We're super happy to hear that everything's working as it should. If you have any more questions or need further help, just tag me!
3 Views