code.oscarkilo.com/klex-git

Hash:
5f22c1d17e0c8357b5aa706bca1924fb70d2e90f
Author:
Igor Naverniouk <[email protected]>
Date:
Thu Apr 10 14:12:45 2025 -0700
Message:
bug fix
diff --git a/one/README.md b/one/README.md
index 24d2ea0..3b9ee0c 100644
--- a/one/README.md
+++ b/one/README.md
@@ -2,21 +2,23 @@

Before running this script, create a `klex.json` file in the
root of your git repo, and run this command once:
+
```back
go get oscarkilo.com/klex-git
```

Hello world example:
+
```bash
go run oscarkilo.com/klex-git/one <<EOF
{
"model": "Any big LLM",
"messages": [{
"role": "user",
- "content": {
+ "content": [{
"type": "text",
"text": "Who played Hotel California in Lebowski?"
- }
+ }]
}]
}
EOF
a/one/README.md
b/one/README.md
1
## one: runs an LLM on one input
1
## one: runs an LLM on one input
2
2
3
Before running this script, create a `klex.json` file in the
3
Before running this script, create a `klex.json` file in the
4
root of your git repo, and run this command once:
4
root of your git repo, and run this command once:
5
5
```back
6
```back
6
go get oscarkilo.com/klex-git
7
go get oscarkilo.com/klex-git
7
```
8
```
8
9
9
Hello world example:
10
Hello world example:
11
10
```bash
12
```bash
11
go run oscarkilo.com/klex-git/one <<EOF
13
go run oscarkilo.com/klex-git/one <<EOF
12
{
14
{
13
"model": "Any big LLM",
15
"model": "Any big LLM",
14
"messages": [{
16
"messages": [{
15
"role": "user",
17
"role": "user",
16
"content": {
18
"content": [{
17
"type": "text",
19
"type": "text",
18
"text": "Who played Hotel California in Lebowski?"
20
"text": "Who played Hotel California in Lebowski?"
19
}
21
}]
20
}]
22
}]
21
}
23
}
22
EOF
24
EOF
23
```
25
```