luogu 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d22ef62531ee8bf0c04bcc4258e2e0287f31b73f03da333b0e4b84aa4438ed3a
4
- data.tar.gz: 5d9fffc7274eb10622ece637326b0981aec632714b462b2c3762dc12ca6faa38
3
+ metadata.gz: 5dc8912fdf448f5a9cb2f27d32125bf5a82b5231a8c74f36c03c2269d3345a14
4
+ data.tar.gz: 9039e6a2ebf32390d96625e734e63c49a9fda770945d8240a4a11dc3d8af114b
5
5
  SHA512:
6
- metadata.gz: 395e2b399e098e1c566aa88cf90ecd197b8866528ce7a97c95e11c64bc829778bd1be17a1258cf0f2144c64ad073f18cead2d174881cfa6f01a6fa5b7794831a
7
- data.tar.gz: 05f9abbddd765a5b0265415fc0afa448446870958cb99b8d07d71930c748c8bb97e80a2c45122c00de3cc0feb906c88cec51168b6b137c3b3ee85975fe1d48b2
6
+ metadata.gz: bfc85f6ebf5dc6970243291b277654a86adc93d3a917e4c571f7e2a7b08bbc74fd7d20ee5fbacd4981ba8b983f9b1da05fe97a60da9b8a3b607a4fe5bf8b6b7b
7
+ data.tar.gz: e5b8db6cb68a539ec09f706fed396dfafccc352817f1072616b66db77843d95fea9c67374fda515407c75cb71273523d0c8ede5793387a4663ab8c8ca9848480
data/lib/luogu/cli.rb CHANGED
@@ -44,7 +44,7 @@ module Luogu
44
44
 
45
45
  chatgpt = ChatGPT.new(args.first)
46
46
 
47
- messages = YAML.load(promtpt_test_file)
47
+ messages = YAML.load_file(promtpt_test_file)
48
48
  chatgpt.playload messages
49
49
  end
50
50
 
data/lib/luogu/init.rb CHANGED
@@ -2,6 +2,7 @@ require "openai"
2
2
  require 'dotenv/load'
3
3
  require "tty-prompt"
4
4
  require 'json'
5
+ require 'yaml'
5
6
  require 'optparse'
6
7
 
7
8
  require_relative 'history_queue'
data/lib/luogu/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Luogu
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luogu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ