log input of response API

This commit is contained in:
Ishaan Jaff 2025-03-11 22:34:18 -07:00
parent 51dc24a405
commit b790f0a5c6
3 changed files with 24 additions and 1 deletions

View file

@ -716,6 +716,11 @@ def function_setup( # noqa: PLR0915
call_type == CallTypes.aspeech.value or call_type == CallTypes.speech.value
):
messages = kwargs.get("input", "speech")
elif (
call_type == CallTypes.aresponses.value
or call_type == CallTypes.responses.value
):
messages = args[0] if len(args) > 0 else kwargs["input"]
else:
messages = "default-message-value"
stream = True if "stream" in kwargs and kwargs["stream"] is True else False