Skip to content

Broken AI Imports in prompt-input component #423

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions