Skip to content

tsc fails over uploads.ts #1534

Closed
Closed
@ValorHeart

Description

@ValorHeart

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

✖ tsc --noEmit -p tsconfig.json:
node_modules/openai/src/internal/uploads.ts(174,26): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'object'.
husky - pre-commit script failed (code 1)

To Reproduce

  1. Install sdk 5.1.1
  2. run tsc

Code snippets

OS

macos

Node version

node v22.11.0

Library version

5.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions