dinja 1.3.0 copy "dinja: ^1.3.0" to clipboard
dinja: ^1.3.0 copied to clipboard

Jinja engine for Hugging Face and GGUF LLM chat templates: messages, tools, generation prompts. Parity-tested against llama.cpp and Jinja2. All platforms, including web and Wasm.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dinja

With Flutter:

 $ flutter pub add dinja

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dinja: ^1.3.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dinja/dinja.dart';
1
likes
160
points
24k
downloads

Documentation

API reference

Publisher

verified publisherleehack.com

Weekly Downloads

Jinja engine for Hugging Face and GGUF LLM chat templates: messages, tools, generation prompts. Parity-tested against llama.cpp and Jinja2. All platforms, including web and Wasm.

Repository (GitHub)
View/report issues

Topics

#jinja #template #llm #chat-templates #huggingface

License

MIT (license)

Dependencies

meta

More

Packages that depend on dinja