MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / top_logprobs

Method top_logprobs

crates/opencode-provider/src/responses.rs:135–141  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

133
134impl LogprobsSetting {
135 pub fn top_logprobs(&self) -> Option<u8> {
136 match self {
137 LogprobsSetting::Enabled(true) => Some(TOP_LOGPROBS_MAX),
138 LogprobsSetting::Enabled(false) => None,
139 LogprobsSetting::TopN(n) => Some(*n),
140 }
141 }
142}
143
144pub const TOP_LOGPROBS_MAX: u8 = 20;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected