Skip to content

stop breaking the SDK/APIΒ #7

@Hades32

Description

@Hades32

Your way of adding things to the API is not fully backwards compatible and breaks simple call listing.

E.g. we hit this Yesterday when using v0.6.0

error in vapiClient.Calls.Get: {\"cost\":0,\"type\":\"knowledge-base\",\"model\":{\"model\":\"gemini-1.5-flash\",\"provider\":\"google\"},\"promptTokens\":0,\"completionTokens\":0} cannot be deserialized as a *api.CallCostsItem

And I just updated to v0.6.3 and looking at the code I don't see this type being supported either.

Just change the deserialization code to ignore unknown types

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