MCPcopy
hub / github.com/lm-sys/FastChat / create_openai_logprobs

Function create_openai_logprobs

fastchat/serve/openai_api_server.py:255–257  ·  view source on GitHub ↗

Create OpenAI-style logprobs.

(logprob_dict)

Source from the content-addressed store, hash-verified

253
254
255def create_openai_logprobs(logprob_dict):
256 """Create OpenAI-style logprobs."""
257 return LogProbs(**logprob_dict) if logprob_dict is not None else None
258
259
260def _add_to_set(s, new_stop):

Callers 2

create_completionFunction · 0.85

Calls 1

LogProbsClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…