Add embedding generation contracts#243
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Closing this as superseded by #244, which carries the canonical embedding API branch and is already green. This branch still used the older embedding option shape and had a PHP 7.4 enum fixture failure, so keeping #244 as the single embedding contract source avoids splitting the stack across incompatible contracts. |
Summary
EmbeddingResultDTO.Fixes #242
Unblocks WordPress/ai-provider-for-openai#32
Testing
composer test:unit -- --filter 'EmbeddingResultTest|AbstractOpenAiCompatibleEmbeddingGenerationModelTest'composer phpstancomposer phpcsAI assistance