mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 12:59:47 +00:00
Nutanix AI on!
This commit is contained in:
parent
1e2faa461f
commit
64c5d38ae9
10 changed files with 234 additions and 2 deletions
|
|
@ -43,6 +43,8 @@ def get_sampling_options(params: SamplingParams) -> dict:
|
|||
|
||||
|
||||
def text_from_choice(choice) -> str:
|
||||
if hasattr(choice, "message") and choice.message:
|
||||
return choice.message.content
|
||||
if hasattr(choice, "delta") and choice.delta:
|
||||
return choice.delta.content
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue