mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-01 16:24:44 +00:00
kind of working
This commit is contained in:
parent
b63982ef00
commit
3c24be8273
6 changed files with 42 additions and 19 deletions
|
@ -110,9 +110,11 @@ async def stream_and_store_openai_completion(
|
|||
logprobs_content = choice_data["logprobs_content_parts"]
|
||||
final_logprobs = OpenAIChoiceLogprobs(content=logprobs_content) if logprobs_content else None
|
||||
|
||||
# Ensure finish_reason is a string as required by OpenAIChoice
|
||||
finish_reason = choice_data["finish_reason"] or "unknown"
|
||||
assembled_choices.append(
|
||||
OpenAIChoice(
|
||||
finish_reason=choice_data["finish_reason"],
|
||||
finish_reason=finish_reason,
|
||||
index=choice_idx,
|
||||
message=message,
|
||||
logprobs=final_logprobs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue