- 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.
24 lines
456 B
PHP
24 lines
456 B
PHP
<?php
|
|
|
|
interface Groq_AI_Provider_Interface {
|
|
public function get_key();
|
|
|
|
public function get_label();
|
|
|
|
public function get_default_model();
|
|
|
|
public function get_available_models();
|
|
|
|
public function get_option_key();
|
|
|
|
public function generate_content( array $args );
|
|
|
|
public function supports_live_models();
|
|
|
|
public function fetch_live_models( $api_key );
|
|
|
|
public function supports_response_format();
|
|
|
|
public function supports_image_context();
|
|
}
|