Repository navigation
The first non-beta release of @statsig/statsig-ai. It has everything in 0.0.1-beta.34, plus the change below.
Breaking changes
EvalHooksgains a requiredreportTokensmember. Code that builds anEvalHooksobject by hand, for example to unit-test a task, has to pass it.
Improvements
Eval()times each record's task and sends the result aslatencyMs. Tasks can callreportTokens({ inputTokens, outputTokens })from their hooks to send token totals; each call adds to the record's totals. A record whose task throws sends neither.Eval()also returnslatencyMs,inputTokensandoutputTokenson each result, andEvalTokenUsageis exported.
Docs
- The README no longer has a beta notice, and it has a new "Latency and tokens" section.
Included In This Release
- maggiepizzo - feat: send latency and tokens with eval results (SSLABS-930) (#124)
Full Changelog: 0.0.1-beta.34...1.0.0