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

KusionStack / karpor / 42347965157
66%

Build:
DEFAULT BRANCH: main
Ran 07 Nov 2026 06:41AM UTC
Jobs 1
Files 68
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

07 Nov 2026 06:39AM UTC coverage: 65.608% (+0.2%) from 65.439%
42347965157

push

github

web-flow
fix(ai): pass the configured top-p to the Azure OpenAI backend (#874)

`--ai-top-p` is ignored by the Azure OpenAI backend: `AzureAIClient`
never stores `cfg.TopP` and builds its requests (`Generate` and
`GenerateStream`) with only `Temperature`. The `openai` and `deepseek`
backends already send it.

**Fix:** store `topP` in `Configure` and build both requests through a
shared `newRequest`, which follows the OpenAI client: `top_p` is left
out when it has the API default (1), so reasoning deployments that only
accept default sampling values keep working with the default flag value.

The `huggingface` backend also ignores `--ai-top-p` and is left
unchanged here, since its API may not take the parameter in the same
way.

**Test:** `azureopenai_test.go` checks the request body sent by
`Generate`: a custom `top_p` is sent (red on main: missing) and the
default is omitted. `go test ./pkg/infra/ai/` is green.

---
This change was prepared with the help of an AI coding assistant (Claude
Code) and submitted by Alex Castillo González.

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

2 existing lines in 1 file now uncovered.

4525 of 6897 relevant lines covered (65.61%)

0.72 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
57.4
-0.9% pkg/syncer/single_cluster_sync_manager.go
Jobs
ID Job ID Ran Files Coverage
1 42347965157.1 07 Nov 2026 06:41AM UTC 68
65.61
GitHub Action Run
Source Files on build 42347965157
  • Tree
  • List 68
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 50bed04f on github
  • Prev Build on main (#39894634967)
  • Next Build on main (#42742650943)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc