Skip to content

Olla v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 00:11
v0.2.0
5e91c8c

What's in this release

Olla is a high-performance proxy and load balancer for LLM infrastructure.

Quick Start

# Docker
docker pull ghcr.io/thushan/olla:v0.2.0

# Binary (see assets below)
./olla --config config.yaml

What's New in v0.2.0

Another large release (codebase wise) as we finally moved to go1.27 (and hope to move to go1.28 in March), it required a fair amount of modernisation and this has brought some performance improvements (less alocations) thanks to Go 1.27 (which we couldn't get verified before v0.1.0).

Other notable changes is to address backend failover reliability. A backend that drops the connection, goes quiet mid-stream or terminates halfway through a reply is now handled the way you'd expect: we fail over where we can, and where we can't, the client gets a clear error instead of something that looks like a finished response. We've also added Rapid-MLX (@raullenchai) and tightened up endpoint URL validation.

There are lots of things to be aware of, documented in our Olla v0.2.0 Release Article or see the Release Notes.

Behaviour Changes

  • Endpoint URLs are validated strictly. url must be an absolute http:// or https:// URL, so localhost:11434 without a scheme now fails at startup. url, health_check_url and model_url must not contain @ or %40; credentials belong in the endpoint's auth block. --validate-config reports all of these (#281).
  • Unbracketed IPv6 endpoint URLs are rejected. Go 1.26 made net/url strict, so http://::1:11434 no longer parses. Use http://[::1]:11434 (#280).
  • macOS binaries need macOS 13 or later, because Go 1.27 dropped macOS 12. Linux, FreeBSD and Windows are unchanged (#280).
  • Building from source needs Go 1.27. go.mod declares go 1.27.0 with toolchain go1.27.4 (#280).
  • A backend dying mid-stream now ends the response with an error. The client gets an error event in the stream's own format (OpenAI SSE, Anthropic event: error or an Ollama NDJSON line), then the connection is dropped. Clients that treated a clean end of stream as success will see a read error on truncated replies (#274).
  • Auto-detection needs the server to identify itself. With type: auto, llama.cpp, vLLM, oMLX and Rapid-MLX are only detected when /v1/models reports a matching owned_by; anything else is openai-compatible. Set type explicitly if a backend lost its detected type (#271).
  • EOF before the first byte now fails over. With the default proxy.retry.non_idempotent: true, a POST can now run on a second backend. Set it to false if a prompt running twice matters more than availability (#273).
  • Streaming Anthropic translation returns 502 when every backend fails before the first byte, instead of 200 with an empty stream (#274).
  • Duplicate endpoint URLs now log a warning naming both endpoints. Only one ever registered (#277).

Reliability

  • An idle keep-alive close from vLLM or SGLang no longer marks a healthy backend offline or charges its circuit breaker (#277).
  • http: server closed idle connection on a reused connection now fails over instead of returning 502 (#277).
  • The Olla engine enforces proxy.read_timeout on a backend that goes silent mid-stream, rather than waiting forever (#277).
  • Client cancels and client timeouts no longer open the circuit breaker or count as failed requests, and a cancelled half-open probe frees its slot (#275).
  • A translator panic mid-stream drops the connection instead of ending the stream cleanly, and is logged as a failure (#277).
  • Provider-prefix /v1/messages routes send Anthropic-shaped mid-stream errors (#277).

Backends and Routing

  • New Rapid-MLX backend for Apple Silicon, with a rapid-mlx profile, the /olla/rapid-mlx/ prefix and native Anthropic passthrough. Thanks to @raullenchai (#271).
  • type: auto endpoints loaded from config now discover their models. Previously vLLM, llama.cpp, oMLX and generic servers could be detected as Ollama with no models (#277).
  • Auto-detection with an explicit model_url no longer labels OpenAI-style servers as LM Studio (#277).
  • Model aliases match regardless of case when unification is on, and case variants share a sticky session. Thanks to @wsj040303 (#270).
  • A backend that closes the connection before replying now fails over. Thanks to @mikemikimike (#273).
  • server.host accepts a bare IPv6 address such as ::. Raised by @sigil-03 in #145 (#278).

Build and Tooling

  • Go 1.27, with updated dependencies (#280). Release images are built with GoReleaser's dockers_v2; the published tags are unchanged (#280).
  • The codebase uses Go 1.27 idioms, and make lint now enforces modernize, usetesting and SA1029. There is no behaviour change (#284).
  • make lint and make align install golangci-lint and betteralign into a repo-local .bin/ at pinned versions (#283).

Full detail, with the links for each change, is in the v0.2.0 release notes.

Acknowledgements

Full Changelog: v0.1.0...v0.2.0