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
+11
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,13 @@ $ yolox "add 100px white padding around dots.png and save it as dots-with-room.p
29
29
# convert dots.png -bordercolor white -border 100 dots-with-room.png
30
30
```
31
31
32
+
You can also pass a file containing the prompt. This lets you write long prompts and iterate on them without retyping:
33
+
34
+
```
35
+
echo "do some stuff" > PROMPT.md
36
+
$ yolox PROMPT.md
37
+
```
38
+
32
39
## Caution
33
40
34
41
This tool should be used with caution. It's called "YOLO X" because it's dangerous. **yolo** as in "you only live once" and *x* as in "execute this code". It lets an AI write code for you, then blindly executes that code on your system. There are a few guardrails in its prompt to prevent the result from taking destructive actions like deleting files or directories, but there's always still a danger that the resulting commands will have unintended consequences. You've been warned!
@@ -47,6 +54,10 @@ npx yolox@latest "use ffmpeg to convert foo.mkv to foo.mp4"
yolox supports [GPT4o](https://openai.com/index/hello-gpt-4o/) on OpenAI and [Llama 3](https://replicate.com/meta/meta-llama-3-70b-instruct) on Replicate.
51
62
52
63
To add support for other models or providers, [open a pull request](https://github.com/zeke/yolox/issues)!
0 commit comments