Skip to content

Align GenerativeModelTestResource with GenerativeModel#57

Merged
aydinfatih merged 4 commits intogoogle-gemini-php:mainfrom
whatagraph:main
Dec 29, 2024
Merged

Align GenerativeModelTestResource with GenerativeModel#57
aydinfatih merged 4 commits intogoogle-gemini-php:mainfrom
whatagraph:main

Conversation

@Plytas
Copy link
Collaborator

@Plytas Plytas commented Nov 12, 2024

This PR brings alignment between GenerativeModel and GenerativeModelTestResource by adding withSafetySetting() and withGenerationConfig() methods to GenerativeModelContract. Since these methods do not perform requests I also introduced a way to assert function calls so this can be tested.

After this is merged I can open a PR to beta branch.

Made sure that composer test is passing.

@aydinfatih aydinfatih merged commit 6dca9a5 into google-gemini-php:main Dec 29, 2024
@aydinfatih
Copy link
Member

Thanks @Plytas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants