Q128: every model call of a run is recorded with its purpose and listed in the run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1f484df894
commit
6afd7bef2a
25 files changed
+189
-22
No files matched your search
@@ -22,7 +22,7 @@ describe("usage settlement", () => {
|
||||
const store = new ProviderRequestStore(connection.db);
|
||||
const call = () => store.create({
|
||||
orgId, provider: provider as never, model: "claude", workspaceId: null, promptSha256: "sha", inputCharCount: 40,
|
||||
executionMode: PROVIDER_EXECUTION_MODE.FOREGROUND, createdAt: new Date().toISOString(),
|
||||
executionMode: PROVIDER_EXECUTION_MODE.FOREGROUND, createdAt: new Date().toISOString(), purpose: "manual",
|
||||
});
|
||||
const priced = call();
|
||||
store.settleUsage({
|
||||
|
||||
Reference in new issue
Block a user