Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add optional image support to CreateResponseMessage for Nano Banana (…
…litellm + gemini-flash-2.5-image-preview)
  • Loading branch information
nmdimas committed Sep 22, 2025
commit 5fd53547ceeb3ed63679171375e16c33ea8f5ac9
2 changes: 2 additions & 0 deletions src/Responses/Chat/CreateResponseMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ private function __construct(
public readonly array $toolCalls,
public readonly ?CreateResponseFunctionCall $functionCall,
public readonly ?CreateResponseChoiceAudio $audio = null,
public readonly ?array $image = null,
) {}

/**
Expand All @@ -42,6 +43,7 @@ public static function from(array $attributes): self
$toolCalls,
isset($attributes['function_call']) ? CreateResponseFunctionCall::from($attributes['function_call']) : null,
isset($attributes['audio']) ? CreateResponseChoiceAudio::from($attributes['audio']) : null,
$attributes['image'] ?? null,
);
}

Expand Down