radiance 1.0.4

- oh-my-pi works unmodified on every Qwen model. Its requests carry a top-level
  preserve_thinking, which was refused as an unknown field; it now reaches the chat template the
  way enable_thinking does. Its task tool's `model` parameter is the `not` of every JSON type,
  which the 1.0.1 fix did not cover: any `not` that excludes every value is now an argument no
  call writes, under every chat template and Flash-Next's declared format.
- Command-line defaults and bounds for what a request leaves out. A flag left unset changes
  nothing; /server_info reports the values under request_defaults.
  - Sampling: --typical-p, --presence-penalty, --frequency-penalty, --repetition-penalty,
    --repeat-last-n, --dry-multiplier, --dry-base, --dry-allowed-length, --dry-penalty-last-n,
    --dry-sequence-breakers, --xtc-probability, --xtc-threshold.
  - Requests: --default-max-tokens N|auto, --max-tokens-cap, --max-n, --max-queued-requests,
    --max-stop-strings, --max-stop-bytes.
  - Chat template: --chat-template-kwargs JSON|@FILE sets template variables a request's own
    chat_template_kwargs override; --reasoning-format auto|none.
  - HTTP: --http-threads, --read-timeout, --write-timeout, --keep-alive-timeout, --max-body-mib,
    --retry-after, --no-cors.
  - Media: --image-min-pixels, --image-max-pixels, --video-min-pixels, --video-max-pixels,
    --video-fps, --video-min-frames, --video-max-frames, --video-max-frame-tokens,
    --max-source-pixels.
- Under --reasoning-effort none or minimal, a request that sets enable_thinking true now thinks
  instead of having the deployment default override it.
- --temp, --top-p, --min-p and --top-k refuse a value that is not a number instead of reading
  it as 0.
This commit is contained in:
Deadcode committed 2026-10-04 17:52:35 +02:00
1 parent d008fdb32b
commit 09fb41735b
23 files changed
+2478 -104

No files matched your search

+29
View File
@@ -303,4 +303,33 @@ TEST(every_admitted_video_format_decodes) {
}
}
/* THE BANDS ARE CHECKED AS A WHOLE, because the command line can replace one end of a band and
* leave the other to the container: a minimum stated alone can land above the container's maximum. */
TEST(a_media_configuration_with_an_empty_band_names_it) {
mm::VisionConfig c;
c.image_min_pixels = 65536;
c.image_max_pixels = 16777216;
c.video_min_pixels = 4096;
c.video_max_pixels = 25165824;
std::string why;
CHECK_EQ(c.check(&why), RAD_OK);
mm::VisionConfig b = c;
b.image_min_pixels = 32 << 20;
CHECK_EQ(b.check(&why), RAD_E_INVAL);
CHECK(why.find("image_max_pixels") != std::string::npos);
b = c;
b.video_max_pixels = 1000;
CHECK_EQ(b.check(&why), RAD_E_INVAL);
CHECK(why.find("video_max_pixels") != std::string::npos);
b = c;
b.fps = 0.0;
CHECK_EQ(b.check(&why), RAD_E_INVAL);
b = c;
b.min_frames = 10;
b.max_frames = 5;
CHECK_EQ(b.check(&why), RAD_E_INVAL);
CHECK(why.find("max_frames") != std::string::npos);
}
RAD_TEST_MAIN()