Skip to content

v1.0.0

Latest

Choose a tag to compare

@FareedKhan-dev FareedKhan-dev released this 16 Nov 12:54

The first release of the code behind this guide. As published, the code could not start, so 1.0.0 is the first version that runs. It is checked by CI on every push and was verified end to end against a real model.

If you ran an earlier version with Docker Compose, change JWT_SECRET_KEY. The compose file could put a published default in place of your key, so anyone could sign a token for any user (#4, reported by @28Hus). The API now refuses to start with a missing, short or published secret.

Highlights

  • It runs. Three broken imports, the Dockerfile's start command, the compose volume that hid the code, and the Makefile targets are fixed. The image installs from uv.lock.
  • Security. The JWT secret fails closed. Tokens are typed (user or session) and handled by PyJWT. Images no longer contain .env files, error responses no longer carry internal details, and clients can only send user messages. The database and monitoring ports listen on 127.0.0.1, and SECURITY.md explains how to report privately.
  • Correctness.
    • Passwords containing &, <, >, " or ' can log in.
    • Long answers no longer break a session.
    • The agent keeps the context after a long answer.
    • The stream carries only the answer.
    • A fallback model keeps the tools, and retries work.
    • Deleting a session deletes its messages.
    • Long-term memory works with mem0 2.
  • Under load. Database queries and bcrypt run off the event loop, with bcrypt in a thread pool of its own. The container's open-file limit is raised, and the first concurrent requests share one connection pool. In a load test with 1,500 users at once on a 4-vCPU machine, all 1,500 got an answer (chat median 1.17 s with a model that takes 1 s); the first run of that test, before these fixes, answered 890.
  • Any OpenAI-compatible server through OPENAI_BASE_URL. Dependencies are current, each capped at its next major version.
  • Observability.
    • Metrics are labelled with route templates.
    • LLM latency buckets reach 60 seconds.
    • The Grafana dashboard actually provisions, with its datasource.
    • The monitoring images are pinned.
    • LOG_LEVEL is honoured.
  • Tests. 57 tests run against a real PostgreSQL, and CI runs lint, the tests and a Docker smoke test. Putting back any of 16 of the old behaviours makes its test fail. The release was also run once with Qwen2.5 7B on Ollama: tool calls, streaming, and memory across sessions all worked.

Breaking changes

  • Chat requests accept role: "user" only.
  • Tokens issued by earlier versions are rejected.
  • API_V1_STR defaults to /api/v1, which .env.example and the README already used.
  • Tokens expire after 7 days by default (was 30).
  • Stream events have an error field.

The full list is in CHANGELOG.md.