Skip to content

I cannot build my Typescript project when using v3.0.0 #349

@vlamanna

Description

@vlamanna

Issue description

I cannot build my Typescript project when using v3.0.0

Expected Behavior

My project build.

Actual Behavior

I'm getting the following error:

node_modules/node-llama-cpp/dist/chatWrappers/Llama3_1ChatWrapper.d.ts:12:72 - error TS2339: Property '_specialTokensTextForPreamble' does not exist on type '{ cuttingKnowledgeDate?: string | number | Date | (() => Date) | null | undefined; todayDate?: string | number | Date | (() => Date) | null | undefined; noToolInstructions?: boolean | undefined; }'.

12     constructor({ cuttingKnowledgeDate, todayDate, noToolInstructions, _specialTokensTextForPreamble }?: {

It was fine when I was using the beta version.

Steps to reproduce

  • Install package in a Typescript project
  • Build the project

My Environment

Dependency Version
Operating System MacOS
CPU Apple M1
Node.js version 20.16.0
Typescript version 5.5.2
node-llama-cpp version 3.0.0

Additional Context

I have a PR ready that I will push shortly.

Relevant Features Used

  • Metal support
  • CUDA support
  • Vulkan support
  • Grammar
  • Function calling

Are you willing to resolve this issue by submitting a Pull Request?

Yes, I have the time, and I know how to start.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions