Update OpenAILLMAdapter.get_messages_for_logging() to truncate "input_audio" message data
This commit is contained in:
@@ -105,6 +105,8 @@ class OpenAILLMAdapter(BaseLLMAdapter[OpenAILLMInvocationParams]):
|
|||||||
if item["type"] == "image_url":
|
if item["type"] == "image_url":
|
||||||
if item["image_url"]["url"].startswith("data:image/"):
|
if item["image_url"]["url"].startswith("data:image/"):
|
||||||
item["image_url"]["url"] = "data:image/..."
|
item["image_url"]["url"] = "data:image/..."
|
||||||
|
if item["type"] == "input_audio":
|
||||||
|
item["input_audio"]["data"] = "..."
|
||||||
if "mime_type" in msg and msg["mime_type"].startswith("image/"):
|
if "mime_type" in msg and msg["mime_type"].startswith("image/"):
|
||||||
msg["data"] = "..."
|
msg["data"] = "..."
|
||||||
msgs.append(msg)
|
msgs.append(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user