Skip to content

feat(generate): handle moderation chunks #209

feat(generate): handle moderation chunks

feat(generate): handle moderation chunks #209

Triggered via pull request October 24, 2023 11:28
Status Failure
Total duration 50s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

node.js.yml

on: pull_request
Matrix: build
Matrix: lint
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

11 errors
build (16.x): src/client/client.ts#L557
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#L559
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)
Process completed with exit code 1.
build (20.x)
The job was canceled because "_16_x" failed.
build (20.x)
The operation was canceled.
build (18.x)
The job was canceled because "_16_x" failed.
build (18.x): src/client/client.ts#L557
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#L559
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)
The operation was canceled.