@@ -156,7 +156,7 @@ _Note: Since this omits the model parameter, the SDK will automatically determin
156
156
##### Fluent API
157
157
``` php
158
158
$text = AiClient::prompt('Generate alternative text for this image.')
159
- ->withImage( 'image/png', $base64blob)
159
+ ->withImageFile(new InlineFile( 'image/png', $base64blob) )
160
160
->generateText();
161
161
```
162
162
@@ -326,7 +326,6 @@ direction LR
326
326
327
327
class PromptBuilder {
328
328
+withText(string $text) self
329
- +withImage(string $mimeType, string $base64Blob) self
330
329
+withImageFile(File $file) self
331
330
+withAudioFile(File $file) self
332
331
+withVideoFile(File $file) self
@@ -375,7 +374,6 @@ direction LR
375
374
class MessageBuilder {
376
375
+usingRole(MessageRole $role) self
377
376
+withText(string $text) self
378
- +withImage(string $mimeType, string $base64Blob) self
379
377
+withImageFile(File $file) self
380
378
+withAudioFile(File $file) self
381
379
+withVideoFile(File $file) self
@@ -487,7 +485,6 @@ direction LR
487
485
488
486
class PromptBuilder {
489
487
+withText(string $text) self
490
- +withImage(string $mimeType, string $base64Blob) self
491
488
+withImageFile(File $file) self
492
489
+withAudioFile(File $file) self
493
490
+withVideoFile(File $file) self
@@ -536,7 +533,6 @@ direction LR
536
533
class MessageBuilder {
537
534
+usingRole(MessageRole $role) self
538
535
+withText(string $text) self
539
- +withImage(string $mimeType, string $base64Blob) self
540
536
+withImageFile(File $file) self
541
537
+withAudioFile(File $file) self
542
538
+withVideoFile(File $file) self
0 commit comments