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

umputun / tg-spam / 19248145793
83%

Build:
DEFAULT BRANCH: master
Ran 10 Nov 2025 10:32PM UTC
Jobs 1
Files 31
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

10 Nov 2025 10:27PM UTC coverage: 81.835% (+0.03%) from 81.809%
19248145793

push

github

web-flow
fix: support GPT-5 and reasoning models with MaxCompletionTokens (#333)

OpenAI API changed requirements for GPT-5 and reasoning models (o1, o3, o4).
These models now require max_completion_tokens parameter instead of the
deprecated max_tokens parameter.

Added isReasoningModel() method to detect models requiring the new parameter.
The method checks for o1/o3/o4 prefixes and gpt-5 in model name.

Changes:
- add isReasoningModel() helper to detect reasoning/GPT-5 models
- use MaxCompletionTokens for reasoning models, MaxTokens for standard models
- add comprehensive tests for model detection and parameter usage
- verified against real OpenAI API with gpt-4o-mini and gpt-5-mini

Related to #332

13 of 13 new or added lines in 1 file covered. (100.0%)

6163 of 7531 relevant lines covered (81.84%)

272.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19248145793.1 10 Nov 2025 10:32PM UTC 31
81.84
GitHub Action Run
Source Files on build 19248145793
  • Tree
  • List 31
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 39bff6c0 on github
  • Prev Build on master (#19082335171)
  • Next Build on master (#19289384684)
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