Skip to content

Commit 74b721d

Browse files
committed
fix conflicts
2 parents 3558d30 + 4041723 commit 74b721d

File tree

16 files changed

+14
-32
lines changed

16 files changed

+14
-32
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"source": "https://github.com/laravel/ai"
1313
},
1414
"require": {
15-
"php": "^8.4",
15+
"php": "^8.3",
1616
"illuminate/console": "^12.0|^13.0",
1717
"illuminate/container": "^12.0|^13.0",
1818
"illuminate/contracts": "^12.0|^13.0",

src/AiManager.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,6 @@ public function createXaiDriver(array $config): XaiProvider
441441

442442
/**
443443
* Get the default instance name.
444-
*
445-
* @return string
446444
*/
447445
public function getDefaultInstance(): string
448446
{
@@ -455,7 +453,6 @@ public function getDefaultInstance(): string
455453
* Set the default instance name.
456454
*
457455
* @param string $name
458-
* @return void
459456
*/
460457
public function setDefaultInstance($name): void
461458
{
@@ -466,7 +463,6 @@ public function setDefaultInstance($name): void
466463
* Get the instance specific configuration.
467464
*
468465
* @param string $name
469-
* @return array
470466
*/
471467
public function getInstanceConfig($name): array
472468
{

src/AiServiceProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class AiServiceProvider extends ServiceProvider
1717
{
1818
/**
1919
* Register the package's services.
20-
*
21-
* @return void
2220
*/
2321
public function register(): void
2422
{
@@ -30,8 +28,6 @@ public function register(): void
3028

3129
/**
3230
* Bootstrap the package's services.
33-
*
34-
* @return void
3531
*/
3632
public function boot(): void
3733
{

src/Files/Document.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public static function fromStorage(string $path, ?string $disk = null): StoredDo
5959
*/
6060
public static function fromUpload(UploadedFile $file, ?string $mimeType = null): Base64Document
6161
{
62-
return new Base64Document(
62+
return (new Base64Document(
6363
base64_encode($file->getContent()),
6464
$mimeType ?? $file->getClientMimeType(),
65-
)->as($file->getClientOriginalName());
65+
))->as($file->getClientOriginalName());
6666
}
6767
}

src/Files/Image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public static function fromStorage(string $path, ?string $disk = null): StoredIm
5151
*/
5252
public static function fromUpload(UploadedFile $file, ?string $mimeType = null): Base64Image
5353
{
54-
return new Base64Image(
54+
return (new Base64Image(
5555
base64_encode($file->getContent()),
5656
$mimeType ?? $file->getClientMimeType(),
57-
)->as($file->getClientOriginalName());
57+
))->as($file->getClientOriginalName());
5858
}
5959
}

src/Gateway/Prism/PrismGateway.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function generateTranscription(
316316

317317
return new TranscriptionResponse(
318318
$response->text,
319-
new Collection($response->additionalContent['segments'] ?? [])->map(function ($segment) {
319+
(new Collection($response->additionalContent['segments'] ?? []))->map(function ($segment) {
320320
return new TranscriptionSegment(
321321
$segment['text'],
322322
$segment['speaker'],
@@ -371,7 +371,7 @@ protected static function toPrismProvider(Provider $provider): PrismProvider
371371
{
372372
return match ($provider->driver()) {
373373
'anthropic' => PrismProvider::Anthropic,
374-
'azure' => PrismProvider::OpenAI,
374+
'azure' => PrismProvider::OpenAI,
375375
'deepseek' => PrismProvider::DeepSeek,
376376
'gemini' => PrismProvider::Gemini,
377377
'groq' => PrismProvider::Groq,

src/Jobs/BroadcastAgent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public function handle(): void
3838

3939
/**
4040
* Get the display name for the queued job.
41-
*
42-
* @return string
4341
*/
4442
public function displayName(): string
4543
{

src/Jobs/Concerns/InvokesQueuedResponseCallbacks.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ public function catch(Closure $callback): self
4747

4848
/**
4949
* Handle a job failure.
50-
*
51-
* @param \Throwable $e
52-
* @return void
5350
*/
5451
public function failed(\Throwable $e): void
5552
{

src/Jobs/InvokeAgent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public function handle(): void
3636

3737
/**
3838
* Get the display name for the queued job.
39-
*
40-
* @return string
4139
*/
4240
public function displayName(): string
4341
{

src/Migrations/AiMigration.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ abstract class AiMigration extends Migration
88
{
99
/**
1010
* Get the migration connection name.
11-
*
12-
* @return string|null
1311
*/
1412
public function getConnection(): ?string
1513
{

0 commit comments

Comments
 (0)