mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-06 11:00:48 +00:00
Fix up for newer models on reset context. This fixes the model from totally failing after a reset context.
This commit is contained in:
@@ -38,7 +38,7 @@ void LLModel::prompt(const std::string &prompt,
|
||||
}
|
||||
|
||||
// tokenize the prompt
|
||||
std::vector<Token> embd_inp = tokenize(prompt);
|
||||
std::vector<Token> embd_inp = tokenize(promptCtx, prompt);
|
||||
|
||||
// save the context size
|
||||
promptCtx.n_ctx = contextLength();
|
||||
|
Reference in New Issue
Block a user