Skip to content

Commit 4e11f35

Browse files
committed
wip
1 parent 8d219b5 commit 4e11f35

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: src/Providers/DeepSeek/Handlers/Structured.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
use EchoLabs\Prism\Exceptions\PrismException;
66
use EchoLabs\Prism\Providers\DeepSeek\Maps\FinishReasonMap;
77
use EchoLabs\Prism\Providers\DeepSeek\Maps\MessageMap;
8-
use EchoLabs\Prism\Providers\ProviderResponse;
98
use EchoLabs\Prism\Structured\Request;
109
use EchoLabs\Prism\ValueObjects\Messages\SystemMessage;
10+
use EchoLabs\Prism\ValueObjects\ProviderResponse;
11+
use EchoLabs\Prism\ValueObjects\ResponseMeta;
1112
use EchoLabs\Prism\ValueObjects\Usage;
1213
use Illuminate\Http\Client\PendingRequest;
1314
use Illuminate\Http\Client\Response;
@@ -74,10 +75,10 @@ protected function createResponse(Response $response): ProviderResponse
7475
data_get($data, 'usage.completion_tokens'),
7576
),
7677
finishReason: FinishReasonMap::map(data_get($data, 'choices.0.finish_reason', '')),
77-
response: [
78-
'id' => data_get($data, 'id'),
79-
'model' => data_get($data, 'model'),
80-
]
78+
responseMeta: new ResponseMeta(
79+
id: data_get($data, 'id'),
80+
model: data_get($data, 'model'),
81+
),
8182
);
8283
}
8384

0 commit comments

Comments
 (0)