fix: 🐛 llamacpp fix indexing max_tokens

This commit is contained in:
Nate Sesti 2023-09-02 11:52:16 -07:00
parent af4944c80c
commit 90590ab4e0

View file

@ -71,7 +71,7 @@ class LlamaCpp(LLM):
self.model,
with_history,
self.context_length,
args["max_tokens"],
args["n_predict"] if "n_predict" in args else 1024,
prompt,
functions=args.get("functions", None),
system_message=self.system_message,