feat: Update plugin to version 1.2.0 with new image context features
- Added support for image context in product prompts, allowing images to be sent as URLs or Base64. - Introduced a new settings page for managing prompt configurations. - Implemented caching for allowed models per provider to enhance performance. - Enhanced logging to include image context usage details. - Added model exclusions management to prevent the use of specific models. - Updated AJAX controller to handle image context in requests. - Refactored prompt builder to support image context in prompts.
This commit is contained in:
@@ -88,6 +88,14 @@ class SitiWebUpdater {
|
||||
|
||||
$this->get_repository_info(); // Get the repo info
|
||||
|
||||
if ( empty( $this->github_response ) || empty( $this->github_response['tag_name'] ) ) {
|
||||
return $transient;
|
||||
}
|
||||
|
||||
if ( empty( $checked[ $this->basename ] ) ) {
|
||||
return $transient;
|
||||
}
|
||||
|
||||
$out_of_date = version_compare( $this->github_response['tag_name'], $checked[ $this->basename ], 'gt' ); // Check if we're out of date
|
||||
|
||||
if( $out_of_date ) {
|
||||
@@ -114,11 +122,15 @@ class SitiWebUpdater {
|
||||
public function plugin_popup( $result, $action, $args ) {
|
||||
|
||||
if( ! empty( $args->slug ) ) { // If there is a slug
|
||||
|
||||
|
||||
if( $args->slug == current( explode( '/' , $this->basename ) ) ) { // And it's our slug
|
||||
|
||||
$this->get_repository_info(); // Get our repo info
|
||||
|
||||
if ( empty( $this->github_response ) || empty( $this->github_response['tag_name'] ) ) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Set it to an array
|
||||
$plugin = array(
|
||||
'name' => $this->plugin["Name"],
|
||||
@@ -175,4 +187,4 @@ class SitiWebUpdater {
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user