MCPcopy
hub / github.com/OpenPipe/OpenPipe / typedFineTune

Function typedFineTune

app/src/types/dbColumns.types.ts:110–115  ·  view source on GitHub ↗
(
  input: T,
)

Source from the content-addressed store, hash-verified

108// TODO: fix the passThroughNulls type from utils.ts to work with generics and
109// wrap this with that for better ergonomics.
110export function typedFineTune<T extends Pick<FineTune, "baseModel" | "provider">>(
111 input: T,
112): Omit<T, "baseModel" | "provider" | "trainingConfig" | "trainingConfigOverrides"> &
113 z.infer<typeof fineTuneSchema> {
114 return fineTuneSchema.parse(input);
115}
116
117export type TypedFineTune = ReturnType<typeof typedFineTune<FineTune>>;
118

Callers 12

calculateUsageFunction · 0.90
benchmarkMModelsFunction · 0.90
v1Api.router.tsFile · 0.90
generateEntryFunction · 0.90
trainOpenaiFineTuneFunction · 0.90
trainModalFineTuneFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected