From 02013808277521709fe2ed33d9c9d075853bdaf1 Mon Sep 17 00:00:00 2001 From: SofianeLasri <alasri250@gmail.com> Date: Fri, 21 Feb 2025 11:22:03 +0100 Subject: [PATCH] comments --- app/Services/AiProviderService.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Services/AiProviderService.php b/app/Services/AiProviderService.php index 4b41c02..89800c6 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'); -- GitLab