PluginProbe
Auto Alt Text / trunk
Auto Alt Text vtrunk
3.0.3 2.8.2 1.3.1 1.3.2 2.0.0 2.1.0 2.1.1 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.7.0 2.8.0 2.8.1 All 28 releases
auto-alt-text / src / App / Configuration / AIProviderConfig.php

AIProviderConfig.php in Auto Alt Text trunk, at src/App/Configuration/AIProviderConfig.php

37 lines 832 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace AATXT\App\Configuration;
6
7 /**
8 * Configuration interface for AI providers.
9 *
10 * Defines the contract for all AI provider configuration objects,
11 * implementing the Dependency Inversion Principle by depending on
12 * abstractions rather than concrete implementations.
13 */
14 interface AIProviderConfig
15 {
16 /**
17 * Get the API key for the AI provider.
18 *
19 * @return string The API key
20 */
21 public function getApiKey(): string;
22
23 /**
24 * Get the prompt template for generating alt text.
25 *
26 * @return string The prompt template
27 */
28 public function getPrompt(): string;
29
30 /**
31 * Get the model identifier to use.
32 *
33 * @return string The model identifier (e.g., 'gpt-4o', 'claude-sonnet-4')
34 */
35 public function getModel(): string;
36 }
37