openai-term 2.2 → 3.0.1
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/openai +5 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5149ece8753a5a8ea0eb4a1fd22ef8d94c8a24393377a26b97ad34ba253d04eb
|
4
|
+
data.tar.gz: 3986c94d8ca984a3618685ca0fe22564872a67096d56734d6a65704eaacfbeb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76e5e2c1aa675d107551e88d872249387854583b9c1a4b31f8dea43788428a22c1aaa6af112892bb6cc72531e661362a133cc97e90b38500d838066b9cbd6c86
|
7
|
+
data.tar.gz: 8656cf58972c66d8731c09fae0a612b4eda0136522297bf1bcc996b37cc267b990bc6aa696dbb9d56aed2239a83260bf75bbf8300c71dc07bbe025ae1690f8c8
|
data/bin/openai
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# A modern TUI for interacting with OpenAI's API
|
6
6
|
|
7
7
|
require 'optparse'
|
8
|
-
require '
|
8
|
+
require 'openai'
|
9
9
|
require 'rcurses'
|
10
10
|
require 'json'
|
11
11
|
require 'fileutils'
|
@@ -19,7 +19,7 @@ CONFIG_FILE = File.join(Dir.home, '.openai.conf')
|
|
19
19
|
HISTORY_FILE = File.join(Dir.home, '.openai_history.json')
|
20
20
|
DEFAULT_MODEL = "gpt-4-turbo-preview"
|
21
21
|
DEFAULT_MAX_TOKENS = 2048
|
22
|
-
VERSION = "
|
22
|
+
VERSION = "3.0.1"
|
23
23
|
|
24
24
|
# Global variables
|
25
25
|
@model = DEFAULT_MODEL
|
@@ -914,6 +914,9 @@ def main
|
|
914
914
|
return
|
915
915
|
end
|
916
916
|
|
917
|
+
# Initialize rcurses (required for rcurses 6.0.0+)
|
918
|
+
Rcurses.init!
|
919
|
+
|
917
920
|
load_history
|
918
921
|
init_client
|
919
922
|
setup_ui
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openai-term
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.1
|
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-08-
|
11
|
+
date: 2025-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-openai
|
@@ -30,18 +30,18 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '6.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '6.0'
|
41
41
|
description: 'A modern terminal interface to OpenAI with a full TUI using rcurses.
|
42
42
|
Features include interactive chat mode, conversation history, model selection, and
|
43
|
-
more. Version
|
44
|
-
|
43
|
+
more. Version 3.0.1: Fixed compatibility with ruby-openai 3.7.0 which moved from
|
44
|
+
''ruby/openai'' to ''openai'' require path.'
|
45
45
|
email: g@isene.com
|
46
46
|
executables:
|
47
47
|
- openai
|