feat(generate): handle moderation chunks #208
Annotations
14 errors
build (18.x):
src/client/client.ts#L555
Argument of type 'ErrorCallback | DataCallback<GenerateOutput> | DataCallback<GenerateOutput | null>' is not assignable to parameter of type 'Callback<objectOutputType<{ generated_text: ZodString; generated_token_count: ZodNumber; input_token_count: ZodNumber; stop_reason: ZodEnum<["NOT_FINISHED", "MAX_TOKENS", ... 5 more ..., "ERROR"]>; }, ZodTypeAny, "passthrough">>'.
|
build (18.x):
src/client/client.ts#L557
Type 'Promise<objectOutputType<{ generated_text: ZodString; generated_token_count: ZodNumber; input_token_count: ZodNumber; stop_reason: ZodEnum<["NOT_FINISHED", "MAX_TOKENS", ... 5 more ..., "ERROR"]>; }, ZodTypeAny, "passthrough">> | Promise<...>[]' is not assignable to type 'void | TypedReadable<GenerateOutput> | Promise<GenerateOutput> | Promise<GenerateOutput>[]'.
|
build (18.x):
src/langchain/llm.ts#L146
Type '{ generated_text: string; stop_reason: "NOT_FINISHED"; input_token_count: number; generated_token_count: number; }' is not assignable to type 'GenerateOutput'.
|
build (18.x)
Process completed with exit code 1.
|
build (20.x)
The job was canceled because "_18_x" failed.
|
build (20.x):
src/client/client.ts#L555
Argument of type 'ErrorCallback | DataCallback<GenerateOutput> | DataCallback<GenerateOutput | null>' is not assignable to parameter of type 'Callback<objectOutputType<{ generated_text: ZodString; generated_token_count: ZodNumber; input_token_count: ZodNumber; stop_reason: ZodEnum<["NOT_FINISHED", "MAX_TOKENS", ... 5 more ..., "ERROR"]>; }, ZodTypeAny, "passthrough">>'.
|
build (20.x):
src/client/client.ts#L557
Type 'Promise<objectOutputType<{ generated_text: ZodString; generated_token_count: ZodNumber; input_token_count: ZodNumber; stop_reason: ZodEnum<["NOT_FINISHED", "MAX_TOKENS", ... 5 more ..., "ERROR"]>; }, ZodTypeAny, "passthrough">> | Promise<...>[]' is not assignable to type 'void | TypedReadable<GenerateOutput> | Promise<GenerateOutput> | Promise<GenerateOutput>[]'.
|
build (20.x):
src/langchain/llm.ts#L146
Type '{ generated_text: string; stop_reason: "NOT_FINISHED"; input_token_count: number; generated_token_count: number; }' is not assignable to type 'GenerateOutput'.
|
build (20.x)
Process completed with exit code 1.
|
build (16.x)
The job was canceled because "_18_x" failed.
|
build (16.x):
src/client/client.ts#L555
Argument of type 'ErrorCallback | DataCallback<GenerateOutput> | DataCallback<GenerateOutput | null>' is not assignable to parameter of type 'Callback<objectOutputType<{ generated_text: ZodString; generated_token_count: ZodNumber; input_token_count: ZodNumber; stop_reason: ZodEnum<["NOT_FINISHED", "MAX_TOKENS", ... 5 more ..., "ERROR"]>; }, ZodTypeAny, "passthrough">>'.
|
build (16.x):
src/client/client.ts#L557
Type 'Promise<objectOutputType<{ generated_text: ZodString; generated_token_count: ZodNumber; input_token_count: ZodNumber; stop_reason: ZodEnum<["NOT_FINISHED", "MAX_TOKENS", ... 5 more ..., "ERROR"]>; }, ZodTypeAny, "passthrough">> | Promise<...>[]' is not assignable to type 'void | TypedReadable<GenerateOutput> | Promise<GenerateOutput> | Promise<GenerateOutput>[]'.
|
build (16.x):
src/langchain/llm.ts#L146
Type '{ generated_text: string; stop_reason: "NOT_FINISHED"; input_token_count: number; generated_token_count: number; }' is not assignable to type 'GenerateOutput'.
|
build (16.x)
The operation was canceled.
|