Skip to content

Commit a0b28fd

Browse files
committed
add test
1 parent db8d305 commit a0b28fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: tests/Text/PendingRequestTest.php

+9
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@
3939
->toHaveKey('openai', ['key' => 'value']);
4040
});
4141

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+
4251
test('it configures the client options', function (): void {
4352
$request = $this->pendingRequest
4453
->using(Provider::OpenAI, 'gpt-4')

0 commit comments

Comments
 (0)