Moved context and evaluation options to LlamaContext, LlamaContext's evaluate function, and LlamaChatSession's prompt function while supporting the existing interface. This way the API is better aligned with llama.cpp while preserving compatibility with existing projects that use the old interface.
Fixes #57
Pull-Request Checklist
[x] Code is up-to-date with the master branch
[x] npm run format to apply eslint formatting
[x] npm run test passes with this change
[x] This pull request links relevant issues as Fixes #0000
[ ] There are new or updated unit tests validating the change
[x] Documentation has been updated to reflect this change
[x] The new commits and pull request title follow conventions explained in CONTRIBUTING.md (PRs that do not follow this convention will not be merged)
Description of change
llama.cpp
interfaceLlamaContext
,LlamaContext
'sevaluate
function, andLlamaChatSession
'sprompt
function while supporting the existing interface. This way the API is better aligned withllama.cpp
while preserving compatibility with existing projects that use the old interface.Fixes #57
Pull-Request Checklist
master
branchnpm run format
to apply eslint formattingnpm run test
passes with this changeFixes #0000