Update LLM provider SDK npm packages #14848
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#L65
Unsafe member access .type on an `error` typed value
|
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)
|
Package (@apps/hash-ai-worker-ts):
apps/hash-ai-worker-ts/src/activities/shared/get-llm-response/get-anthropic-response.ts#L65
Unsafe assignment of an error typed value
|
Package (@apps/hash-ai-worker-ts):
apps/hash-ai-worker-ts/src/activities/shared/get-llm-response/get-anthropic-response.ts#L65
Unsafe assignment of an error typed value
|
Package (@apps/hash-ai-worker-ts):
apps/hash-ai-worker-ts/src/activities/shared/get-llm-response/get-anthropic-response.ts#L325
Unsafe return of a value of type error
|
Package (@apps/hash-ai-worker-ts):
apps/hash-ai-worker-ts/src/activities/shared/get-llm-response/get-anthropic-response.ts#L374
Unsafe assignment of an error typed value
|
Linting passed
Process completed with exit code 1.
|