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

agentjido / req_llm / e8f08de9a9667270bc40a535ed5371944976da70 / 2
49%
main: 49%

Build:
DEFAULT BRANCH: main
Ran 15 Sep 2025 02:26PM UTC
Files 52
Run time 2s
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.4%) from 22.637%
e8f08de9a9667270bc40a535ed5371944976da70.2

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)

532 of 2307 relevant lines covered (23.06%)

121.85 hits per line

Source Files on job e8f08de9a9667270bc40a535ed5371944976da70.2
  • Tree
  • List 52
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • e8f08de9 on github
  • Prev Job for on main (#6edf88e447e2f58af02cb8ccac89c6bab7d957b9.1)
  • Next Job for on main (#c4f63f2fb937df9b76eb52b707fa8befa45c7332.1)
  • 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