Ollamex
An Elixir wrapper of the ollama REST API
Install / Use
/learn @waseigo/OllamexREADME
Ollamex
An Elixir wrapper of ollama's REST API with a few niceties built-in, such as dealing with endless LLM repetitions through a timeout.
Ollamex is written based on the ollama REST API documentation for the following endpoints:
- List Local Models
- Generate a completion
- Generate a chat completion
- Generate embeddings (new since v0.2.0)
The primary motivation for this simple Elixir wrapper was to use a timeout and avoid situations in which the LLM gets stuck generating a stream of \n, \t and whitespace.
Installation
The package is available in Hex and can be installed by adding ollamex to your list of dependencies in mix.exs:
def deps do
[
{:ollamex, "~> 0.2.0"}
]
end
Documentation
The docs can be found at https://hexdocs.pm/ollamex.
Homepage
The homepage of Ollamex can be found at overbring.com.
Donate
Has this library been useful for your project?
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
