We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db8d305 commit a0b28fdCopy full SHA for a0b28fd
tests/Text/PendingRequestTest.php
@@ -39,6 +39,15 @@
39
->toHaveKey('openai', ['key' => 'value']);
40
});
41
42
+test('it allows you to get the model and provider', function (): void {
43
+ $request = $this->pendingRequest
44
+ ->using(Provider::OpenAI, 'gpt-4');
45
+
46
+ expect($request->getModel())->toBe('gpt-4');
47
+ expect($request->getProviderKey())->toBe('openai');
48
+ expect($request->getProviderEnum())->toBe(Provider::OpenAI);
49
+});
50
51
test('it configures the client options', function (): void {
52
$request = $this->pendingRequest
53
->using(Provider::OpenAI, 'gpt-4')
0 commit comments