File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1414from openai .types .chat .chat_completion_message_tool_call import (
1515 ChatCompletionMessageToolCall ,
1616)
17+ from openai .types .chat import ChatCompletionContentPartImageParam
1718from pydantic import BaseModel , ConfigDict , Field
1819
1920from eval_protocol .get_pep440_version import get_pep440_version
@@ -462,9 +463,9 @@ class Message(BaseModel):
462463 """Chat message model with trajectory evaluation support."""
463464
464465 role : str # assistant, user, system, tool
465- content : Optional [Union [ str , List [ ChatCompletionContentPartTextParam ]]] = Field (
466- default = "" , description = "The content of the message."
467- )
466+ content : Optional [
467+ Union [ str , List [ Union [ ChatCompletionContentPartTextParam , ChatCompletionContentPartImageParam ]]]
468+ ] = Field ( default = "" , description = "The content of the message." )
468469 reasoning_content : Optional [str ] = Field (
469470 default = None , description = "Optional hidden chain-of-thought or reasoning content."
470471 )
You can’t perform that action at this time.
0 commit comments