mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* fix(nvidia_nim): forward logprobs and return them on chat and /v1/responses NVIDIA NIM serves logprobs and top_logprobs, but nvidia_nim refused both with UnsupportedParamsError. The Responses bridge also never asked chat for logprobs when include requested message.output_text.logprobs, leaked top_logprobs on its own, and dropped the logprobs the model returned. It now maps include to chat logprobs and puts the tokens on output_text and the streaming events * refactor(responses): leave the bridge logprobs to the open bridge PR and keep this change to nvidia_nim params * fix(nvidia_nim): drop top_logprobs sent without logprobs under drop_params * fix(nvidia_nim): gate logprobs on the cost map and refuse logprobs shapes NIM cannot take * fix(nvidia_nim): read the logprobs flag for nvidia_nim/ prefixed models and name the proxy drop_params setting --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| passthrough | ||
| rerank | ||
| __init__.py | ||
| test_nvidia_nim.py | ||