@@ -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
- ->withImageFile(new InlineFile( 'image/png', $base64blob) )
159
+ ->withInlineImage($base64Blob, 'image/png')
160
160
->generateText();
161
161
```
162
162
@@ -328,6 +328,9 @@ direction LR
328
328
329
329
class PromptBuilder {
330
330
+withText(string $text) self
331
+ +withInlineImage(string $base64Blob, string $mimeType)
332
+ +withLocalImage(string $path, string $mimeType)
333
+ +withRemoteImage(string $uri, string $mimeType)
331
334
+withImageFile(File $file) self
332
335
+withAudioFile(File $file) self
333
336
+withVideoFile(File $file) self
@@ -487,6 +490,9 @@ direction LR
487
490
488
491
class PromptBuilder {
489
492
+withText(string $text) self
493
+ +withInlineImage(string $base64Blob, string $mimeType)
494
+ +withLocalImage(string $path, string $mimeType)
495
+ +withRemoteImage(string $uri, string $mimeType)
490
496
+withImageFile(File $file) self
491
497
+withAudioFile(File $file) self
492
498
+withVideoFile(File $file) self
0 commit comments