Skip to content

Commit

Permalink
Poster image
Browse files Browse the repository at this point in the history
  • Loading branch information
lebrunel committed Mar 13, 2024
1 parent cbd9b42 commit b5e5149
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Anthropix

![Ollama-ex](https://raw.githubusercontent.com/lebrunel/anthropix/main/media/poster.webp)

![Hex.pm](https://img.shields.io/hexpm/v/anthropix?color=informational)
![License](https://img.shields.io/github/license/lebrunel/anthropix?color=informational)
![Build Status](https://img.shields.io/github/actions/workflow/status/lebrunel/anthropix/elixir.yml?branch=main)
Expand All @@ -10,7 +12,7 @@ Anthropix is an open-source Elixir client for the Anthropic API, providing a sim
- 🛜 Streaming API requests
- Stream to an Enumerable
- Or stream messages to any Elixir process
- 🕶️ Powerful yet painless function calling with **Agents**
- 😎 Powerful yet painless function calling with **Agents**

## Installation

Expand All @@ -19,7 +21,7 @@ The package can be installed by adding `anthropix` to your list of dependencies
```elixir
def deps do
[
{:anthropix, "#{@version}"}
{:anthropix, "~> 0.1"}
]
end
```
Expand Down Expand Up @@ -117,14 +119,14 @@ Anthropix.Agent.chat(agent, [
%{role: "user", content: "What is the current stock price of General Motors?"}
]
])
%{
result: %{
"content" => [%{
"type" => "text",
"text" => "*snaps fingers* Damn shawty, General Motors' stock is sittin' pretty at $39.21 per share right now. Dat's a fly price for them big ballers investin' in one of Detroit's finest auto makers, ya heard? *puts hands up like car doors* If ya askin' Snoop, dat stock could be rollin' on some dubs fo' sho'. Just don't get caught slippin' when them prices dippin', ya dig?"
}]
}
}
# %{
# result: %{
# "content" => [%{
# "type" => "text",
# "text" => "*snaps fingers* Damn shawty, General Motors' stock is sittin' pretty at $39.21 per share right now. Dat's a fly price for them big ballers investin' in one of Detroit's finest auto makers, ya heard? *puts hands up like car doors* If ya askin' Snoop, dat stock could be rollin' on some dubs fo' sho'. Just don't get caught slippin' when them prices dippin', ya dig?"
# }]
# }
# }
```

For a more detailed walkthrough, refer to the `Anthropix.Agent` documentation.
Expand Down
6 changes: 4 additions & 2 deletions lib/anthropix.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
defmodule Anthropix do
@version Keyword.fetch!(Mix.Project.config(), :version)
@moduledoc """
![Ollama-ex](https://raw.githubusercontent.com/lebrunel/anthropix/main/media/poster.webp)
![License](https://img.shields.io/github/license/lebrunel/anthropix?color=informational)
Anthropix is an open-source Elixir client for the Anthropic API, providing a
Expand All @@ -11,7 +13,7 @@ defmodule Anthropix do
- 🛜 Streaming API requests
- Stream to an Enumerable
- Or stream messages to any Elixir process
- 🕶️ Powerful yet painless function calling with **Agents**
- 😎 Powerful yet painless function calling with **Agents**
## Installation
Expand All @@ -21,7 +23,7 @@ defmodule Anthropix do
```elixir
def deps do
[
{:anthropix, "#{@version}"}
{:anthropix, "~> #{@version}"}
]
end
```
Expand Down
Binary file added media/anthropix.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Anthropix.MixProject do
[
app: :anthropix,
name: "Anthropix",
description: "Anthropix is an open-source Elixir client with interacting with Claude, Anthropic's powerful language model.",
description: "Unofficial Anthropic API client for Elixir. Integrate Claude, Anthropic's powerful language model, into your applications.",
source_url: "https://github.com/lebrunel/anthropix",
version: "0.0.1",
elixir: "~> 1.13",
Expand Down

0 comments on commit b5e5149

Please sign in to comment.