Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running the function calling example: Cannot find global function mlc.serve.BNFGrammarGetGrammarOfJSON #367

Open
m0o0scar opened this issue Apr 18, 2024 · 3 comments

Comments

@m0o0scar
Copy link

What's the issue?

The following error is thrown when running the function calling example:

index.js:2883 Uncaught (in promise) Error: Cannot find global function mlc.serve.BNFGrammarGetGrammarOfJSON
    at Instance.getGlobalFuncInternal (index.js:2883:23)
    at Instance.getGlobalFunc (index.js:2870:25)
    at new GrammarFactory (grammar.ts:31:11)
    at new LLMChatPipeline (llm_chat.ts:99:27)
    at Engine.<anonymous> (engine.ts:210:21)
    at Generator.next (<anonymous>)
    at fulfilled (tslib.es6.js:118:58)

How to reproduce?

  1. Clone the latest code;
  2. cd examples/function-calling;
  3. npm i && npm start;
  4. Visit localhost:8888 on browser and wait until the model done loading;
  5. Check console to see the error.
@CharlieFRuan
Copy link
Contributor

CharlieFRuan commented Apr 18, 2024

Function calling is a WIP and will be updated soon! Apologies for the inconvenience. All other examples should be working and feel free to try them out

@m0o0scar
Copy link
Author

Cool, thanks for the reply, Charlie 👍 Is there a rough estimate of when the update will be released? Thanks.

@CharlieFRuan
Copy link
Contributor

This weekend / early next week!

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

No branches or pull requests

2 participants