Skip to content

Drama speech: expose request sampling controls #1273

Closed

Description

@krunkosaurus

The native Drama engine accepts temperature, top-p, top-k and a seed, but /v1/audio/speech rejects these request fields and always submits the server's sampling constants.

Proposed contribution: accept optional request sampling controls, preserve the current behavior when fields are absent or null, validate their types/ranges before engine submission, and carry them through reference-conditioned requests, streaming and redraws. The HTTP contract should document a portable top-k range and deterministic explicit-seed retry behavior. This does not change the sampler kernels or claim parity between different backends.

Behavioral reference: Sogni-AI/drama3-mlx public generate API. The proposed Zig code will extend TensorFold's own implementation under Apache-2.0; no Fish-derived MLX source will be copied.

Target: current native main, with separate backports to the engine pins used by plotarmordev/drama-tensorfold. Tests will capture actual submitted engine requests, cover invalid numeric edge cases and preserve existing default-seed/redraw assertions. Real-model checks and any unrun backends will be reported separately from host tests.

Activity

  1. krunkosaurus commented on Oct 25, 2026

    @krunkosaurus
    ContributorAuthor

    /atc claim 5 7

  2. krunkosaurus commented on Oct 25, 2026

    @krunkosaurus
    ContributorAuthor

    /atc presence 1f8909968c447718d32d6074c99efd25e11faaf4d73497e1e2eaca20946ac68e

  3. krunkosaurus commented on Oct 25, 2026

    @krunkosaurus
    ContributorAuthor

    /atc release

  4. ashhart commented on Oct 26, 2026

    @ashhart
    Owner

    Done in #1277: /v1/audio/speech takes per-request temperature, top_p, top_k and seed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions