diff --git a/app/Services/AiProviderService.php b/app/Services/AiProviderService.php index 4b41c0262feaaba8b06882a50444b89fed2ccdf8..89800c6f85507dbdd688893115a0fc4e8b8d587a 100644 --- a/app/Services/AiProviderService.php +++ b/app/Services/AiProviderService.php @@ -16,6 +16,7 @@ class AiProviderService * * @param string $systemRole The system role to send to the AI provider. E.g. "You are a helpful assistant." * @param string $prompt The prompt to send to the AI provider + * @param UploadedPicture ...$pictures The pictures to send to the AI provider * @return array The response from the AI provider. */ public function promptWithPictures(string $systemRole, string $prompt, UploadedPicture ...$pictures): array @@ -85,6 +86,13 @@ public function promptWithPictures(string $systemRole, string $prompt, UploadedP return $this->callApi(config('ai-provider.providers.'.$selectedProvider.'.url'), $requestBody); } + /** + * Prompt the AI provider with a text + * + * @param string $systemRole The system role to send to the AI provider. E.g. "You are a helpful assistant." + * @param string $prompt The prompt to send to the AI provider + * @return array The response from the AI provider. + */ public function prompt(string $systemRole, string $prompt): array { $selectedProvider = config('ai-provider.selected-provider');