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

agentjido / req_llm / e8f08de9a9667270bc40a535ed5371944976da70
49%

Build:
DEFAULT BRANCH: main
Ran 15 Sep 2025 02:26PM UTC
Jobs 2
Files 52
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

15 Sep 2025 02:25PM UTC coverage: 23.06% (+0.2%) from 22.875%
e8f08de9a9667270bc40a535ed5371944976da70

push

github

web-flow
Fix OpenAI o1 model parameter translation (resolves #8) (#11)

* Implement provider option translation and enhance error handling

- Introduced `translate_options/3` callback in the `ReqLLM.Provider` module to allow providers to modify option keys and values before API calls, addressing parameter name differences and model-specific restrictions.
- Added `on_unsupported` option in the schema to manage unsupported parameter translations with configurable behaviors (warn, error, ignore).
- Enhanced the `ReqLLM.Generation` module to utilize the new translation capabilities, ensuring proper handling of options during request preparation.
- Implemented translation helper functions in the `ReqLLM.Provider.DSL` module for renaming and dropping options, along with combining warnings.
- Added comprehensive test coverage for translation functionality in both the `OpenAI` provider and the generation pipeline, ensuring robust validation of option handling.

* Enhance documentation for provider-specific parameter translation

- Updated AGENTS.md to include the `translate_options/3` callback, detailing its role in handling model-specific parameter requirements.
- Added a section in usage-rules.md explaining the automatic parameter translation feature, with examples demonstrating its implementation.
- Revised README.md to highlight the automatic parameter translation for model-specific requirements, improving clarity for users.

* Fix OpenAI o1 model parameter translation

- Add translate_options/3 callback to Provider behavior for model-specific parameter translation
- Implement OpenAI o1 model parameter translation: max_tokens → max_completion_tokens and drop temperature
- Fix encode_chat_body to use maybe_put for conditional parameters instead of hardcoding
- Add comprehensive tests for translation functionality and integration
- Update documentation to reflect new options translation capability
- Add demo script proving Issue #8 resolution

Resolves #8: OpenAI o1... (continued)

3 of 32 new or added lines in 2 files covered. (9.38%)

1 existing line in 1 file now uncovered.

532 of 2307 relevant lines covered (23.06%)

243.67 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
11
4.23
4.23% lib/req_llm/providers/openai.ex
18
8.33
8.33% lib/req_llm/generation.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
8.33
8.33% lib/req_llm/generation.ex
Jobs
ID Job ID Ran Files Coverage
1 e8f08de9a9667270bc40a535ed5371944976da70.1 15 Sep 2025 02:26PM UTC 52
22.83
GitHub Action Run
2 e8f08de9a9667270bc40a535ed5371944976da70.2 15 Sep 2025 02:26PM UTC 52
23.06
GitHub Action Run
Source Files on build e8f08de9a9667270bc40a535ed5371944976da70
  • Tree
  • List 52
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e8f08de9 on github
  • Prev Build on main (#6EDF88E4...)
  • Next Build on main (#C4F63F2F...)
  • Delete
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