Current section

Files

Jump to
Raw

mix.exs

defmodule LlmComposer.MixProject do
use Mix.Project
def project do
[
app: :llm_composer,
version: "0.18.2",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: [
main: "readme",
extras: ["README.md", "LICENSE"],
source_ref: "master"
],
source_url: "https://github.com/doofinder/llm_composer",
test_coverage: [tool: ExCoveralls],
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test,
precommit: :test
]
]
end
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
is_json_present? = Code.ensure_loaded?(JSON)
[
{:bypass, "~> 2.1", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:decimal, "~> 2.3"},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_aws, "~> 2.6", optional: true},
{:hackney, "~> 1.21", optional: true},
{:ex_doc, "~> 0.34", only: :dev, runtime: false, warn_if_outdated: true},
{:excoveralls, "~> 0.18", only: :test},
{:finch, "~> 0.18", optional: true},
{:goth, "~> 1.4", optional: true},
{:jason, "~> 1.4", optional: is_json_present?},
{:mint, "~> 1.7"},
{:tesla, "~> 1.16"}
]
end
defp aliases do
[
precommit: [
"compile --warnings-as-errors",
"format --check-formatted",
"credo --strict",
"test"
]
]
end
defp package() do
[
description:
"LlmComposer is an Elixir library that facilitates chat interactions with language models, providing tools to handle user messages, generate responses, and execute functions automatically based on model outputs.",
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/doofinder/llm_composer"}
]
end
end