Skip to content

Missing Type From the Inference Package #584

@abdel-17

Description

@abdel-17

In the types of the @huggingface/inference package, the textGeneration function is declared as follows

export function textGeneration(
    args: BaseArgs & TextGenerationInput,
    options?: Options
): Promise<TextGenerationOutput>;

But the TextGenerationOutput type is missing from the file, so the return type is inferred as any by TypeScript.

In the source code, the TextGenerationOutput type is imported from this file in a separate package, which does correctly have the type, so this is likely an issue with the build step.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions