Skip to content

docs: update README provider docs + bump to 0.15.2#49

Merged
nyo16 merged 2 commits intomasterfrom
docs-readme-providers-update
Apr 27, 2026
Merged

docs: update README provider docs + bump to 0.15.2#49
nyo16 merged 2 commits intomasterfrom
docs-readme-providers-update

Conversation

@nyo16
Copy link
Copy Markdown
Owner

@nyo16 nyo16 commented Apr 27, 2026

README updates:

  • Add vllm: and sglang: to "Supported Providers" table — they were first-class named providers since 0.15.0 but only lmstudio: was listed; vLLM/SGLang were buried in the custom: section.
  • Reorder "Local Servers" examples to recommend the named providers (lmstudio: / vllm: / sglang: / ollama:) over custom: — they default to the right port, validate *_BASE_URL env vars through UrlGuard, and pick up the OpenAI stream normalizer.
  • Add new "HTTP Backend" section documenting the pluggable Nous.HTTP.Backend behaviour, env-var selection (NOUS_HTTP_BACKEND), and shared hackney pool config.
  • Bump install snippet to 0.15.2.

Doc-warning cleanup (mix docs now 0 warnings):

  • Remove backtick auto-link references to hidden modules in CHANGELOG.md and lib/nous/persistence/ets.ex.
  • Switch README link to docs/benchmarks/http_backend.md to a fully-qualified GitHub URL so ExDoc doesn't try to resolve it as an extra.
  • Reword :hackney.body/1 mention in hackney backend moduledoc (function was removed in hackney 4 — link can't resolve).

Verification: 1594 tests pass, 0 dialyzer errors, 0 credo issues at --strict, mix docs clean, mix hex.build clean.

nyo16 added 2 commits April 26, 2026 23:23
README updates:

- Add `vllm:` and `sglang:` to "Supported Providers" table — they were
  first-class named providers since 0.15.0 but only `lmstudio:` was
  listed; vLLM/SGLang were buried in the `custom:` section.
- Reorder "Local Servers" examples to recommend the named providers
  (`lmstudio:` / `vllm:` / `sglang:` / `ollama:`) over `custom:` —
  they default to the right port, validate `*_BASE_URL` env vars
  through UrlGuard, and pick up the OpenAI stream normalizer.
- Add new "HTTP Backend" section documenting the pluggable
  `Nous.HTTP.Backend` behaviour, env-var selection
  (`NOUS_HTTP_BACKEND`), and shared hackney pool config.
- Bump install snippet to 0.15.2.

Doc-warning cleanup (mix docs now 0 warnings):

- Remove backtick auto-link references to hidden modules in
  CHANGELOG.md and lib/nous/persistence/ets.ex.
- Switch README link to docs/benchmarks/http_backend.md to a
  fully-qualified GitHub URL so ExDoc doesn't try to resolve it
  as an extra.
- Reword `:hackney.body/1` mention in hackney backend moduledoc
  (function was removed in hackney 4 — link can't resolve).

Verification: 1594 tests pass, 0 dialyzer errors, 0 credo issues
at --strict, mix docs clean, mix hex.build clean.
Quick-reference for agents (Claude, Cursor, Copilot, Codex, etc.)
consuming the library. Conforms to https://agents.md.

Covers:
- Minimal API surface (generate_text, stream_text, new + run)
- Provider quick-pick table (which model string to use when)
- Key opts agents will actually reach for
- Built-in tools and how to write a custom one
- HTTP backend selection (Req default, when to switch)
- Critical security rules (atom-DoS, approval handlers, PathGuard,
  UrlGuard, EEx-in-templates, sub-agent dep forwarding)
- Common workflows (LiveView streaming, tool loops, failover,
  local-dev with LM Studio)
- Test pattern using Bypass
- What's public vs @moduledoc false (don't depend on internals)

Goal is to give an agent enough grounding to write working code in
~5 minutes of reading without needing to fetch external pages.

Logged in CHANGELOG under 0.15.2.
@nyo16 nyo16 merged commit 7a6ed24 into master Apr 27, 2026
6 checks passed
@nyo16 nyo16 deleted the docs-readme-providers-update branch April 27, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant