forked from phoenix/litellm-mirror
test: trigger ci/cd build
This commit is contained in:
parent
4d0615391b
commit
9433c3c11b
3 changed files with 8 additions and 4 deletions
|
@ -132,6 +132,9 @@ def map_finish_reason(finish_reason: str): # openai supports 5 stop sequences -
|
|||
return "content_filter"
|
||||
elif finish_reason == "ERROR": # openai currently doesn't support an 'error' finish reason
|
||||
return "stop"
|
||||
# huggingface mapping https://huggingface.github.io/text-generation-inference/#/Text%20Generation%20Inference/generate_stream
|
||||
elif finish_reason == "eos_token" or finish_reason == "stop_sequence":
|
||||
return "stop"
|
||||
return finish_reason
|
||||
|
||||
class FunctionCall(OpenAIObject):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue