Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ca26fcd
Add in the PHP AI Client via composer
dkotter Aug 29, 2025
dca4beb
Use the PHP AI Client to make the title generation request
dkotter Aug 29, 2025
8cdccb5
Switch to the 0.1.0 version of the PHP SDK
dkotter Sep 2, 2025
9625deb
Change how we pass in our API key
dkotter Sep 2, 2025
af0d86e
Rename to
dkotter Sep 2, 2025
af606fc
Filter out the system prompt a bit better
dkotter Sep 2, 2025
ba34c1e
Add a new base APIRequest class to handle standard requests and reque…
dkotter Sep 2, 2025
2acd6b8
Modify the OpenAI APIRequest class to use new base class
dkotter Sep 2, 2025
dce256a
Use the new APIRequest methods to make a request using the SDK in the…
dkotter Sep 2, 2025
8e160b8
Move the post form method into the base class
dkotter Sep 2, 2025
4e4584e
Move excerpt generation over to new API approach
dkotter Sep 2, 2025
aad3b90
Move content resizing over to new API approach
dkotter Sep 2, 2025
d6977e3
Make sure we properly get the user message. Ensure values aren't empt…
dkotter Sep 2, 2025
c5de8ee
Better handling of system and user prompts to avoid code duplication …
dkotter Sep 2, 2025
992f069
Add support for max tokens and attaching a single image. Bring image …
dkotter Sep 2, 2025
abcbe17
Bring OCR over to the new API approach
dkotter Sep 2, 2025
1d6d8be
Bring Descriptive Text Generation over to the new API approach
dkotter Sep 2, 2025
dfcdc10
Move image generation over to the new API SDK
dkotter Sep 3, 2025
786c1a0
Fix bug around response_format when using DALLE
dkotter Sep 3, 2025
8dd5f9e
Simplify how we set options, removing the need for a bunch of if stat…
dkotter Sep 3, 2025
b1c7141
Remove all methods that we aren't using right now. Other minor code c…
dkotter Sep 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"yahnis-elsts/plugin-update-checker": "5.1",
"ua-parser/uap-php": "dev-master",
"aws/aws-sdk-php": "^3.300",
"woocommerce/action-scheduler": "3.8.1"
"woocommerce/action-scheduler": "3.8.1",
"wordpress/php-ai-client": "^0.1"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -47,7 +48,8 @@
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"php-http/discovery": true
}
},
"archive": {
Expand Down
Loading
Loading