-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
88 lines (81 loc) · 2.2 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
defmodule InstructorLite.MixProject do
use Mix.Project
@version "0.3.0"
@source_url "https://github.com/martosaur/instructor_lite"
def project do
[
app: :instructor_lite,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
docs: docs(),
package: package()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
description: "Structured prompting for LLMs",
licenses: ["MIT"],
links: %{
"GitHub" => @source_url
}
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: [
"README.md",
"CHANGELOG.md",
"pages/philosophy.md",
"pages/migrating_from_instructor.md",
"pages/local_development_guide.md",
"pages/cookbooks/text-classification.livemd",
"pages/cookbooks/vision.livemd",
"pages/cookbooks/text-to-dataframes.livemd",
"pages/cookbooks/batch-api.livemd",
"pages/cookbooks/custom-ollama-adapter.livemd"
],
nest_modules_by_prefix: [InstructorLite.Adapters],
groups_for_modules: [
Utilities: [InstructorLite.JSONSchema],
Behaviours: [InstructorLite.Instruction, InstructorLite.Adapter],
Adapters: [
InstructorLite.Adapters.Anthropic,
InstructorLite.Adapters.OpenAI,
InstructorLite.Adapters.Llamacpp,
InstructorLite.Adapters.Gemini
]
],
groups_for_extras: [
Changelog: ["CHANGELOG.md"],
Cookbooks: Path.wildcard("pages/cookbooks/*.livemd")
],
assets: %{
"pages/cookbooks/files" => "files"
}
]
end
defp deps do
[
{:ecto, "~> 3.12"},
{:jason, "~> 1.4"},
{:req, "~> 0.5 or ~> 1.0", optional: true},
{:nimble_options, "~> 1.1"},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:mox, "~> 1.2", only: :test}
]
end
end