Skip to content

Commit

Permalink
Merge pull request #855 from 10up/release/3.3.0
Browse files Browse the repository at this point in the history
Release/3.3.0
  • Loading branch information
dkotter authored Feb 20, 2025
2 parents 426f3f1 + d534c9e commit 1faf6db
Show file tree
Hide file tree
Showing 15 changed files with 94 additions and 59 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,37 @@ All notable changes to this project will be documented in this file, per [the Ke

## [Unreleased] - TBD

## [3.3.0] - 2025-02-20

**Note that this release bumps the WordPress minimum from 6.5 to 6.6.**

### Added

- New Feature, Key Takeaways, that adds a new block that will generate and output the key takeaways for that post, allowing visitors to get a quick overview of the content without having to read it all (props [@dkotter](https://github.com/dkotter), [@jeffpaul](https://github.com/jeffpaul), [@iamdharmesh](https://github.com/iamdharmesh) via [#843](https://github.com/10up/classifai/pull/843)).
- Integration with Ollama as a Provider, allowing the following Features to use locally hosted LLMs: Classification; Title Generation; Excerpt Generation; Content Resizing; Key Takeaways; Descriptive Text Generator; Image Tags Generator; Image Text Extraction (props [@dkotter](https://github.com/dkotter), [@iamdharmesh](https://github.com/iamdharmesh) via [#845](https://github.com/10up/classifai/pull/845)).
- Grok (xAI) as a Provider for the Title Generation, Excerpt Generation, Content resizing, and Descriptive Text Generator Features (props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter) via [#836](https://github.com/10up/classifai/pull/836)).
- OpenAI ChatGPT as a Provider for the Image Tags Generator and Image Text Extraction Features (props [@dkotter](https://github.com/dkotter), [@iamdharmesh](https://github.com/iamdharmesh) via [#851](https://github.com/10up/classifai/pull/851)).
- Snackbar notice to inform users that settings have been saved successfully (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter) via [#838](https://github.com/10up/classifai/pull/838)).

### Changed

- Bump WordPress minimum from 6.5 to 6.6 (props [@dkotter](https://github.com/dkotter), [@iamdharmesh](https://github.com/iamdharmesh) via [#845](https://github.com/10up/classifai/pull/845)).

### Fixed

- Ensure the Azure AI Vision Provider authenticates properly (props [@dkotter](https://github.com/dkotter), [@iamdharmesh](https://github.com/iamdharmesh) via [#852](https://github.com/10up/classifai/pull/852)).
- Ensure the ClassifAI Registration settings save correctly (props [@dkotter](https://github.com/dkotter), [@iamdharmesh](https://github.com/iamdharmesh) via [#853](https://github.com/10up/classifai/pull/853)).
- Handle a number of typos (props [@szepeviktor](https://github.com/szepeviktor), [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter) via [#839](https://github.com/10up/classifai/pull/839)).

### Security

- Bump `serialize-javascript` from 6.0.0 to 6.0.2 and `mocha` from 10.3.0 to 11.1.0 (props [@dependabot[bot]](https://github.com/apps/dependabot), [@dkotter](https://github.com/dkotter) via [#850](https://github.com/10up/classifai/pull/850)).

### Developer

- Skip the Repo Automator GitHub Action for pull requests from forks (props [@szepeviktor](https://github.com/szepeviktor), [@iamdharmesh](https://github.com/iamdharmesh) via [#840](https://github.com/10up/classifai/pull/840)).
- Ensure our PHPUnit workflow doesn't rely on SVN (props [@dkotter](https://github.com/dkotter), [@felipeelia](https://github.com/felipeelia) via [#844](https://github.com/10up/classifai/pull/844)).

## [3.2.0] - 2024-12-18

**Prior to updating, please read: this release of ClassifAI rearchitects how the settings pages are built, from a standard PHP approach to using React components. If you've created custom Features or Providers or added your own custom settings, you'll need to update your code to work in this new structure. See our [documentation](https://10up.github.io/classifai/tutorial-useful-snippets.html) for examples.**
Expand Down Expand Up @@ -658,6 +689,7 @@ All notable changes to this project will be documented in this file, per [the Ke
- Initial closed source release

[Unreleased]: https://github.com/10up/classifai/compare/trunk...develop
[3.3.0]: https://github.com/10up/classifai/compare/3.2.0...3.3.0
[3.2.0]: https://github.com/10up/classifai/compare/3.1.1...3.2.0
[3.1.1]: https://github.com/10up/classifai/compare/3.1.0...3.1.1
[3.1.0]: https://github.com/10up/classifai/compare/3.0.1...3.1.0
Expand Down
2 changes: 1 addition & 1 deletion CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following individuals are responsible for curating the list of issues, respo

Thank you to all the people who have already contributed to this repository via bug reports, code, design, ideas, project management, translation, testing, etc.

[Darshan Sawardekar (@dsawardekar)](https://github.com/dsawardekar), [Ryan Welcher (@ryanwelcher)](https://github.com/ryanwelcher), [Adam Silverstein (@adamsilverstein)](https://github.com/adamsilverstein), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Helen Hou-Sandí (@helen)](https://github.com/helen), [Christian Chung (@christianc1)](https://github.com/christianc1), [Dependabot (@dependabot)](https://github.com/dependabot), [Dillon McCallum (@McCallumDillon)](https://github.com/McCallumDillon), [Dustin Rue (@dustinrue)](https://github.com/dustinrue), [Jay Wood (@JayWood)](https://github.com/JayWood), [John Watkins (@johnwatkins0)](https://github.com/johnwatkins0), [Matthew McAchran (@mmcachran)](https://github.com/mmcachran), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu), [Darío Hereñú (@kant)](https://github.com/kant), [Aaron Jorbin (@aaronjorbin)](https://github.com/aaronjorbin), [Eduard Florea (@eflorea)](https://github.com/eflorea), [Jackie Kjome (@JackieKjome)](https://github.com/JackieKjome), [Ricky Lee Whittemore (@rickalee)](https://github.com/rickalee), [Ritesh Patel (@Ritesh-patel)](https://github.com/Ritesh-patel), [Dana Ross (@dana-ross)](https://github.com/dana-ross), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Pete Nelson (@petenelson)](https://github.com/petenelson), [Connor Smyth (@ActuallyConnor)](https://github.com/ActuallyConnor), [Oscar Sanchez S. (@oscarssanchez)](https://github.com/oscarssanchez), [Shah Qureshi (@ShahAaron)](https://github.com/ShahAaron), [Barry Ceelen (@barryceelen)](https://github.com/barryceelen), [Jeffrey Carandang (@phpbits)](https://github.com/phpbits), [Thrijith Thankachan (@thrijith)](https://github.com/thrijith), [Junaid Bhura (@junaidbhura)](https://github.com/junaidbhura), [Blanca Hong [@blancahong]](https://profiles.wordpress.org/blancahong/), [Barney Jeffries (@barneyjeffries)](https://github.com/barneyjeffries), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [@myBCN](https://github.com/myBCN), [James Morrison (@jamesmorrison)](https://github.com/jamesmorrison), [Rahul Prajapati (@rahulsprajapati)](https://github.com/rahulsprajapati), [Sérgio Santos (@s3rgiosan)](https://github.com/s3rgiosan), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Delfina Hoxha](https://www.linkedin.com/in/delfina-hoxha/), [Ajay Maurya (@ajmaurya99)](https://github.com/ajmaurya99), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Mustafa Uysal (@mustafauysal)](https://github.com/mustafauysal), [Max Lyuchin (@cadic)](https://github.com/cadic), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Quamruz Zaman (@zamanq)](https://github.com/zamanq), [Ravinder Kumar (@ravinderk)](https://github.com/ravinderk), [Joe McGill (@joemcgill)](https://github.com/joemcgill), [Tyler Bailey (@TylerB24890)](https://github.com/TylerB24890), [Viktor Szépe (@szepeviktor)](https://github.com/szepeviktor), [Ivan Ivanić (@Spoygg)](https://github.com/Spoygg), [Jayedul Kabir (@jayedul)](https://github.com/jayedul), [Garth Gutenberg (@ggutenberg)](https://github.com/ggutenberg), [Mehidi Hassan (@mehidi258)](https://github.com/mehidi258), [Julian Weiland (@derweili)](https://github.com/derweili), [Anton Vanyukov (@av3nger)](https://github.com/av3nger), [Ben Keith (@benlk)](https://github.com/benlk), [David Hechler (@pixeldevsio)](https://github.com/pixeldevsio), [Joshua Abenazer (@joshuaabenazer)](https://github.com/joshuaabenazer), [Dominik Schilling (@ocean90)](https://github.com/ocean90), [Björn Holine (@bjorn2404)](https://github.com/bjorn2404), [Konstantinos Galanakis (@kmgalanakis)](https://github.com/kmgalanakis), [Dan Berko (@berkod)](https://github.com/berkod), [Luca Ricci (@theskinnyghost)](https://github.com/theskinnyghost), [Parikshit Adhikari (@parikshit-adhikari)](https://github.com/parikshit-adhikari), [Surav Shrestha (@shresthasurav)](https://github.com/shresthasurav), [Tim Schwartz (@timatron)](https://github.com/timatron), [Ankit Gupta (@ankitguptaindia)](https://github.com/ankitguptaindia), [Kirtan Gajjar (@kirtangajjar)](https://github.com/kirtangajjar), [Shazahan Kabir Saju (@sksaju)](https://github.com/sksaju), [Giorgos Sarigiannidis (@gsarig)](https://github.com/gsarig), [Harshal Kadu (@QAharshalkadu)](https://github.com/QAharshalkadu), [Sumit Bagthariya (@qasumitbagthariya)](https://github.com/qasumitbagthariya), [ajaxthemestudios (@ajaxthemestudios)](https://github.com/ajaxthemestudios), [CacheMeOwside (@CacheMeOwside)](https://github.com/CacheMeOwside), [James Styles (@jamespstyles)](https://github.com/jamespstyles), [Kate Rickard](https://uk.linkedin.com/in/katerickard).
[Darshan Sawardekar (@dsawardekar)](https://github.com/dsawardekar), [Ryan Welcher (@ryanwelcher)](https://github.com/ryanwelcher), [Adam Silverstein (@adamsilverstein)](https://github.com/adamsilverstein), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Helen Hou-Sandí (@helen)](https://github.com/helen), [Christian Chung (@christianc1)](https://github.com/christianc1), [Dependabot (@dependabot)](https://github.com/dependabot), [Dillon McCallum (@McCallumDillon)](https://github.com/McCallumDillon), [Dustin Rue (@dustinrue)](https://github.com/dustinrue), [Jay Wood (@JayWood)](https://github.com/JayWood), [John Watkins (@johnwatkins0)](https://github.com/johnwatkins0), [Matthew McAchran (@mmcachran)](https://github.com/mmcachran), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu), [Darío Hereñú (@kant)](https://github.com/kant), [Aaron Jorbin (@aaronjorbin)](https://github.com/aaronjorbin), [Eduard Florea (@eflorea)](https://github.com/eflorea), [Jackie Kjome (@JackieKjome)](https://github.com/JackieKjome), [Ricky Lee Whittemore (@rickalee)](https://github.com/rickalee), [Ritesh Patel (@Ritesh-patel)](https://github.com/Ritesh-patel), [Dana Ross (@dana-ross)](https://github.com/dana-ross), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Pete Nelson (@petenelson)](https://github.com/petenelson), [Connor Smyth (@ActuallyConnor)](https://github.com/ActuallyConnor), [Oscar Sanchez S. (@oscarssanchez)](https://github.com/oscarssanchez), [Shah Qureshi (@ShahAaron)](https://github.com/ShahAaron), [Barry Ceelen (@barryceelen)](https://github.com/barryceelen), [Jeffrey Carandang (@phpbits)](https://github.com/phpbits), [Thrijith Thankachan (@thrijith)](https://github.com/thrijith), [Junaid Bhura (@junaidbhura)](https://github.com/junaidbhura), [Blanca Hong [@blancahong]](https://profiles.wordpress.org/blancahong/), [Barney Jeffries (@barneyjeffries)](https://github.com/barneyjeffries), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [@myBCN](https://github.com/myBCN), [James Morrison (@jamesmorrison)](https://github.com/jamesmorrison), [Rahul Prajapati (@rahulsprajapati)](https://github.com/rahulsprajapati), [Sérgio Santos (@s3rgiosan)](https://github.com/s3rgiosan), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Delfina Hoxha](https://www.linkedin.com/in/delfina-hoxha/), [Ajay Maurya (@ajmaurya99)](https://github.com/ajmaurya99), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Mustafa Uysal (@mustafauysal)](https://github.com/mustafauysal), [Max Lyuchin (@cadic)](https://github.com/cadic), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Quamruz Zaman (@zamanq)](https://github.com/zamanq), [Ravinder Kumar (@ravinderk)](https://github.com/ravinderk), [Joe McGill (@joemcgill)](https://github.com/joemcgill), [Tyler Bailey (@TylerB24890)](https://github.com/TylerB24890), [Viktor Szépe (@szepeviktor)](https://github.com/szepeviktor), [Ivan Ivanić (@Spoygg)](https://github.com/Spoygg), [Jayedul Kabir (@jayedul)](https://github.com/jayedul), [Garth Gutenberg (@ggutenberg)](https://github.com/ggutenberg), [Mehidi Hassan (@mehidi258)](https://github.com/mehidi258), [Julian Weiland (@derweili)](https://github.com/derweili), [Anton Vanyukov (@av3nger)](https://github.com/av3nger), [Ben Keith (@benlk)](https://github.com/benlk), [David Hechler (@pixeldevsio)](https://github.com/pixeldevsio), [Joshua Abenazer (@joshuaabenazer)](https://github.com/joshuaabenazer), [Dominik Schilling (@ocean90)](https://github.com/ocean90), [Björn Holine (@bjorn2404)](https://github.com/bjorn2404), [Konstantinos Galanakis (@kmgalanakis)](https://github.com/kmgalanakis), [Dan Berko (@berkod)](https://github.com/berkod), [Luca Ricci (@theskinnyghost)](https://github.com/theskinnyghost), [Parikshit Adhikari (@parikshit-adhikari)](https://github.com/parikshit-adhikari), [Surav Shrestha (@shresthasurav)](https://github.com/shresthasurav), [Tim Schwartz (@timatron)](https://github.com/timatron), [Ankit Gupta (@ankitguptaindia)](https://github.com/ankitguptaindia), [Kirtan Gajjar (@kirtangajjar)](https://github.com/kirtangajjar), [Shazahan Kabir Saju (@sksaju)](https://github.com/sksaju), [Giorgos Sarigiannidis (@gsarig)](https://github.com/gsarig), [Harshal Kadu (@QAharshalkadu)](https://github.com/QAharshalkadu), [Sumit Bagthariya (@qasumitbagthariya)](https://github.com/qasumitbagthariya), [ajaxthemestudios (@ajaxthemestudios)](https://github.com/ajaxthemestudios), [CacheMeOwside (@CacheMeOwside)](https://github.com/CacheMeOwside), [James Styles (@jamespstyles)](https://github.com/jamespstyles), [Kate Rickard](https://uk.linkedin.com/in/katerickard), [Felipe Elia (@felipeelia)](https://github.com/felipeelia).

## Libraries

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ Add this repository to composer.json, specifying a release version, as shown bel
"type": "package",
"package": {
"name": "10up/classifai",
"version": "3.2.0",
"version": "3.3.0",
"type": "wordpress-plugin",
"dist": {
"url": "https://github.com/10up/classifai/archive/refs/tags/3.2.0.zip",
"url": "https://github.com/10up/classifai/archive/refs/tags/3.3.0.zip",
"type": "zip"
}
}
Expand All @@ -138,7 +138,7 @@ Finally, require the plugin, using the version number you specified in the previ

```json
"require": {
"10up/classifai": "3.2.0"
"10up/classifai": "3.3.0"
}
```

Expand Down
2 changes: 1 addition & 1 deletion classifai.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/10up/classifai
* Update URI: https://classifaiplugin.com
* Description: Enhance your WordPress content with Artificial Intelligence and Machine Learning services.
* Version: 3.3.0-dev
* Version: 3.3.0
* Requires at least: 6.6
* Requires PHP: 7.4
* Author: 10up
Expand Down
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Global Constants.
*/

$plugin_version = '3.2.0';
$plugin_version = '3.3.0';

// Useful global constants
classifai_define( 'CLASSIFAI_PLUGIN', __DIR__ . '/classifai.php' );
Expand Down
4 changes: 2 additions & 2 deletions includes/Classifai/Providers/Azure/OpenAI.php
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ public function generate_key_takeaways( int $post_id = 0, array $args = [] ) {
/**
* Filter the prompt we will send to Azure OpenAI.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_azure_openai_key_takeaways_prompt
*
* @param {string} $prompt Prompt we are sending to Azure. Gets added before post content.
Expand All @@ -716,7 +716,7 @@ public function generate_key_takeaways( int $post_id = 0, array $args = [] ) {
/**
* Filter the request body before sending to Azure OpenAI.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_azure_openai_key_takeaways_request_body
*
* @param {array} $body Request body that will be sent to Azure.
Expand Down
18 changes: 9 additions & 9 deletions includes/Classifai/Providers/Localhost/Ollama.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function generate_excerpt( int $post_id = 0, array $args = [] ) {
/**
* Filter the prompt we will send to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_excerpt_prompt
*
* @param {string} $prompt Prompt we are sending to Ollama. Gets added before post content.
Expand All @@ -212,7 +212,7 @@ public function generate_excerpt( int $post_id = 0, array $args = [] ) {
/**
* Filter the request body before sending to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_excerpt_request_body
*
* @param {array} $body Request body that will be sent to Ollama.
Expand Down Expand Up @@ -291,7 +291,7 @@ public function generate_title( int $post_id = 0, array $args = [] ) {
/**
* Filter the prompt we will send to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_title_prompt
*
* @param {string} $prompt Prompt we are sending to Ollama. Gets added before post content.
Expand All @@ -305,7 +305,7 @@ public function generate_title( int $post_id = 0, array $args = [] ) {
/**
* Filter the request body before sending to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_title_request_body
*
* @param {array} $body Request body that will be sent to Ollama.
Expand Down Expand Up @@ -385,7 +385,7 @@ public function resize_content( int $post_id, array $args = array() ) {
/**
* Filter the resize prompt we will send to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_' . $args['resize_type'] . '_content_prompt
*
* @param {string} $prompt Resize prompt we are sending to Ollama. Gets added as a system prompt.
Expand All @@ -399,7 +399,7 @@ public function resize_content( int $post_id, array $args = array() ) {
/**
* Filter the resize request body before sending to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_resize_content_request_body
*
* @param {array} $body Request body that will be sent to Ollama.
Expand Down Expand Up @@ -487,7 +487,7 @@ public function generate_key_takeaways( int $post_id = 0, array $args = [] ) {
/**
* Filter the prompt we will send to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_key_takeaways_prompt
*
* @param {string} $prompt Prompt we are sending to Ollama. Gets added before post content.
Expand All @@ -500,7 +500,7 @@ public function generate_key_takeaways( int $post_id = 0, array $args = [] ) {
/**
* Filter the request body before sending to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_key_takeaways_request_body
*
* @param {array} $body Request body that will be sent to Ollama.
Expand Down Expand Up @@ -624,7 +624,7 @@ public function get_content( int $post_id = 0, bool $use_title = true, string $p
/**
* Filter content that will get sent to Ollama.
*
* @since x.x.x
* @since 3.3.0
* @hook classifai_ollama_content
*
* @param {string} $content Content that will be sent to Ollama.
Expand Down
Loading

0 comments on commit 1faf6db

Please sign in to comment.