Skip to content

stop breaking the SDK/API #7

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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