pwn 0.4.608 → 0.4.609

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5701ac1fc25623a9994b67165973d28989585ad0dc0ede0c90727d0cd58e8129
4
- data.tar.gz: a688dc9fad3e2a32f46a1cef10a4034992954f27b2523214d6674baadddeed6a
3
+ metadata.gz: d266f62ccaadca3ce9efa5c9e1b66ca621588abf5fc69da139627518a4dd5424
4
+ data.tar.gz: 01540ec202be3300c1201fa1850003fc70e432174173ab61689e450b3dcdb02b
5
5
  SHA512:
6
- metadata.gz: 8bfea4bf2d06ef518cf6af85f46b460f7b7015550cfed6881817c6439355506e256fc3f7e140035bd32f4fe8912a72388b68c748ef0fc484e547bab811b09c6e
7
- data.tar.gz: 23e229d93d46e4e38a586d5a435277e24726aef672230478c18f5395f6d25cda701870414bd53db9d39eaa274af718a67cc3871addff65a72171118fba6c8648
6
+ metadata.gz: 2302c33df731deac43e9e70c37836f908ca68dcee42257052b69cdd9d6826d088640709883357ff9d00c3fadfc1e9f6f39ca2b72a95feda32150c9d910d6cb56
7
+ data.tar.gz: bef4e8c1d3cd6c38c580d113ce3f4bc47cfec0ea93673a3062256202d2fcaaae2359b01adc314f677c525ef40cecc60222b08e1363d2be6b6fb9814a75e0c2a7
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.0@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.608]:001 >>> PWN.help
40
+ pwn[v0.4.609]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.0@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.608]:001 >>> PWN.help
55
+ pwn[v0.4.609]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -96,7 +96,7 @@ module PWN
96
96
  # request: 'required - message to ChatGPT'
97
97
  # model: 'optional - model to use for text generation (defaults to text-davinci-003)',
98
98
  # temp: 'optional - creative response float (deafults to 0)',
99
- # max_tokens: 'optional - integer (defaults to 3_072)'
99
+ # max_tokens: 'optional - integer (defaults to 4_097 - request.length || 300)'
100
100
  # )
101
101
 
102
102
  public_class_method def self.chat_gpt(opts = {})
@@ -108,7 +108,7 @@ module PWN
108
108
  temp = 0 unless temp.positive?
109
109
  max_tokens = opts[:max_tokens].to_i
110
110
  max_tokens = 4_097 - request.to_s.length
111
- max_tokens = 3_072 unless max_tokens.positive?
111
+ max_tokens = 300 unless max_tokens.positive?
112
112
 
113
113
  rest_call = 'completions'
114
114
 
@@ -184,7 +184,7 @@ module PWN
184
184
  request: 'required - message to ChatGPT',
185
185
  model: 'optional - model to use for text generation (defaults to text-davinci-003)',
186
186
  temp: 'optional - creative response float (deafults to 0)',
187
- max_tokens: 'optional - integer (deafults to 3_072)'
187
+ max_tokens: 'optional - integer (deafults to 4_097 - request.length || 300)'
188
188
  )
189
189
 
190
190
  response = #{self}.img_gen(
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.608'
4
+ VERSION = '0.4.609'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.608
4
+ version: 0.4.609
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.