fix: react prompts (#2537)
This commit is contained in:
@@ -44,6 +44,7 @@ struct TemplateContext {
|
||||
model_name: Option<String>,
|
||||
memory: Option<String>,
|
||||
todos: Option<String>,
|
||||
enable_fastapply: Option<bool>,
|
||||
}
|
||||
|
||||
// Given the file name registered after add, the context table in Lua, resulted in a formatted
|
||||
@@ -72,6 +73,7 @@ fn render(state: &State, template: &str, context: TemplateContext) -> LuaResult<
|
||||
model_name => context.model_name,
|
||||
memory => context.memory,
|
||||
todos => context.todos,
|
||||
enable_fastapply => context.enable_fastapply,
|
||||
})
|
||||
.map_err(LuaError::external)
|
||||
.unwrap())
|
||||
|
||||
Reference in New Issue
Block a user