smart_prompt 0.2.6 → 0.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56515cf9de791bf1f22a118499288e5c33b9a196db07b8bdd07c5ab7a6478bd4
4
- data.tar.gz: 8b7f0c41cdd7e0d64773c9359d8c195419bf317f5f1180747a1e0de6fa9b46f4
3
+ metadata.gz: 73331a34a0bbe4479c3fd4dbb096ea675b34b7cbdd60820afd056ee6544f9905
4
+ data.tar.gz: 8039882337a68fdcf947797602ee5d5c9bf6dcd1ad3e125fbe5bb58c7eac442b
5
5
  SHA512:
6
- metadata.gz: aa9dad1da9848cbfbed54f116f5c7290a4e41383ffc546a8e415b8cf6ff2e637ef99b6df72875e81c95d7f23ffff986aa2f9dbf825ca2ca531253014db633087
7
- data.tar.gz: 96f15a6c1d9ecb13ab8705a2acbea4bbe2661dc9af215046a8c15209a04060f2e57f351365682267419604229ccd49a28a51b1ea0aa3b081deccde9347620288
6
+ metadata.gz: cc45db135809119976974d7976e0c694ea7cb4223a228ae38cca4d20cf75dc1fdc54baf47cf5f3abc44a69489fa205adc6b71d73b9f45132122ec1c61b45ecaf
7
+ data.tar.gz: 685ab59b5c2f90b433717c6793be7672ac59fd930fa8de15d9c7846410fac4210dd61a13aaad97ffa932e2c7790ae989dbc6054fa93fddad8acb61f99fcf87c6
@@ -44,7 +44,7 @@ module SmartPrompt
44
44
  @messages << msg
45
45
  end
46
46
 
47
- def prompt(template_name, params = {}, with_history = false)
47
+ def prompt(template_name, params = {}, with_history: false)
48
48
  if template_name.class == Symbol
49
49
  template_name = template_name.to_s
50
50
  SmartPrompt.logger.info "Use template #{template_name}"
@@ -1,3 +1,3 @@
1
1
  module SmartPrompt
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -52,7 +52,7 @@ module SmartPrompt
52
52
  elsif method == :sys_msg
53
53
  @conversation.sys_msg(*args, params)
54
54
  elsif method == :prompt
55
- @conversation.prompt(*args, params[:with_history])
55
+ @conversation.prompt(*args, with_history: params[:with_history])
56
56
  else
57
57
  @conversation.send(method, *args, &block)
58
58
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_prompt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhuang biaowei
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-07 00:00:00.000000000 Z
10
+ date: 2025-04-09 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: yaml