FormulaMonks / kurt

A wrapper for AI SDKs, for building LLM-agnostic structured AI applications in Typescript
MIT License
2 stars 0 forks source link

feat: add usage/fingerprint metadata to `KurtResult` for `KurtVertexAI` adapter #46

Closed jemc closed 3 months ago

jemc commented 3 months ago

This implements the new optional metadata field of the KurtResult interface to provide the total input and output tokens. Note that no system fingerprint is available from Vertex AI's Gemini API, so that is omitted here. If it ever becomes available, we can add it.

Note that this commit involves regenerating all the test snapshots because we are now capturing and relying on more from the upstream Vertex AI responses.

github-actions[bot] commented 3 months ago

:tada: This PR is included in version @formula-monks/kurt-vertex-ai-v1.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: