pub(crate) fn softmax_of( logprobs: &BTreeMap<String, f64>, temperature: f64, ) -> BTreeMap<String, f64>