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 `KurtOpenAI` adapter. #45

Closed jemc closed 1 week ago

jemc commented 1 week ago

This implements the new optional metadata field of the KurtResult interface to provide the total input and output tokens, as well as the system fingerprint string (used for checking whether determinism can be expected).

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

github-actions[bot] commented 1 week ago

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

The release is available on:

Your semantic-release bot :package::rocket: