From 32d92c27d5473f96f2e8219894787a160b673b85 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Tue, 2 Jul 2024 05:15:27 +0200 Subject: [PATCH] fix for https://github.com/microsoft/genaiscript/issues/562 --- docs/src/content/docs/reference/scripts/variables.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/content/docs/reference/scripts/variables.md b/docs/src/content/docs/reference/scripts/variables.md index 61a08b2809..134d23f031 100644 --- a/docs/src/content/docs/reference/scripts/variables.md +++ b/docs/src/content/docs/reference/scripts/variables.md @@ -11,6 +11,9 @@ The `env.vars` object contains a set of variable values. You can use these varia ```javascript // grab locale from variable or default to en-US const locale = env.vars.locale || "en-US" +// conditionally modify prompt +if (env.vars.explain) + $`Explain your reasoning` ``` ### Script parameters