gpterm 0.6.3 → 0.6.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/client.rb +8 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a21b914e291d4d6a0310355fb6412d746368437335af64bf7e9746ac6016983
4
- data.tar.gz: db7ea2ddae831143d371dfc9ee316f601d757994cb46bf0e5247357d8b73dba6
3
+ metadata.gz: 0ad1f6eabb19a5f3894f80cd8c84a74a9ec8108672cd428a0251113aef9c76a4
4
+ data.tar.gz: d91084eb9b0ccf0833131bf4a92f186bba0e9624619588f2a3d6a524f12e8887
5
5
  SHA512:
6
- metadata.gz: a13a1d835c3a807cee3c35379d60462c13426eaf379487c41129583cdb06631f215d044d1cd9cb89fe0c5112a57fefa9fbbfea2edeb31930d2d6f2cfc0e64591
7
- data.tar.gz: c80160ccddc42a5292c951fa2b7aa8056abff75a2f8bb972dfca2318ac5211b23619dd2b52bacb0e8a9b72ff2033e60f6eb1676bf0cf559bec5e33f069cc387d
6
+ metadata.gz: 34becbe3683e7e36155e5f53398c3fb2983599d9ce64f7034f40140baab20973efb92bc33a426bb17a91084c64d0867db9c5944e5576d33c10014dc2603293b8
7
+ data.tar.gz: 2d2c8faac10d19fca4ce26701c2add550587200f95c4ed1411074d1e708ac7cc08f0fb97224b7b10bea9c1199f44a0874f931712b5d66e9f04b1a13388a18030
data/lib/client.rb CHANGED
@@ -79,9 +79,16 @@ class Client
79
79
  def continue_conversation(prompt)
80
80
  @messages << { role: "user", content: prompt }
81
81
 
82
+ model = @config["model"]
83
+
84
+ if !model || model.length > 0
85
+ model = "gpt-4-turbo-preview"
86
+ end
87
+
88
+
82
89
  response = openai_client.chat(
83
90
  parameters: {
84
- model: @config["model"] || "gpt-4-turbo-preview",
91
+ model: model,
85
92
  messages: @messages,
86
93
  temperature: 0.6,
87
94
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpterm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Hough
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-18 00:00:00.000000000 Z
11
+ date: 2024-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-openai