Skip to content

Update LLM provider SDK npm packages #14848

Update LLM provider SDK npm packages

Update LLM provider SDK npm packages #14848

Triggered via pull request January 29, 2025 00:25
Status Failure
Total duration 21m 36s
Artifacts

lint.yml

on: pull_request
Matrix: Package
Linting passed
5s
Linting passed
Fit to window
Zoom out
Zoom in

Annotations

21 errors
Package (@apps/hash-ai-worker-ts)
Argument of type '{ model: string; metadata?: (Record<string, string> | null) | undefined; stream?: boolean | null | undefined; user?: string | undefined; n?: number | null | undefined; messages: LlmMessage[]; tools?: LlmToolDefinition<...>[] | undefined; ... 26 more ...; trimMessageAtIndex?: number | undefined; }' is not assignable to parameter of type 'LlmParams'.
Package (@apps/hash-ai-worker-ts)
Cannot find module '@anthropic-ai/sdk/resources/messages' or its corresponding type declarations.
Package (@apps/hash-ai-worker-ts)
@apps/hash-ai-worker-ts#lint:tsc: command (/home/runner/work/hash/hash/apps/hash-ai-worker-ts) /opt/hostedtoolcache/node/22.13.0/x64/bin/yarn run lint:tsc exited (2)
Package (@apps/hash-ai-worker-ts)
Conversion of type 'Message & { _request_id?: string | null | undefined; }' to type 'AnthropicMessagesCreateResponse' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Package (@apps/hash-ai-worker-ts)
Cannot find module '@anthropic-ai/sdk/resources/messages' or its corresponding type declarations.
Package (@apps/hash-ai-worker-ts)
Cannot find module '@anthropic-ai/sdk/resources/messages' or its corresponding type declarations.
Package (@apps/hash-ai-worker-ts)
Parameter 'content' implicitly has an 'any' type.
Package (@apps/hash-ai-worker-ts)
Parameter 'block' implicitly has an 'any' type.
Package (@apps/hash-ai-worker-ts)
Parameter 'content' implicitly has an 'any' type.
Package (@apps/hash-ai-worker-ts)
Process completed with exit code 2.
Package (@apps/hash-ai-worker-ts): apps/hash-ai-worker-ts/src/activities/flow-activities/research-entities-action/shared/deduplicate-entities.ts#L104
"gpt-3.5-turbo-1106" | "gpt-4-0125-preview" | "gpt-4-turbo" | "gpt-4" | "gpt-4o-2024-08-06" | "gpt-4o-mini-2024-07-18" is overridden by string in this union type
Package (@apps/hash-ai-worker-ts): apps/hash-ai-worker-ts/src/activities/shared/get-llm-response/anthropic-client.ts#L30
This assertion is unnecessary since it does not change the type of the expression
Package (@apps/hash-ai-worker-ts): apps/hash-ai-worker-ts/src/activities/shared/get-llm-response/anthropic-client.ts#L71
'Message' is an 'error' type that acts as 'any' and overrides all other types in this union type
Package (@apps/hash-ai-worker-ts): apps/hash-ai-worker-ts/src/activities/shared/get-llm-response/anthropic-client.ts#L148
Unsafe argument of type error typed assigned to a parameter of type `MessageCreateParamsNonStreaming`
Package (@apps/hash-ai-worker-ts)
@apps/hash-ai-worker-ts#lint:eslint: command (/home/runner/work/hash/hash/apps/hash-ai-worker-ts) /opt/hostedtoolcache/node/22.13.0/x64/bin/yarn run lint:eslint exited (1)
Linting passed
Process completed with exit code 1.