rtfm-filemanager 4.06 → 4.08
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/bin/rtfm +3 -3
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02f1d2d2a71c7c7ee82e2fd412af8031d961a52175b9d55b77c66e31d315a76f
|
4
|
+
data.tar.gz: 4aa55879f54ef89075c7682ded5282d32e58891567201ad7e54fe79bbceb3b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 942a27d8446709d1cc7bf3d47137a2ac9c4790761d1efc243e0be37d6b5224dbd5f77c7cb7a9bcdc936369229d961ce81938f7b6571ba5e809aa11ad767f343f
|
7
|
+
data.tar.gz: f8e5ec7f8c7f496781b058a525cd8f4d685e467913cee3f35299ec8be65cee4ac63196995c782d7975f49422478b81b8bf466ad6b73f87bba94f85f7d09f0b3e
|
data/bin/rtfm
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
17
|
-
@version = "4.
|
17
|
+
@version = "4.08" # Fixed OpenAI interface, updated model to gpt-4o-mini
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -1410,8 +1410,8 @@ def openai # INTERFACE TO OPENAI
|
|
1410
1410
|
p += "Give a brief summary of its content: " + c unless File.directory?(@selected) and c == ""
|
1411
1411
|
|
1412
1412
|
begin
|
1413
|
-
response = client.
|
1414
|
-
text = "OpenAI description:\n" + response["choices"][0]["
|
1413
|
+
response = client.chat(parameters: { model: @aimodel, messages: [{ role: "user", content: p }], max_tokens: 400 })
|
1414
|
+
text = "OpenAI description:\n" + response["choices"][0]["message"]["content"]
|
1415
1415
|
rescue
|
1416
1416
|
text = "Error retrieving OpenAI request.\n\n"
|
1417
1417
|
text += "Check your connection and @ai secret key (in .rtfm.conf).\n\n"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '4.
|
4
|
+
version: '4.08'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -36,19 +36,18 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '7.4'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '7.4'
|
47
47
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
48
48
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
49
49
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
50
|
-
other features. New in 4.
|
51
|
-
''@'').'
|
50
|
+
other features. New in 4.08: Fixed OpenAI interface, updated model to gpt-4o-mini.'
|
52
51
|
email: g@isene.com
|
53
52
|
executables:
|
54
53
|
- rtfm
|