llamafile 0.2.3 → 0.2.5
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 +4 -4
- data/lib/llamafile/version.rb +1 -1
- data/lib/llamafile.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c74891c7621ad1bc30f9a8cc742197553b87687b6e8af35aad8b26ccfea1668
|
4
|
+
data.tar.gz: 87ae0e79a319194551e7777543543a1bb5e4b4d34f323e7ca56d5a57be7ec64a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa307713ae8d0bf4a9aeccd0c088171aa95666ca711b4e293efdfb09cafb095bf1432898602e8ae2f79cedda124f7b76eeafcfe422b09da0218202db18f93b61
|
7
|
+
data.tar.gz: c4cf3c412c11ad7751519379919766e095aaccdd6137b8f5ff2622bc79d91a4d944ff0d2f5af27a5bb201b01258f80254c1b24685a79b3f165c2e9348aa22b76
|
data/lib/llamafile/version.rb
CHANGED
data/lib/llamafile.rb
CHANGED
@@ -32,7 +32,7 @@ module Lf
|
|
32
32
|
@actor = %[an honest person.]
|
33
33
|
@format = %[Format your response as properly formatted markdown.]
|
34
34
|
@example = %[# this is a heading\nThis is some general text about the heading.\n1. list item one.\n2. list item two.\n3. list item three.]
|
35
|
-
@history = ["Hello","Hi."]
|
35
|
+
@history = [["Hello","Hi."]]
|
36
36
|
end
|
37
37
|
def conversation
|
38
38
|
o = @history.map { |e| %[User: #{e[0]}\nLlama: #{e[1]}] };
|
@@ -48,7 +48,7 @@ module Lf
|
|
48
48
|
[p].flatten.compact.each { |e|
|
49
49
|
puts %[<-- #{e}]
|
50
50
|
@history << [ e, Lf.make("<%= params[:output] %>\n<%= params[:input] %>", output: prompt, input: e)]
|
51
|
-
@output = @
|
51
|
+
@output = @history[-1][1]
|
52
52
|
puts %[--> #{@output}]
|
53
53
|
@input = e
|
54
54
|
}
|