You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,9 @@ steps:
65
65
var3: |
66
66
Lorem Ipsum
67
67
Hello World
68
+
file_input: |
69
+
var4: ./path/to/long-text.txt
70
+
var5: ./path/to/config.json
68
71
```
69
72
70
73
#### Simple prompt.yml example
@@ -116,7 +119,9 @@ jsonSchema: |-
116
119
```
117
120
118
121
Variables in prompt.yml files are templated using `{{variable}}` format and are
119
-
supplied via the `input` parameter in YAML format.
122
+
supplied via the `input` parameter in YAML format. Additionally, you can
123
+
provide file-based variables via `file_input`, where each key maps to a file
124
+
path.
120
125
121
126
### Using a system prompt file
122
127
@@ -197,6 +202,7 @@ the action:
197
202
| `prompt` | The prompt to send to the model | N/A |
198
203
| `prompt-file` | Path to a file containing the prompt (supports .txt and .prompt.yml formats). If both `prompt` and `prompt-file` are provided, `prompt-file` takes precedence | `""` |
199
204
| `input` | Template variables in YAML format for .prompt.yml files (e.g., `var1: value1` on separate lines) | `""` |
205
+
| `file_input` | Template variables in YAML where values are file paths. The file contents are read and used for templating | `""` |
200
206
| `system-prompt` | The system prompt to send to the model | `"You are a helpful assistant"` |
201
207
| `system-prompt-file` | Path to a file containing the system prompt. If both `system-prompt` and `system-prompt-file` are provided, `system-prompt-file` takes precedence | `""` |
202
208
| `model` | The model to use for inference. Must be available in the [GitHub Models](https://github.com/marketplace?type=models) catalog | `openai/gpt-4o` |
0 commit comments