mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fixing huggingface tgi index issue for best of
This commit is contained in:
parent
cd82b4f07a
commit
9ec8ea89bb
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ def completion(
|
|||
for token in item["tokens"]:
|
||||
sum_logprob += token["logprob"]
|
||||
message_obj = Message(content=item["generated_text"], logprobs=sum_logprob)
|
||||
choice_obj = Choices(finish_reason=item["finish_reason"], index=idx, message=message_obj)
|
||||
choice_obj = Choices(finish_reason=item["finish_reason"], index=idx+1, message=message_obj)
|
||||
choices_list.append(choice_obj)
|
||||
model_response["choices"].extend(choices_list)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue