Skip to content

fix: fix google safety category #803

fix: fix google safety category

fix: fix google safety category #803

Triggered via push December 16, 2024 08:08
Status Failure
Total duration 58s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
Deploy: src/agent/index.ts#L210
Type '{ category: string; threshold: string; }[]' is not assignable to type '{ category: "HARM_CATEGORY_UNSPECIFIED" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_CIVIC_INTEGRITY"; threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | ... 3 more ... | "BLOCK_NONE"; }[]'.
Deploy: src/agent/index.ts#L229
Type '{ category: string; threshold: string; }[]' is not assignable to type '{ category: "HARM_CATEGORY_UNSPECIFIED" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_CIVIC_INTEGRITY"; threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | ... 3 more ... | "BLOCK_NONE"; }[]'.
Deploy
Process completed with exit code 2.
Deploy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636