forked from phoenix/litellm-mirror
fix(types/utils.py): fix streaming function name
This commit is contained in:
parent
31829855c0
commit
1019355527
2 changed files with 10 additions and 8 deletions
|
@ -166,7 +166,9 @@ class FunctionCall(OpenAIObject):
|
||||||
|
|
||||||
class Function(OpenAIObject):
|
class Function(OpenAIObject):
|
||||||
arguments: str
|
arguments: str
|
||||||
name: str
|
name: Optional[
|
||||||
|
str
|
||||||
|
] # can be None - openai e.g.: ChoiceDeltaToolCallFunction(arguments='{"', name=None), type=None)
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
|
@ -9483,8 +9483,8 @@ class CustomStreamWrapper:
|
||||||
model_response.choices[0].delta = Delta(**_json_delta)
|
model_response.choices[0].delta = Delta(**_json_delta)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
verbose_logger.error(
|
verbose_logger.error(
|
||||||
"litellm.CustomStreamWrapper.chunk_creator(): Exception occured - {}".format(
|
"litellm.CustomStreamWrapper.chunk_creator(): Exception occured - {}\n{}".format(
|
||||||
str(e)
|
str(e), traceback.format_exc()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
verbose_logger.debug(traceback.format_exc())
|
verbose_logger.debug(traceback.format_exc())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue