mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +00:00
stream completion log probs
This commit is contained in:
parent
9c13a7b76b
commit
44069404fd
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ async def process_completion_stream_response(
|
|||
yield CompletionResponseStreamChunk(
|
||||
delta=text,
|
||||
stop_reason=stop_reason,
|
||||
logprobs=convert_openai_completion_logprobs(choice.logprobs),
|
||||
)
|
||||
if finish_reason:
|
||||
if finish_reason in ["stop", "eos", "eos_token"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue