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
Replace -i flag with positional argument syntax throughout:
- README.md and prompts/trickery_readme.md
- docs/images.md and docs/image-generation.md
- specs/text-input.md
- All test case files
- src/main.rs help examples
Positional is now the preferred syntax, with -i kept for
backwards compatibility only.
You can use trickery with any OpenAI-compatible API gateway (like LiteLLM, Azure OpenAI, or local models) by setting the `OPENAI_BASE_URL` environment variable:
37
+
38
+
```sh
39
+
export OPENAI_API_KEY=your-key
40
+
export OPENAI_BASE_URL=http://localhost:4000/v1
41
+
trickery generate ./prompts/my_prompt.md
32
42
```
33
43
34
44
Input file could be any text file, with Jinja2-like template variables, like `{{"{{app_version}}"}}`. To set this variables, please use `-v` flag, like `-v app_version=1.0.0`.
Input file could be any text file, with Jinja2-like template variables, like `{{"{{app_version}}"}}`. To set this variables, please use `-v` flag, like `-v app_version=1.0.0`.
Copy file name to clipboardExpand all lines: specs/text-input.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,20 @@
2
2
3
3
## Abstract
4
4
5
-
Trickery's input supports both file paths and direct text, with auto-detection. If the provided value exists as a file, it reads from the file; otherwise, it treats the value as direct prompt text. Input can be provided as a positional argument or with the `-i` flag.
5
+
Trickery's input supports both file paths and direct text, with auto-detection. If the provided value exists as a file, it reads from the file; otherwise, it treats the value as direct prompt text. Input is typically provided as a positional argument.
0 commit comments