mlx-bun library API
    Preparing search index...

    Methods publish in order and await each publication before publishing again. Only committed tokens cross this boundary. Tentative canvases/drafts stay private.

    interface GenerationOutput {
        commit(
            tokenIds: readonly number[],
            logprobs?: readonly (TokenLogprobs | undefined)[],
        ): Promise<false | void>;
        progress(completed: number, total?: number): Promise<void>;
    }
    Index
    • False requests a normal stop. The method must stop publishing and settle its metrics after releasing its private execution state.

      Parameters

      • tokenIds: readonly number[]
      • Optionallogprobs: readonly (TokenLogprobs | undefined)[]

      Returns Promise<false | void>