From 626199bec4b43be1571f1135d6e52311bc9f5df2 Mon Sep 17 00:00:00 2001 From: Vladimir Kalnitsky Date: Wed, 13 Nov 2024 01:31:55 +0400 Subject: [PATCH] Add examples for [:MODEL] --- python/examples/model-change.metaprompt | 5 +++++ python/examples/whoami.metaprompt | 1 + 2 files changed, 6 insertions(+) create mode 100644 python/examples/model-change.metaprompt create mode 100644 python/examples/whoami.metaprompt diff --git a/python/examples/model-change.metaprompt b/python/examples/model-change.metaprompt new file mode 100644 index 0000000..0756d0d --- /dev/null +++ b/python/examples/model-change.metaprompt @@ -0,0 +1,5 @@ +1. I am [:use ./whoami] - default +2. I am [:use ./whoami :MODEL=gpt-4o] - override MODEL in a submodule +3. I am [:use ./whoami] - the model hasn't changed +4. I am [:MODEL=gpt-4o][:use ./whoami] - change current model in this module +5. I am [:use ./whoami] - the model stays the same until the end of the file. diff --git a/python/examples/whoami.metaprompt b/python/examples/whoami.metaprompt new file mode 100644 index 0000000..b8779f1 --- /dev/null +++ b/python/examples/whoami.metaprompt @@ -0,0 +1 @@ +[:MODEL] \ No newline at end of file