Skip to content

Commit a5be778

Browse files
committed
Update
1 parent 2e4df29 commit a5be778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/llm/runner/text_llm_runner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Error TextLLMRunner::generate(
222222
const GenerationConfig& config,
223223
std::function<void(const std::string&)> token_callback,
224224
std::function<void(const Stats&)> stats_callback) {
225-
reset();
225+
pos_ = 0;
226226
return generate_from_pos(prompt, 0, config, token_callback, stats_callback);
227227
}
228228

0 commit comments

Comments
 (0)