Remove templating validation

This commit is contained in:
Clément Renault
2025-05-21 16:10:31 +02:00
parent 4d59fdb65d
commit 41220f786b

View File

@ -105,10 +105,10 @@ impl Prompt {
max_bytes, max_bytes,
}; };
// render template with special object that's OK with `doc.*` and `fields.*` // // render template with special object that's OK with `doc.*` and `fields.*`
this.template // this.template
.render(&template_checker::TemplateChecker) // .render(&template_checker::TemplateChecker)
.map_err(NewPromptError::invalid_fields_in_template)?; // .map_err(NewPromptError::invalid_fields_in_template)?;
Ok(this) Ok(this)
} }