mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-07 04:45:44 +00:00
Merge branch 'meta-llama:main' into main
This commit is contained in:
commit
3ee415dc35
16 changed files with 140 additions and 116 deletions
|
@ -119,7 +119,7 @@ class TGIAdapter(Inference):
|
|||
)
|
||||
stop_reason = None
|
||||
if response.details.finish_reason:
|
||||
if response.details.finish_reason == "stop":
|
||||
if response.details.finish_reason in ["stop", "eos_token"]:
|
||||
stop_reason = StopReason.end_of_turn
|
||||
elif response.details.finish_reason == "length":
|
||||
stop_reason = StopReason.out_of_tokens
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue