Skip to content

Conversation

@Gryundig
Copy link

No description provided.

…wn' is not assignable to type 'WithRequestID<T>'."
@Gryundig Gryundig requested a review from a team as a code owner January 12, 2025 02:00
@RobertCraigie RobertCraigie changed the base branch from master to next January 13, 2025 13:41
@RobertCraigie RobertCraigie changed the title fix "node_modules/openai/src/core.ts:72:5 - error TS2322: Type 'unknown' is not assignable to type 'WithRequestID<T>'." fix(types): avoid unknown not assignable error Jan 13, 2025
@RobertCraigie
Copy link
Collaborator

@Gryundig thanks for the PR but it's worth noting that you should only run into this if you're importing from the src directory, which is only there for better auto complete.

e.g.

import 'openai/src';

@RobertCraigie
Copy link
Collaborator

Going to close this due to the above comment.

@Gryundig
Copy link
Author

Hi! I imported the library like this:

import OpenAI from 'openai';

And I still got a compilation error in the specified location. I would still like that location to be fixed, as it is clearly a recently introduced problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants