pwn 0.4.964 → 0.4.965
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/open_ai.rb +2 -2
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41378d77a58d82591118f63b8f7df14211ac41d27ed99fe741327e2cb4558201
|
|
4
|
+
data.tar.gz: '0530129feb6364ed467ebf572c31c3176f2fbe7f03535ce6a890d0e275158c05'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96d4333a4485cfededef8b7eb92e4c10f7a02147ab864c920fa477860212b423f407b2d7598d005c58c1abd97e133a71a8dc6de51cab8a1edd111e3db346ea02
|
|
7
|
+
data.tar.gz: 33136903d54c041b1256a320ccb2e2b1d147a9f63566a290970fff728db6650fabf2ebff8b4f7c9f86ce7e5c95f212dd6b1253c7a1bf8ed43ba0ccd613305257
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ $ cd /opt/pwn
|
|
|
37
37
|
$ ./install.sh
|
|
38
38
|
$ ./install.sh ruby-gem
|
|
39
39
|
$ pwn
|
|
40
|
-
pwn[v0.4.
|
|
40
|
+
pwn[v0.4.965]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.3.0@pwn
|
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
|
53
53
|
$ gem install --verbose pwn
|
|
54
54
|
$ pwn
|
|
55
|
-
pwn[v0.4.
|
|
55
|
+
pwn[v0.4.965]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
If you're using a multi-user install of RVM do:
|
|
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.0@pwn
|
|
|
62
62
|
$ rvmsudo gem uninstall --all --executables pwn
|
|
63
63
|
$ rvmsudo gem install --verbose pwn
|
|
64
64
|
$ pwn
|
|
65
|
-
pwn[v0.4.
|
|
65
|
+
pwn[v0.4.965]:001 >>> PWN.help
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
|
data/lib/pwn/plugins/open_ai.rb
CHANGED
|
@@ -352,7 +352,7 @@ module PWN
|
|
|
352
352
|
{ type: 'text', text: request },
|
|
353
353
|
{
|
|
354
354
|
type: 'image_url',
|
|
355
|
-
|
|
355
|
+
image_url: { url: "data:image/jpeg;base64,#{base64_encoded_img}" }
|
|
356
356
|
}
|
|
357
357
|
]
|
|
358
358
|
}
|
|
@@ -363,7 +363,7 @@ module PWN
|
|
|
363
363
|
# TODO: Include max_tokens when sending chat requests
|
|
364
364
|
http_body = {
|
|
365
365
|
model: model,
|
|
366
|
-
messages: [],
|
|
366
|
+
messages: [system_role],
|
|
367
367
|
temperature: temp
|
|
368
368
|
}
|
|
369
369
|
|
data/lib/pwn/version.rb
CHANGED