fix: PHP 8.4 compatibility - TypeError when API returns null for results array#725
fix: PHP 8.4 compatibility - TypeError when API returns null for results array#725Natshah wants to merge 2 commits intoopenai-php:mainfrom
Conversation
|
thanks! A lot of the strict typing never expects null there so you'll see the test suite is not accounting for this discrepancy. |
|
Are you experiencing this with OpenAI or some 3rd party workaround? Confused as I heavily use this moderation endpoint and never experience this. |
|
Thanks, Connor, for follow up on the PHP 8.4 issue. Using this with the Drupal AI integration module with Drupal Doing number of testing rounds, ( Automated Functional Testing ) |
|
Thanks for follow up and sorry for delay. I guess I'm just confused - with the changes you've made you've effectively said anything can be null on the moderation endpoint. Down to the results, id and model but also use OpenAI where I've never experienced that. Am I missing something? Is this some mutation testing? or different model? circumstance? |
What:
Description:
Related: