• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 18347113204
58%

Build:
DEFAULT BRANCH: main
Ran 08 Oct 2025 01:59PM UTC
Jobs 1
Files 142
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Oct 2025 01:56PM UTC coverage: 45.646% (+1.2%) from 44.415%
18347113204

push

github

web-flow
refactor(llm)!: Overhaul provider system and streaming (#271)

Completely rewrites the LLM provider infrastructure with a new
streaming architecture and enhanced model management capabilities.
This change introduces breaking changes to the `Provider` trait while
adding significant new functionality.

The streaming system now uses a centralized `Accumulator` with proper
text buffering and configurable line length limits, replacing the
previous per-provider implementations. A new `stream` module provides
reusable `Delta`, `StreamEvent`, and `CompletionChunk` abstractions.

The `Provider` trait now requires a `model_details(&Name)` method and
all completion methods accept `&ModelDetails` instead of
`&ModelIdConfig`, providing richer context about model capabilities,
deprecation status, and provider-specific features.

For Anthropic specifically, this adds automatic request chaining when
models hit token limits (configurable via `chain_on_max_tokens`) and
beta features support including interleaved thinking, context editing,
and 1M context windows. The system intelligently merges responses to
avoid content duplication during chaining.

All six providers (Anthropic, Google, LlamaCpp, Ollama, OpenAI,
OpenRouter) have been updated with comprehensive model mappings that
include deprecation tracking and feature flags. The CLI now calls
`model_details()` before requests and properly handles the new event
stream structure.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

814 of 1023 new or added lines in 18 files covered. (79.57%)

119 existing lines in 6 files now uncovered.

6605 of 14470 relevant lines covered (45.65%)

15.71 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
32.96
0.0% crates/jp_conversation/src/message.rs
2
0.0
0.0% crates/jp_cli/src/cmd.rs
2
70.62
-0.88% crates/jp_config/src/util.rs
4
60.61
-1.89% crates/jp_config/src/providers/llm/anthropic.rs
4
62.03
-1.04% crates/jp_llm/src/provider/ollama.rs
5
10.53
10.53% crates/jp_openrouter/src/types/response.rs
6
30.58
-0.12% crates/jp_cli/src/cmd/query.rs
6
86.05
crates/jp_llm/src/stream/delta.rs
11
52.32
2.15% crates/jp_llm/src/provider/llamacpp.rs
14
59.41
-0.27% crates/jp_llm/src/provider/openrouter.rs
17
65.68
-4.51% crates/jp_llm/src/provider.rs
21
85.21
crates/jp_llm/src/stream/accumulator.rs
23
11.54
crates/jp_llm/src/stream/event.rs
27
61.06
-0.72% crates/jp_llm/src/provider/google.rs
27
63.56
-2.41% crates/jp_llm/src/provider/openai.rs
39
73.32
14.06% crates/jp_llm/src/provider/anthropic.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
70.62
-0.88% crates/jp_config/src/util.rs
2
59.41
-0.27% crates/jp_llm/src/provider/openrouter.rs
4
48.39
-3.23% crates/jp_config/src/model/parameters.rs
11
63.56
-2.41% crates/jp_llm/src/provider/openai.rs
26
65.68
-4.51% crates/jp_llm/src/provider.rs
75
73.32
14.06% crates/jp_llm/src/provider/anthropic.rs
Jobs
ID Job ID Ran Files Coverage
1 18347113204.1 08 Oct 2025 01:59PM UTC 142
45.65
GitHub Action Run
Source Files on build 18347113204
  • Tree
  • List 142
  • Changed 17
  • Source Changed 17
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18347113204
  • c223cab1 on github
  • Prev Build on main (#18220573783)
  • Next Build on main (#18356231151)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc