Skip to content

Commit 1d0c10f

Browse files
committed
Use withImageFile() along with new InlineFile() for specifying inline images
1 parent 871fc06 commit 1d0c10f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docs/ARCHITECTURE.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ _Note: Since this omits the model parameter, the SDK will automatically determin
156156
##### Fluent API
157157
```php
158158
$text = AiClient::prompt('Generate alternative text for this image.')
159-
->withImage('image/png', $base64blob)
159+
->withImageFile(new InlineFile('image/png', $base64blob))
160160
->generateText();
161161
```
162162

@@ -326,7 +326,6 @@ direction LR
326326
327327
class PromptBuilder {
328328
+withText(string $text) self
329-
+withImage(string $mimeType, string $base64Blob) self
330329
+withImageFile(File $file) self
331330
+withAudioFile(File $file) self
332331
+withVideoFile(File $file) self
@@ -375,7 +374,6 @@ direction LR
375374
class MessageBuilder {
376375
+usingRole(MessageRole $role) self
377376
+withText(string $text) self
378-
+withImage(string $mimeType, string $base64Blob) self
379377
+withImageFile(File $file) self
380378
+withAudioFile(File $file) self
381379
+withVideoFile(File $file) self
@@ -487,7 +485,6 @@ direction LR
487485
488486
class PromptBuilder {
489487
+withText(string $text) self
490-
+withImage(string $mimeType, string $base64Blob) self
491488
+withImageFile(File $file) self
492489
+withAudioFile(File $file) self
493490
+withVideoFile(File $file) self
@@ -536,7 +533,6 @@ direction LR
536533
class MessageBuilder {
537534
+usingRole(MessageRole $role) self
538535
+withText(string $text) self
539-
+withImage(string $mimeType, string $base64Blob) self
540536
+withImageFile(File $file) self
541537
+withAudioFile(File $file) self
542538
+withVideoFile(File $file) self

0 commit comments

Comments
 (0)