Skip to main content

read_client_layer

Function read_client_layer 

Source
fn read_client_layer(
    body: &Value,
    trust_client_sampling: bool,
) -> (InferenceConfig, Vec<FieldIssue>, Vec<String>)
Expand description

Read the client’s own sampling parameters and apply the trust gate.

Returns the layer to fold, what could not be read, and what the gate dropped. Both lists are reported rather than swallowed: between them they are every way a value the client actually sent can fail to reach llama-server from this stage, and until recently neither was visible.