luogu 0.1.2 → 0.1.3

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: 584995338f86e7c2be1f099920457c424396373ec007e6fa7185face0a0254e9
4
- data.tar.gz: 7414294ca9278bc20989b2fb5e58bd5c3b6602a35853ae8f56a4b35423b1974b
3
+ metadata.gz: cb3e745f62ebfb4ebf7401ee41225be94c005b911669df30c622d62a44400696
4
+ data.tar.gz: 181e888e61066c2f99d3102e946b7e35eca9dca07c15fd91e55b7fc8bd83894d
5
5
  SHA512:
6
- metadata.gz: ca7945d9ef6ddc5ba18ff6e258f18bf8799049d580b7befbe50b1db43297322171b68852f8783643b16f829c7a7b99faf5fceec6d87c64a20232fd9e7ce04087
7
- data.tar.gz: 2982f3f04cb4edec38434db75933921b7574f8b885d8a8265514071724f0ca72eb2bd681377773c97edf5be9ee48a358f729f5a12f507fc753527f1f594300ea
6
+ metadata.gz: 8c46cd1408e4baba2cf08f7498ba39408a7acf3ac442ed347f7e7ce0b958210a42e042b492dd11d97a768476165fc65f253b3fd138dabd2bd50ec03b3b815880
7
+ data.tar.gz: d84cf9a0d8ca218452976cadd450f696d294df1d809872dc7775a190a15880268283d72cebe899ccd3e1a77c3a9d9e24befae6a7763d2325310b7470a9b88489
data/README.md CHANGED
@@ -12,6 +12,7 @@
12
12
  ### 使用
13
13
  - luogu build <file> 编译成对应的json
14
14
  - luogu run <file> 测试prompt
15
+ - luogu gen <prompt.json file> <target.md> 用来逆向生成md文件的命令
15
16
 
16
17
  你可以在项目目录的.env中设置下面的环境变量,或者直接系统设置
17
18
  ```
@@ -10,11 +10,6 @@ module Luogu
10
10
 
11
11
  def render
12
12
  process_file
13
- if @messages.length.even?
14
- @messages
15
- else
16
- raise "prompt里面的问答对不对, 必须是一问一答, 当前存在单一问题或者答案"
17
- end
18
13
  end
19
14
 
20
15
  def to_json
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.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luogu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-08 00:00:00.000000000 Z
11
+ date: 2023-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-openai