llamafile 0.4.7 → 0.4.8

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: 465a9459796a59df47a5f62761b1773ea5883bbb35f3854c60a28d76a2358c4a
4
- data.tar.gz: 47344a875282e176b1979ddba7cd591dc9580050cb627af0f080025892c0f2df
3
+ metadata.gz: 9cd63ac70ff8f0880f88cb13c1fb5ff51d9c8fde50f8558c71a13c5de2830216
4
+ data.tar.gz: '0308f90036c3538a366d3576b94b182b84f7d3cb34a96ca2882f0b8a0db55c62'
5
5
  SHA512:
6
- metadata.gz: 39be76097a2ccbefb398d2145d2f72c7e901d2723a1ff0028b43cee8303097b9796a84b1e8ef0495cb00a9209a0651ace33cd1f7b4b393d9c42015b3950cd1e8
7
- data.tar.gz: f0c3e7fad9aff2081a0b8bfe461053f8835dbfea63af2ffa13b2a3b009f862c4d26aa9703d269452c517ce98e605933ce99fbca7215734352fda02481915810c
6
+ metadata.gz: 2db208fada94e4c53b7d55c850f526f9967c58d9fa018cd227ec54026dbce202129c6ff080d00021e04dfb3a9c0c476978da5bdd0594379702ebcfd5cfa42d25
7
+ data.tar.gz: 36a822a316bacc7b4e35f8ef2ef6624354d0124fe6933636c82d8e076c8716c7868dd1834d58d1be6c12dc6bc340182470b72e1af5dc7da35e583657c8e98cf6
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Llamafile
4
- VERSION = "0.4.7"
4
+ VERSION = "0.4.8"
5
5
  end
data/lib/llamafile.rb CHANGED
@@ -30,7 +30,7 @@ module Lf
30
30
  does: %[AI is <%= Lf.inspector %>\nUser: Does "<%= @response %>" <%= @condition %> "<%= @query %>"\nAI: ],
31
31
  word: %[AI is <%= Lf.researcher %>\nUser: <%= @query %>\nAI: ],
32
32
  user: %[AI is <%= Lf.character %>\nUser: <%= @query %>\nAI: ],
33
- task: %[AI is <%= Lf.character %>\nUser: <%= @instruction %>\n<%= @query %>\nAI: ],
33
+ task: %[AI is <%= Lf.character %>\nUser: <%= @query.join("\n") %>\nAI: ],
34
34
  }
35
35
  def self.template
36
36
  @@TMPL
@@ -63,7 +63,7 @@ module Lf
63
63
  @query = q
64
64
  LLAMA.post(grammar: GRAMMAR[:list], prompt: Lf.erb(Lf.template[:user]));
65
65
  end
66
- def self.task i, q
66
+ def self.task *q
67
67
  @instruction = i
68
68
  @query = q
69
69
  LLAMA.post(grammar: GRAMMAR[:string], prompt: Lf.erb(Lf.template[:task]));
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llamafile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson