Golang SDK Broken
The Golang SDK fails to list calls / assistants because of unmarshaling errors.
for listing assistants I get this error:
and for calls:
for listing assistants I get this error:
and for calls:
json: cannot unmarshal string into Go struct field .embed.startSpeakingPlan.smartEndpointingEnabled of type map[string]interface {} {"cost":0,"type":"knowledge-base","model":{"model":"gemini-1.5-flash","provider":"google"},"promptTokens":0,"completionTokens":0} cannot be deserialized as a *api.CallCostsItemsmartEndpointingEnabled field in the startSpeakingPlan configuration. The SDK is expecting this field to be a map (map[string]interface{}), but it's receiving a string value instead.smartEndpointingEnabled should actually be a boolean value (true or false), not a map. The suggested solution is to explicitly set this field to a boolean value in your configuration:smartEndpointingEnabled might only work for English transcriptions, so if you're using a different language, setting it to false might be necessary.api.CallCostsItem struct. This might be related to recent changes in the call cost information structure.call.costs[type=vapi].subType to determine if a VAPI cost is normal or an overage. This change could be affecting the deserialization if the SDK hasn't been updated to handle the new structure.⤵️ Mention @Vapi Support Bot for follow-ups 🐥
embed.startSpeakingPlan.smartEndpointingEnabled and api.CallCostsItemsmartEndpointingEnabledsmartEndpointingEnabledsmartEndpointingEnabledstartSpeakingPlanmap[string]interface{}api.CallCostsItemapi.CallCostsItemcall.costs[type=vapi].subTypenormaloverageembed.startSpeakingPlan.smartEndpointingEnabled"startSpeakingPlan": {
"waitSeconds": 0.8,
"smartEndpointingEnabled": false
}"startSpeakingPlan": {
"smartEndpointingEnabled": true,
"waitSeconds": 0.8
}