vercel / modelfusion

The TypeScript library for building AI applications.
https://modelfusion.dev
MIT License
1.01k stars 76 forks source link

Fix convertJsonSchemaToGBNF export #232

Closed mloenow closed 6 months ago

mloenow commented 6 months ago

Hi,

I'm getting the following error at the moment:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/PROJECT_PATH/node_modules/.pnpm/modelfusion@0.119.0/node_modules/modelfusion/model-provider/llamacpp/convertJsonSchemaToGBNF' imported from /PROJECT_PATH/node_modules/.pnpm/modelfusion@0.119.0/node_modules/modelfusion/model-provider/llamacpp/LlamaCppGrammars.js
    at finalizeResolution (node:internal/modules/esm/resolve:255:11)
    at moduleResolve (node:internal/modules/esm/resolve:908:10)
    at defaultResolve (node:internal/modules/esm/resolve:1121:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///PROJECT_PATH/node_modules/.pnpm/modelfusion@0.119.0/node_modules/modelfusion/model-provider/llamacpp/convertJsonSchemaToGBNF'
}

I haven't checked the rest of the repo for similar issues 🙂

lgrammel commented 6 months ago

Thanks!! I need to set up a linter for this

mloenow commented 6 months ago

That was fast! Awesome project by the way 🤩

lgrammel commented 6 months ago

Thank you! Appreciate your contribution!

Release w/ fix: https://github.com/lgrammel/modelfusion/releases/tag/v0.119.1

mloenow commented 6 months ago

Just took it for a spin - no issues 👌