Skip to content

Commit f24906a

Browse files
committed
added utilities module to repo - can translate old turbo schema to new ones
1 parent af66705 commit f24906a

File tree

12 files changed

+937
-18
lines changed

12 files changed

+937
-18
lines changed

Diff for: .gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ dist
99
*storybook.log
1010
__pycache__
1111
**/*/credentials/*
12-
!**/*/credentials/.keep
12+
/utils/**/output/*
13+
/utils/**/input/*
14+
!**/*/.keep
1315
*/tsconfig.tsbuildinfo

Diff for: common/morphisms/pipeline.ts

+16-16
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const uuid = (): string => v4();
88
type ClaimMap = Record<string, schema.Claim>;
99
type SourceMap = Record<string, schema.Source>;
1010

11-
function mulberry32(a) {
11+
function mulberry32(a: number) {
1212
return function () {
1313
let t = (a += 0x6d2b79f5);
1414
t = Math.imul(t ^ (t >>> 15), t | 1);
@@ -210,21 +210,21 @@ export const getReportDataObj = (
210210
});
211211
};
212212

213-
const buildStageData: schema.PipelineStepData = {
214-
temperature: 0,
215-
batchSize: 0,
216-
tokenCount: {
217-
sent: 0,
218-
received: 0,
219-
total: 0,
220-
},
221-
costPerToken: {
222-
denomination: "$",
223-
value: 0,
224-
},
225-
model: "claude-instant-v1",
226-
instructions: "",
227-
};
213+
// const buildStageData: schema.PipelineStepData = {
214+
// temperature: 0,
215+
// batchSize: 0,
216+
// tokenCount: {
217+
// sent: 0,
218+
// received: 0,
219+
// total: 0,
220+
// },
221+
// costPerToken: {
222+
// denomination: "$",
223+
// value: 0,
224+
// },
225+
// model: "claude-instant-v1",
226+
// instructions: "",
227+
// };
228228

229229
const getReportMetaData = (
230230
pipelineOutput: schema.LLMPipelineOutput,

Diff for: common/schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// import { getNClaims } from "./morphisms";
2-
import { object, z } from "zod";
2+
import { z } from "zod";
33

44
/** VVVVVVVVVVVVVVVVVVVVVVVVVVVVV */
55
/********************************

0 commit comments

Comments
 (0)