forked from orthagonal/langchainex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
62 lines (57 loc) · 1.75 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
defmodule LangchainEx.MixProject do
use Mix.Project
def project do
[
app: :langchainex,
version: "0.2.2",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
package: package(),
# prevents protocol consolidation warning
consolidate_protocols: Mix.env() != :test
]
end
def application do
[
extra_applications: [:logger, :telemetry]
]
end
defp deps do
[
# bumblebee is optional, if you want to run models locally
{:bumblebee, github: "elixir-nx/bumblebee", optional: true},
# if you want to run bumblbee models on your GPU (*highly* recommended)
# you can uncomment exla and it *should* be able to build
# though this can get tricky on non-linux platforms
# {:exla, "~> 0.5.1"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:elixir_uuid, "~> 1.2"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
# kino is optional, use if you want to use ui with models
# {:kino, "~> 0.8.0", optional: true}
{:ex_openai, "~> 1.1.0"},
{:gitex, "~> 0.2.0"},
{:jason, ">= 1.0.0"},
# telemetry is optional, use if you want to run models locally with bumblebee
{:telemetry, ">= 0.4.0", optional: true}
]
end
defp package do
[
licenses: ["MIT"],
links: %{
"homepage" => "https://github.com/orthagonal/langchainex",
"repository" => "https://github.com/orthagonal/langchainex.git",
"docs" => "https://hexdocs.pm/langchainex"
},
description: "Language Chains for Elixir"
]
end
defp aliases do
[
verify: ["compile --warnings-as-errors", "format --check-formatted", "credo --strict"]
]
end
end