Current section

9 Versions

Jump to

Compare versions

5 files changed
+16 additions
-12 deletions
  @@ -1,5 +1,5 @@
1 1 name = "llmgleam"
2 - version = "0.0.8"
2 + version = "0.0.9"
3 3 description = "Gleam bindings for various LLMs"
4 4 licences = ["MIT"]
5 5 repository = { type = "github", user = "Endi1", repo = "llmgleam" }
  @@ -1,6 +1,6 @@
1 1 {<<"name">>, <<"llmgleam"/utf8>>}.
2 2 {<<"app">>, <<"llmgleam"/utf8>>}.
3 - {<<"version">>, <<"0.0.8"/utf8>>}.
3 + {<<"version">>, <<"0.0.9"/utf8>>}.
4 4 {<<"description">>, <<"Gleam bindings for various LLMs"/utf8>>}.
5 5 {<<"licenses">>, [<<"MIT"/utf8>>]}.
6 6 {<<"build_tools">>, [<<"gleam"/utf8>>]}.
  @@ -8,30 +8,30 @@
8 8 {<<"Repository"/utf8>>, <<"https://github.com/Endi1/llmgleam"/utf8>>}
9 9 ]}.
10 10 {<<"requirements">>, [
11 - {<<"gleam_json"/utf8>>, [
12 - {<<"app">>, <<"gleam_json"/utf8>>},
11 + {<<"gleam_hackney"/utf8>>, [
12 + {<<"app">>, <<"gleam_hackney"/utf8>>},
13 13 {<<"optional">>, false},
14 - {<<"requirement">>, <<">= 3.0.2 and < 4.0.0"/utf8>>}
14 + {<<"requirement">>, <<">= 1.3.2 and < 2.0.0"/utf8>>}
15 15 ]},
16 16 {<<"gleam_stdlib"/utf8>>, [
17 17 {<<"app">>, <<"gleam_stdlib"/utf8>>},
18 18 {<<"optional">>, false},
19 19 {<<"requirement">>, <<">= 0.44.0 and < 2.0.0"/utf8>>}
20 20 ]},
21 - {<<"gleam_hackney"/utf8>>, [
22 - {<<"app">>, <<"gleam_hackney"/utf8>>},
21 + {<<"envoy"/utf8>>, [
22 + {<<"app">>, <<"envoy"/utf8>>},
23 23 {<<"optional">>, false},
24 - {<<"requirement">>, <<">= 1.3.2 and < 2.0.0"/utf8>>}
24 + {<<"requirement">>, <<">= 1.0.2 and < 2.0.0"/utf8>>}
25 25 ]},
26 26 {<<"gleam_http"/utf8>>, [
27 27 {<<"app">>, <<"gleam_http"/utf8>>},
28 28 {<<"optional">>, false},
29 29 {<<"requirement">>, <<">= 4.1.1 and < 5.0.0"/utf8>>}
30 30 ]},
31 - {<<"envoy"/utf8>>, [
32 - {<<"app">>, <<"envoy"/utf8>>},
31 + {<<"gleam_json"/utf8>>, [
32 + {<<"app">>, <<"gleam_json"/utf8>>},
33 33 {<<"optional">>, false},
34 - {<<"requirement">>, <<">= 1.0.2 and < 2.0.0"/utf8>>}
34 + {<<"requirement">>, <<">= 3.0.2 and < 4.0.0"/utf8>>}
35 35 ]}
36 36 ]}.
37 37 {<<"files">>, [
  @@ -1,5 +1,5 @@
1 1 {application, llmgleam, [
2 - {vsn, "0.0.8"},
2 + {vsn, "0.0.9"},
3 3 {applications, [envoy,
4 4 gleam_hackney,
5 5 gleam_http,
  @@ -23,6 +23,7 @@ pub fn str_to_role(role_str: String) -> option.Option(Role) {
23 23 case role_str {
24 24 "user" -> option.Some(User)
25 25 "assistant" -> option.Some(Assistant)
26 + "model" -> option.Some(Assistant)
26 27 _ -> option.None
27 28 }
28 29 }
  @@ -24,6 +24,9 @@ str_to_role(Role_str) ->
24 24 <<"assistant"/utf8>> ->
25 25 {some, assistant};
26 26
27 + <<"model"/utf8>> ->
28 + {some, assistant};
29 +
27 30 _ ->
28 31 none
29 32 end.