Skip to content

Broken AI Imports in prompt-input component #423

@indranildeveloper

Description

@indranildeveloper

The component prompt-input is broken because of the types which we are getting from ai package.

import type { ChatStatus, FileUIPart, SourceDocumentUIPart } from "ai";

Error I get:

Module '"ai"' has no exported member 'ChatStatus'.
'"ai"' has no exported member named 'FileUIPart'. Did you mean 'FilePart'?
Module '"ai"' has no exported member 'SourceDocumentUIPart'.

Looks like the ai package has changed. Need help to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions