We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25a256 commit 49f3d15Copy full SHA for 49f3d15
lib/llm/src/protocols/openai/chat_completions.rs
@@ -236,11 +236,9 @@ impl OpenAIStopConditionsProvider for NvCreateChatCompletionRequest {
236
impl OpenAIOutputOptionsProvider for NvCreateChatCompletionRequest {
237
fn get_logprobs(&self) -> Option<u32> {
238
match self.inner.logprobs {
239
- Some(true) => {
240
- match self.inner.top_logprobs {
241
- Some(top_logprobs) => Some(top_logprobs as u32),
242
- None => Some(1_u32),
243
- }
+ Some(true) => match self.inner.top_logprobs {
+ Some(top_logprobs) => Some(top_logprobs as u32),
+ None => Some(1_u32),
244
},
245
Some(false) => None,
246
None => None,
0 commit comments