← All changes
|
app/Services/Integrations/FluentBot/FluentBotService.php
+24
-4
1.10.0
→
2.4.5
View file →
| @@ -15,16 +15,16 @@ | ||
| 15 | 15 | { |
| 16 | 16 | return (new FluentBotHelper())->modifyResponse($prompt, $selectedText, $ticketId); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - public function generateResponse(string $responseContent, $ticket, $productId, $conversationId = null) | |
| 19 | + public function generateResponse(string $responseContent, $ticket, $productId, $chatId = null) | |
| 20 | 20 | { |
| 21 | - return (new FluentBotHelper())->generateResponse($responseContent, $ticket, $productId, $conversationId); | |
| 21 | + return (new FluentBotHelper())->generateResponse($responseContent, $ticket, $productId, $chatId); | |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - public function generateStreamResponse(string $responseContent, $ticket, $productId, $conversationId = null) | |
| 24 | + public function generateStreamResponse(string $responseContent, $ticket, $productId, $chatId = null, $selectedConversations = null, $includeTicketContent = true, $seedMessages = null, $webSearch = false, $temperature = 0) | |
| 25 | 25 | { |
| 26 | - return (new FluentBotHelper())->generateStreamResponse($responseContent, $ticket, $productId, $conversationId); | |
| 26 | + return (new FluentBotHelper())->generateStreamResponse($responseContent, $ticket, $productId, $chatId, $selectedConversations, $includeTicketContent, $seedMessages, $webSearch, $temperature); | |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function getTicketSummary($ticket) |
| 30 | 30 | { |
| @@ -33,7 +33,27 @@ | ||
| 33 | 33 | |
| 34 | 34 | public function getTicketTone($ticket) |
| 35 | 35 | { |
| 36 | 36 | return (new FluentBotHelper())->generateTicketTone($ticket); |
| 37 | + } | |
| 38 | + | |
| 39 | + public function getChatMessages($chatId, $productId = null, $cursor = null) | |
| 40 | + { | |
| 41 | + return (new FluentBotHelper())->getChatMessages($chatId, $productId, $cursor); | |
| 42 | + } | |
| 43 | + | |
| 44 | + public function resumeChatStream($chatId, $productId = null) | |
| 45 | + { | |
| 46 | + return (new FluentBotHelper())->resumeChatStream($chatId, $productId); | |
| 47 | + } | |
| 48 | + | |
| 49 | + public function getCustomPresets(): array | |
| 50 | + { | |
| 51 | + return (new FluentBotHelper())->getCustomPresets(); | |
| 52 | + } | |
| 53 | + | |
| 54 | + public function saveCustomPresets(array $presets): array | |
| 55 | + { | |
| 56 | + return (new FluentBotHelper())->saveCustomPresets($presets); | |
| 37 | 57 | } |
| 38 | 58 | |
| 39 | 59 | } |