Skip to content

Commit a2d6bfe

Browse files
committed
Fix
1 parent 44ee086 commit a2d6bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/llm/runner/text_llm_runner.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ class ET_EXPERIMENTAL TextLLMRunner : public IRunner {
119119
const std::string& prompt,
120120
ET_UNUSED int64_t start_pos,
121121
const GenerationConfig& config,
122-
std::function<void(const std::string&)> token_callback,
123-
std::function<void(const Stats&)> stats_callback) override {
122+
std::function<void(const std::string&)> token_callback = {},
123+
std::function<void(const Stats&)> stats_callback = {}) override {
124124
return generate(prompt, config, token_callback, stats_callback);
125125
}
126126

0 commit comments

Comments
 (0)