Skip to content

arkemis-labs/ollama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ollama

This is a simple Elixir wrapper around the Ollama API.

Usage

Initialize the client.

client = Ollama.init()

Generate

Ollama.generate(client, [
  model: "llama3.2",
  prompt: "Who is Luke Skywalker?"
])

Chat

Ollama.chat(client, [
  model: "llama3.2",
  messages: [
    %{role: "system", content: "You are a helpful assistant."},
    %{role: "user", content: "Who is Luke Skywalker?"},
  ]
])

License

MIT

About

Ollama elixir client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages