mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 15:46:47 +00:00
nit
This commit is contained in:
parent
d4ac8ff5f7
commit
332215ed41
@ -116,7 +116,7 @@ def _format_for_tracing(messages: Sequence[MessageV1]) -> list[MessageV1]:
|
||||
for message in messages:
|
||||
message_to_trace = message
|
||||
for idx, block in enumerate(message.content):
|
||||
# Update image content blocks to OpenAI # Chat Completions format.
|
||||
# Update image content blocks to OpenAI Chat Completions format.
|
||||
if (
|
||||
block.get("type") == "image"
|
||||
and is_data_content_block(block) # type: ignore[arg-type] # permit unnecessary runtime check
|
||||
|
Loading…
Reference in New Issue
Block a user