You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: extract function calling syntax from a Jinja template (#444)
* feat: extract function calling syntax from a Jinja template
* feat: Full support for Qwen and QwQ via `QwenChatWrapper`
* feat: export a `llama` instance getter on a model instance
* fix: better handling for function calling with empty parameters
* fix: reranking edge case crash
* fix: limit the context size by default in the node-typescript template
* fix: adapt to breaking `llama.cpp` changes
* fix: bump min nodejs version to 20
* fix: better husky setup
* fix: `defineChatSessionFunction` type
* docs: troubleshooting function calling when using `JinjaTemplateChatWrapper`
* docs: fix the command to scaffold a new Electron project
* docs: debugging a native crash on Linux
* test: make `LlamaText` snapshots more readable
* chore: update modules
### Function Calling Issues With [`JinjaTemplateChatWrapper`](../api/classes/JinjaTemplateChatWrapper.md) {#troubleshoot-jinja-function-calling-issues}
414
+
If function calling doesn't work well (or at all) with a model you're trying to use,
415
+
and the [chat wrapper](./chat-wrapper.md) used by your [`LlamaChatSession`](../api/classes/LlamaChatSession.md)
416
+
is a [`JinjaTemplateChatWrapper`](../api/classes/JinjaTemplateChatWrapper.md)
417
+
(you can check that by accessing [`.chatWrapper`](../api/classes/LlamaChatSession.md#chatwrapper)),
418
+
you can try to force it to not use the function calling template defined in the Jinja template.
419
+
420
+
Doing this can help you achieve better function calling performance with some models.
421
+
422
+
To do this, create your [`LlamaChatSession`](../api/classes/LlamaChatSession.md) like this:
0 commit comments