• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
You are now the owner of this repo.

agentjido / req_llm
50%

Build:
DEFAULT BRANCH: main
Repo Added 15 Sep 2025 11:42AM UTC
Token Qrw4J5oDDoi2zjHqBZDp1Hok4eVoONJAy regen
Build 166 Last
Files 79
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • add-vllm-provider
  • bedrock-clean
  • bug/api-return-types
  • bug/codec-tool-calls
  • bug/debug-stream-return
  • bug/incorrect-model-spec-docs
  • bug/openai-tool-calls
  • bug/streaming-race-condition
  • cerebras
  • chore/2025-10-14-update-fixtures
  • chore/object-fixtures
  • chore/object-fixtures-resurrected
  • chore/refine-fixtures
  • chore/refresh-coverage-tests
  • chore/update-models-2025-09-21
  • copilot/fix-32
  • devtools
  • egomes/fix-claude-multi-turn
  • feat/context-json-serialization
  • feat/google-upload-file
  • feat/in-type-support
  • feat/structured-output-openai-google
  • feature/cerebras-provider
  • feature/normalize-bedrock-inference-profiles
  • feature/pre-release-fixes
  • feature/refactor-llm-api-fixtures
  • feature/refined-key-management
  • feature/unique-model-provider-options
  • feature/zai-fixtures
  • fix-anthropic-streaming
  • fix-duplicate-clause
  • fix-google
  • fix-groq-stream-error
  • fix-mix-task-docs
  • fix-openai-max-tokens-param
  • fix/cost-calculation-in-usage
  • fix/google-file-support
  • fix/google-structured-output
  • fix/issue-65-http-status-validation
  • fix/issue-96-validation-error-fields
  • fix/proxy-options
  • fix/registry-get-provider-nil-module
  • fix/tool_calls
  • google-vision
  • improve-metadata-provider-errors
  • main
  • patch-1
  • put-max-tokens-model-options
  • refactor/context-tools
  • refactor/req-streaming
  • refactor/xai-structured-objects
  • zai

16 Oct 2025 07:55PM UTC coverage: 50.414% (+0.05%) from 50.361%
2efaac748d0d8b3d0ad85c2efe8179a44c2a7091

push

github

web-flow
Fix #65: Add HTTP status validation to StreamServer (#109)

* Fix #65: Add HTTP status validation to StreamServer

- Check HTTP status code before processing data chunks
- Build proper API error from error JSON response body
- Halt stream with error when status >= 400
- Prevents error JSON from being passed to SSE parser

Previously, HTTP error responses (4xx/5xx) were being passed to the
SSE parser which couldn't parse them, resulting in empty streams with
no error information. Now errors are properly captured and propagated
through the metadata task.

Amp-Thread-ID: https://ampcode.com/threads/T-2bb95463-44a7-4d42-887c-2c7d24d5155a
Co-authored-by: Amp <amp@ampcode.com>

* Add test coverage for HTTP error status code handling

- Test 401 authentication errors with JSON error response
- Test 5xx server errors
- Test non-JSON error responses
- Verify error details are properly extracted and returned

* Formatting

---------

Co-authored-by: Amp <amp@ampcode.com>

10 of 12 new or added lines in 1 file covered. (83.33%)

3285 of 6516 relevant lines covered (50.41%)

447.04 hits per line

Relevant lines Covered
Build:
Build:
6516 RELEVANT LINES 3285 COVERED LINES
447.04 HITS PER LINE
Source Files on main
  • Tree
  • List 79
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
2efaac74... main Fix #65: Add HTTP status validation to StreamServer (#109) * Fix #65: Add HTTP status validation to StreamServer - Check HTTP status code before processing data chunks - Build proper API error from error JSON response body - Halt stream with err... push 16 Oct 2025 07:56PM UTC web-flow github
50.41
f543f957... fix/issue-65-http-status-validation Formatting Pull #109 16 Oct 2025 07:54PM UTC mikehostetler github
50.41
c55545c1... fix/issue-65-http-status-validation Fix #65: Add HTTP status validation to StreamServer - Check HTTP status code before processing data chunks - Build proper API error from error JSON response body - Halt stream with error when status >= 400 - Prevents error JSON from being passed ... Pull #109 16 Oct 2025 07:50PM UTC mikehostetler github
50.25
59946ee0... fix/issue-65-http-status-validation Fix #65: Add HTTP status validation to StreamServer - Check HTTP status code before processing data chunks - Build proper API error from error JSON response body - Halt stream with error when status >= 400 - Prevents error JSON from being passed ... Pull #108 16 Oct 2025 07:44PM UTC mikehostetler github
50.26
2cd4206e... main fix: Use correct fields for ReqLLM.Error.Validation.Error (#107) * fix: Use correct fields for ReqLLM.Error.Validation.Error Fixes #96 - Changed from undefined 'errors:' field to 'reason:' field when raising validation errors for unsupported par... push 16 Oct 2025 07:31PM UTC web-flow github
50.36
a8ce5391... fix/issue-96-validation-error-fields Weird formatting issue Pull #107 16 Oct 2025 07:26PM UTC mikehostetler github
50.32
e271ce3c... main Update model metadata and add new providers - Updated last_checked timestamps for multiple Amazon Bedrock models to reflect recent checks. - Added new model definitions for Alibaba, Fireworks AI, GitHub Models, Moonshot AI, and Zhipu AI, expandin... push 16 Oct 2025 12:33PM UTC mikehostetler github
50.37
73d05073... main Refactor: use ReqLLM.ToolCall directly, remove normalization layer (#105) * chore: clean up whitespace in stream_server.ex Remove trailing whitespace from documentation and code comments. 🤖 Generated with [Claude Code](https://claude.com/claude... push 16 Oct 2025 12:28PM UTC web-flow github
50.4
3c5be3f5... fix/tool_calls Enhance ReqLLM.ToolCall functionality and simplify tool call extraction - Added new functions to `ReqLLM.ToolCall` for extracting function names, JSON arguments, and decoding arguments into maps. - Implemented `find_args/2` to streamline the proc... Pull #105 16 Oct 2025 12:27PM UTC mikehostetler github
50.37
167f6f17... fix/tool_calls Merge branch 'main' into fix/tool_calls Pull #105 16 Oct 2025 11:53AM UTC web-flow github
50.04
See All Builds (166)

Badge your Repo: req_llm

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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

© 2025 Coveralls, Inc