ai-services
Makes AI centrally available in WordPress, whether via PHP, REST API, JavaScript, or WP-CLI - for any provider.
File Explorer
Download Latest Version (.zip)- migrate-typescript.md
- architecture.md
- coding-standards.md
- development-workflow.md
- overview.md
- 1-bug.yml
- 2-enhancement.yml
- 3-feature.yml
- 4-documentation.yml
- 5-question.yml
- config.yml
- bump-tested-up-to-dotorg.yml
- css-lint.yml
- deploy-dotorg.yml
- js-lint.yml
- php-lint.yml
- php-test.yml
- plugin-check.yml
- PULL_REQUEST_TEMPLATE.md
- blueprint.json
- banner-1544x500.png
- banner-772x250.png
- icon-128x128.png
- icon-256x256.png
- icon.svg
- screenshot-1.png
- screenshot-2.png
- screenshot-3.png
- screenshot-4.png
- 404.md
- _config.yml
- Accessing-AI-Services-in-JavaScript.md
- Accessing-AI-Services-in-PHP.md
- Accessing-AI-Services-with-WP-CLI.md
- Customizing-AI-Services-Model-Parameters.md
- Customizing-the-API-Request-Timeout.md
- Customizing-the-Available-Capabilities.md
- Documentation.md
- Enabling-the-Assistant-Chatbot-Feature.md
- Implementing-and-Registering-a-New-AI-Service.md
- README.md
- Rendering-AI-API-Key-Controls-in-Your-Own-UI.md
- Technical-Architecture-Overview.md
- Technical-Concepts-of-AI-Services.md
- add-image-alt-text-plugin.php
- index.js
- index.js
- write-excerpt-plugin.php
- Anthropic_AI_API_Client.php
- Anthropic_AI_Service.php
- Anthropic_AI_Text_Generation_Model.php
- README.md
- Chatbot.php
- Chatbot_AI.php
- Chatbot_Loader.php
- README.md
- Safety_Setting.php
- Google_AI_API_Client.php
- Google_AI_Image_Generation_Model.php
- Google_AI_Service.php
- Google_AI_Text_Generation_Model.php
- README.md
- Plugin_Installer.php
- README.md
- Mistral_AI_Service.php
- Mistral_AI_Text_Generation_Model.php
- README.md
- With_Mock_Results.php
- With_Mock_Results_Trait.php
- Mock_AI_Image_Generation_Model.php
- Mock_AI_Service.php
- Mock_AI_Text_Generation_Model.php
- README.md
- OpenAI_AI_Image_Generation_Model.php
- OpenAI_AI_Service.php
- OpenAI_AI_Text_Generation_Model.php
- OpenAI_AI_Text_To_Speech_Model.php
- README.md
- Perplexity_AI_Service.php
- Perplexity_AI_Text_Generation_Model.php
- README.md
- Playground_Page.php
- Playground_Page_Pointer.php
- README.md
- Settings_Page.php
- Settings_Page_Link.php
- Settings_Page_Pointer.php
- Enum.php
- Abstract_Enum.php
- AI_Capability.php
- Content_Role.php
- Modality.php
- README.md
- Service_Type.php
- Part.php
- Tool.php
- Abstract_Part.php
- File_Data_Part.php
- Function_Call_Part.php
- Function_Response_Part.php
- Inline_Data_Part.php
- Text_Part.php
- Abstract_Tool.php
- Function_Declarations_Tool.php
- Web_Search_Tool.php
- Blob.php
- Candidate.php
- Candidates.php
- Chat_Session.php
- Content.php
- History.php
- History_Entry.php
- Image_Generation_Config.php
- Model_Metadata.php
- Parts.php
- README.md
- Service_Metadata.php
- Text_Generation_Config.php
- Text_To_Speech_Config.php
- Tool_Config.php
- Tools.php
- Candidates_Stream_Processor.php
- Helpers.php
- History_Persistence.php
- README.md
- API_Key_Authentication.php
- README.md
- Abstract_AI_Model.php
- Abstract_AI_Service.php
- Abstract_Generation_Config.php
- Generic_AI_API_Client.php
- OpenAI_Compatible_AI_Image_Generation_Model.php
- OpenAI_Compatible_AI_Text_Generation_Model.php
- README.md
- Service_Request_Cache.php
- AI_Services_Command.php
- README.md
- API_Key_Control.php
- README.md
- Authentication.php
- Generation_Config.php
- Generative_AI_API_Client.php
- Generative_AI_Model.php
- Generative_AI_Service.php
- README.md
- With_API_Client.php
- With_Chat_History.php
- With_Function_Calling.php
- With_Image_Generation.php
- With_JSON_Schema.php
- With_Multimodal_Input.php
- With_Multimodal_Output.php
- With_Text_Generation.php
- With_Text_To_Speech.php
- With_Web_Search.php
- AI_Service_Decorator.php
- README.md
- README.md
- Services_Script_Style_Loader.php
- History_Entity.php
- History_Entity_Query.php
- README.md
- Service_Entity.php
- Service_Entity_Query.php
- Generative_AI_Exception.php
- README.md
- Stream_Request_Handler.php
- With_Stream.php
- HTTP_With_Streams.php
- README.md
- Stream_Response.php
- Option_Encrypter.php
- History_Delete_REST_Route.php
- History_Get_REST_Route.php
- History_List_REST_Route.php
- History_REST_Resource_Schema.php
- History_Update_REST_Route.php
- README.md
- Self_REST_Route.php
- Service_Generate_Content_REST_Route.php
- Service_Generate_Image_REST_Route.php
- Service_Generate_Text_REST_Route.php
- Service_Get_REST_Route.php
- Service_List_REST_Route.php
- Service_REST_Resource_Schema.php
- Service_Stream_Generate_Text_REST_Route.php
- Service_Text_To_Speech_REST_Route.php
- Generative_AI_API_Client_Trait.php
- Model_Param_Image_Generation_Config_Trait.php
- Model_Param_System_Instruction_Trait.php
- Model_Param_Text_Generation_Config_Trait.php
- Model_Param_Text_To_Speech_Config_Trait.php
- Model_Param_Tool_Config_Trait.php
- Model_Param_Tools_Trait.php
- OpenAI_Compatible_Text_Generation_With_Function_Calling_Trait.php
- README.md
- With_API_Client_Trait.php
- With_Chat_History_Trait.php
- With_Image_Generation_Trait.php
- With_Text_Generation_Trait.php
- With_Text_To_Speech_Trait.php
- AI_Capabilities.php
- Data_Encryption.php
- Formatter.php
- README.md
- Strings.php
- Transformer.php
- README.md
- Service_Registration.php
- Service_Registration_Context.php
- Services_API.php
- Services_API_Instance.php
- Services_Loader.php
- Services_Service_Container_Builder.php
- README.md
- XAI_AI_Image_Generation_Model.php
- XAI_AI_Service.php
- XAI_AI_Text_Generation_Model.php
- api.php
- Plugin_Autoloader.php
- Plugin_Main.php
- Plugin_Service_Container_Builder.php
- README.md
- actions.d.ts
- selectors.d.ts
- index.d.ts
- actions.d.ts
- selectors.d.ts
- index.d.ts
- browser-generative-ai-model.ts
- browser-generative-ai-service.ts
- candidates-stream-processor.ts
- chat-session.ts
- generative-ai-model.ts
- generative-ai-service.ts
- history-persistence.ts
- README.md
- ai-capability.ts
- content-role.ts
- index.ts
- modality.ts
- README.md
- service-type.ts
- browser.ts
- chat.ts
- index.ts
- name.ts
- README.md
- self.ts
- services.ts
- helpers.ts
- index.ts
- README.md
- types.ts
- util.ts
- chatbot-header.tsx
- chatbot-message.tsx
- index.tsx
- loader.tsx
- send-icon.tsx
- style.scss
- user-icon.tsx
- index.tsx
- style.scss
- config.tsx
- index.tsx
- types.ts
- index.tsx
- types.ts
- index.tsx
- style.scss
- types.ts
- index.tsx
- types.ts
- index.ts
- README.md
- index.tsx
- style.scss
- index.tsx
- javascript-code-textarea.tsx
- php-code-textarea.tsx
- raw-data-textarea.tsx
- style.scss
- use-codemirror-effect.ts
- index.tsx
- reset-messages-button.tsx
- style.scss
- system-instruction-toggle.tsx
- index.tsx
- index.tsx
- style.scss
- index.tsx
- input.tsx
- loader.tsx
- media-modal.tsx
- messages.tsx
- style.scss
- system-instruction.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- README.md
- capabilities.ts
- index.ts
- messages.ts
- name.ts
- README.md
- service-model.ts
- index.tsx
- README.md
- types.ts
- index.tsx
- style.scss
- index.tsx
- style.scss
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- README.md
- index.tsx
- README.md
- index.ts
- name.ts
- README.md
- services.ts
- settings.ts
- error-to-string.ts
- log-error.ts
- process-stream.ts
- README.md
- Test_Case.php
- Services_Loader_Tests.php
- Plugin_Main_Tests.php
- bootstrap.php
- eslint-import-resolver.js
- composer.json
- composer.lock
- phpstan-bootstrap.php
- phpstan-stubs.php
- composer.json
- composer.lock
- composer.json
- composer.lock
- .clineignore
- .distignore
- .editorconfig
- .eslintignore
- .eslintrc.js
- .gitignore
- .nvmrc
- .prettierignore
- .wp-env.json
- ai-services.php
- composer.json
- composer.lock
- constants.php
- CONTRIBUTING.md
- LICENSE
- package-lock.json
- package.json
- phpcs.xml.dist
- phpmd.xml
- phpstan.neon.dist
- phpunit.xml.dist
- README.md
- readme.txt
- scoper.inc.php
- tsconfig.json
- tsdoc.json
- uninstall.php
- webpack.config.js
# Installation Guide
1. Get the code
git clone https://github.com/felixarntz/ai-services
Downloads the entire project code from GitHub to your computer.
cd ai-services
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install
Downloads and installs the libraries listed in package.json.
npm run build
Builds optimized production files.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
3. PHP (Composer)
EasyPrerequisites
composer install
Installs the PHP libraries listed in composer.json.
Run it with a built-in server like php -S localhost:8000, then open http://localhost:8000 in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
