(&self)
| 133 | |
| 134 | impl 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 | |
| 144 | pub const TOP_LOGPROBS_MAX: u8 = 20; |
nothing calls this directly
no outgoing calls
no test coverage detected