Skip to content

Conversation

@FredrikPAC
Copy link
Contributor

Description

Mirrors options for the converse API.
As there doesn't seem to be any matching functions exported from the core Prism interface it feels viable to have them as provider specific options.
Completely understandable if there's a reason you excluded it in the first place.
I'm mainly interested in 'additionalModelRequestFields', since that enables control of the thinking block for claude 3.7.

@ChrisB-TL
Copy link
Collaborator

Thank you! I think your implementation is correct using providerOptions - as these settings are unique (ish) to Converse. We do similar with Gemini guardrails from memory.

Please can you add a test for these?

@ChrisB-TL ChrisB-TL changed the title feat: enhance payload construction with additional provider options, … feat: expose converse configuration via providerOptions Apr 28, 2025
@ChrisB-TL ChrisB-TL changed the title feat: expose converse configuration via providerOptions feat: expose converse options via providerOptions Apr 28, 2025
@FredrikPAC
Copy link
Contributor Author

Absolutely, sorry! Coming right up.

@sixlive sixlive requested a review from ChrisB-TL April 28, 2025 17:28
@sixlive sixlive self-assigned this Apr 28, 2025
Copy link
Collaborator

@ChrisB-TL ChrisB-TL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the test to use Prism's testing utilities, and added a similar test for structured.

This is good to go!

@sixlive sixlive merged commit 55ca811 into prism-php:main Apr 30, 2025
10 checks passed
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.

3 participants