Record Mistral random_seed as Model Evidence
Mistral exposes random_seed for deterministic sampling across calls, but a seed alone cannot identify the model behavior an evaluation exercised. A production evidence record should bind the seed to the exact model version, complete request, sampling settings, endpoint, policy decision, and returned output. This guide defines the artifact and the release tests that keep model evidence separate from runtime authorization.

Mistral's Chat Completion API defines random_seed as the seed used for random sampling and says setting it makes different calls deterministic. That field is valuable evidence only when the record also identifies the model and the complete inference request. A seed copied into a test report beside the words "same result" proves very little after a model alias moves, a temperature changes, or middleware edits the message array.
I would reject a release packet that records the seed but omits the final provider-bound request.
TL;DR
- Record
random_seedwith the exact Mistral model version, endpoint, request body, sampling settings and policy version, along with output. - Pin production evaluations to a fixed major-minor model identifier. Mistral warns that aliases can expose deployments to silent behavior updates.
- Treat repeated output as test evidence for one defined request, rather than a universal guarantee about future model behavior.
- Keep runtime authorization separate. A seed influences sampling; it grants no permission to call a model or send a data class.
A seed identifies one sampling input
The Mistral Chat Completion API reference describes random_seed as an integer or null value used for random sampling. When it is set, Mistral says different calls generate deterministic results. The same request schema exposes other generation controls, including temperature, top_p, presence penalty, frequency penalty, stop sequences, response format and tools, plus the selected model.
That schema tells an evidence designer what must travel with the seed. Capture the complete ordered message list and every explicit sampling field. Preserve omitted fields as omissions because the API reference says the default temperature varies by model. Record the endpoint, request time, service tier if supplied, tool definitions, output format, and provider response identifier. Hashing the canonical request body can make later comparisons faster, but keep the readable body under the approved retention policy.
The AI audit log schema guide supplies the surrounding identity and policy fields. The model-evidence object should join to that request decision through one stable correlation identifier.
Model version belongs beside the seed
Mistral's model lifecycle policy separates fixed model identifiers from aliases. A name in the model-name-major-minor form points to a fixed major and minor version. A model-name-latest alias tracks the latest version across generations, while a major alias tracks the latest minor release within that generation. Mistral warns that aliases may expose users to silent updates in behavior and pricing and recommends a specific major-minor identifier for precise control.
That warning changes the evidentiary value of a replay. The same seed and request sent to an alias on two dates may reach different model versions. Labs and Public Preview stages also allow silent updates under Mistral's current lifecycle policy. Record the requested model string and the resolved version when the provider exposes it. If resolution evidence is unavailable, label the test as alias-scoped and time-bound.
The AI model governance guide explains the registry side of this record. The release artifact should point to the exact evaluated model entry, its lifecycle stage, evaluation date, and approved production route.
Sampling settings complete the evidence
Mistral's sampling guide explains that temperature changes output diversity: lower values focus probability on likely responses, while higher values increase variety. It also documents top_p, multiple completions, and presence and frequency penalties as controls that influence generation.
Capture those values exactly as sent. An application-level configuration snapshot is insufficient when middleware can apply defaults or rewrite provider fields. Inspect the final serialized HTTP body immediately before egress and preserve a canonical copy. If the application omits temperature, store that fact along with the exact model, since Mistral's API reference says the appropriate default depends on the target model.
A useful review page has two panes. The left pane shows the canonical request in black monospace text with the seed and model highlighted in blue. The right pane shows the returned content and provider request identifier. A thin red marker beside any changed byte turns a vague replay discussion into a reviewable diff.
The replay suite tests a bounded claim
Build the acceptance suite around one claim: this recorded configuration produced this output at this time. Send the identical pinned-model request several times using the same seed and compare the returned content, finish reason, tool calls, and usage fields that matter to the workload. Then mutate one input at a time.
- Change only
random_seed. - Remove the field and preserve all other request bytes.
- Change temperature while retaining the seed.
- Replace a fixed major-minor identifier with an alias.
- Reorder messages or tool definitions.
- Switch the response format or stop sequence.
- Route through middleware that adds a system message.
- Repeat after a model migration and mark the evidence as a new test series.
Treat output differences as evidence about the tested configuration. Treat matching outputs as a successful replay for that same configuration. Provider changes, infrastructure details, and model lifecycle can alter the surrounding conditions, so avoid turning one replay result into a permanent platform guarantee.
The LLM API parameter allowlisting guide can keep production request fields inside the tested envelope. Its policy decision is separate from the model evaluation result.
Authorization and reproducibility remain separate
random_seed influences generation. It carries no authenticated user, role, business purpose, or data classification. The request boundary still has to decide who may call the selected Mistral route and which information may cross it. A reproducible prohibited request remains prohibited.
Join the two records without merging their meanings. The policy record should identify the caller context, approved route, data class, policy version, and permit or deny outcome. The model-evidence record should identify the exact request, seed, model version, sampling settings, provider response, and comparison result. A shared request ID connects them for investigation.
During failure analysis, a denied request has policy evidence and zero provider output. A permitted request can have both policy evidence and model evidence. Direct calls that bypass the managed route may produce provider responses while leaving a gap in enterprise authorization records. The per-route policy guide covers the destination and identity decision that belongs before inference.
DeepInspect
DeepInspect can enforce the tested request envelope on authenticated HTTP traffic deliberately routed through its proxy to Mistral. It can bind the caller and application operation to an approved model and parameter policy, block unapproved seed or sampling changes before egress, and write the final route decision beside a canonical request reference.
Mistral owns model execution and the documented behavior of random_seed. Evaluation teams own replay criteria and interpretation. Application teams supply identity context. Local inference, offline evaluation runners, direct provider calls, and HTTP traffic that bypasses the proxy remain outside DeepInspect's enforcement boundary.
Book a technical deep dive at deepinspect.ai.
Frequently asked questions
- Does random_seed guarantee the same output forever?
Mistral documents deterministic results across calls when
random_seedis set. Scope the operational claim to the complete tested request and model conditions. A fixed seed cannot freeze an alias, restore an old model after retirement, or cancel changes to messages and sampling controls. Preserve the exact model version and test date, then rerun the suite after every approved model or request-contract change.- Should production traffic use one fixed seed?
That choice depends on the workload. A regression test benefits from controlled sampling because output comparisons become more useful. A production writing or ideation feature may require variation. Record the route's intended behavior and keep the seed server-owned if callers should stay inside a tested contract. Avoid treating the presence of a fixed seed as a security control. It is an inference parameter.
- What should be hashed in the evidence record?
Hash a canonical representation of the final provider-bound request, including the ordered messages, model, seed, explicit sampling fields, response format, tools, and any injected system content. Preserve the canonicalization method and version. Keep the readable request under the relevant data-retention policy because investigators need to understand the content as well as verify integrity. A hash alone cannot explain why two requests differ.
- How should model aliases appear in an evaluation report?
Record the alias exactly as requested, the evaluation timestamp, and the resolved version when available. Label the result as time-bound if the provider response lacks resolution evidence. For release acceptance, Mistral recommends pinning a specific major-minor model identifier when precise control is required. A migration should create a new evidence series rather than overwriting the old record.