Skip to content

BindingError: Expected null or instance of VectorInt, got an instance of VectorInt #689

@starpit

Description

@starpit

Hello. Great project! I am running into the following error. upcastPointer does a !== on the desired and actual pointer classes... And finds they are not equal. But, as you can see from the error message, the pointer class names do match. Strange?

BindingError: Expected null or instance of VectorInt, got an instance of VectorInt
    at throwBindingError (@mlc-ai_web-llm.js?v=d602f331:17655:17)
    at upcastPointer (@mlc-ai_web-llm.js?v=d602f331:18022:15)
    at RegisteredPointer.nonConstNoSmartPtrRawPointerToWireType [as toWireType] (@mlc-ai_web-llm.js?v=d602f331:18122:21)
    at Object.vecIntToView (@mlc-ai_web-llm.js?v=d602f331:18344:59)
    at Tokenizer2.encode (@mlc-ai_web-llm.js?v=d602f331:19625:29)
    at LLMChatPipeline.getInputData (@mlc-ai_web-llm.js?v=d602f331:14706:40)
    at LLMChatPipeline.<anonymous> (@mlc-ai_web-llm.js?v=d602f331:14255:36)
    at Generator.next (<anonymous>)
    at @mlc-ai_web-llm.js?v=d602f331:2255:67
    at new Promise (<anonymous>)

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