django-lucy-assist 1.2.5__py3-none-any.whl → 1.2.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_lucy_assist-1.2.5.dist-info → django_lucy_assist-1.2.6.dist-info}/METADATA +1 -1
- {django_lucy_assist-1.2.5.dist-info → django_lucy_assist-1.2.6.dist-info}/RECORD +6 -6
- lucy_assist/__init__.py +1 -1
- lucy_assist/templates/lucy_assist/chatbot_sidebar.html +14 -14
- {django_lucy_assist-1.2.5.dist-info → django_lucy_assist-1.2.6.dist-info}/WHEEL +0 -0
- {django_lucy_assist-1.2.5.dist-info → django_lucy_assist-1.2.6.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
lucy_assist/__init__.py,sha256=
|
|
1
|
+
lucy_assist/__init__.py,sha256=DdCbQp_PAtX73E6u8eBGRxfGRrOybKTG86ilZW6vGxI,325
|
|
2
2
|
lucy_assist/admin.py,sha256=LnIXlYOIanAUoCPYpShAoYNzOr1XQukK2RSwlsWWXis,3086
|
|
3
3
|
lucy_assist/apps.py,sha256=zHZtlBXs5ML4CKtGg7xDyptSWzLfB1ks2VvbXF50hdo,264
|
|
4
4
|
lucy_assist/conf.py,sha256=Yyrhlyjj7RFf2jNYj9C__azQWR0tgJpU09ExfTpkiLM,4189
|
|
@@ -27,7 +27,7 @@ lucy_assist/services/view_discovery_service.py,sha256=5FybECCoHUkDhUQhdZ_tJ4Lei6
|
|
|
27
27
|
lucy_assist/static/lucy_assist/css/lucy-assist.css,sha256=tLCFhIg744wE7aED1wRC31CId-uLhL5QnscdNoOtQOA,24305
|
|
28
28
|
lucy_assist/static/lucy_assist/image/icon-lucy.png,sha256=FOYlwXAt40Gr9jsWFmhgPivYOBFWKeYW0lxJI5Up-GM,6710
|
|
29
29
|
lucy_assist/static/lucy_assist/js/lucy-assist.js,sha256=w2EHYQxjYgqfWhuM-yazyjlCzdhdE5VFLiTAYreCaYA,28539
|
|
30
|
-
lucy_assist/templates/lucy_assist/chatbot_sidebar.html,sha256=
|
|
30
|
+
lucy_assist/templates/lucy_assist/chatbot_sidebar.html,sha256=yR_VxZK9I2VnFaQ_BxJQe1yKMi37QE95IDFVMWz-lzk,19474
|
|
31
31
|
lucy_assist/templates/lucy_assist/partials/documentation_content.html,sha256=twbe3TvuPfy1Et2LMElK0JJNq2awb3SnIouA8v8NeWs,4143
|
|
32
32
|
lucy_assist/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
lucy_assist/tests/test_lucy_assist.py,sha256=KBvuED10_gOJWdaRS2zMigM3W5Kp00KhMEwaR8tvhUc,6949
|
|
@@ -39,7 +39,7 @@ lucy_assist/utils/message_utils.py,sha256=YzcLHnl1ig4d5_utHCJwgxS7tKmd49Q-tuo78e
|
|
|
39
39
|
lucy_assist/utils/token_utils.py,sha256=aBzyKVqpU67rAetO_Ee3QIfPtbNyjyWSe6qPfzIRJF8,2608
|
|
40
40
|
lucy_assist/views/__init__.py,sha256=uUPYpuHlBC8j7zKS_DDoWjwpCpRnOIXETY-S2-Ss0cY,288
|
|
41
41
|
lucy_assist/views/api_views.py,sha256=sJwKNC9-mi1zMbgyKZTVvT3pz4hMmw4jR0rrS7iJR-g,23619
|
|
42
|
-
django_lucy_assist-1.2.
|
|
43
|
-
django_lucy_assist-1.2.
|
|
44
|
-
django_lucy_assist-1.2.
|
|
45
|
-
django_lucy_assist-1.2.
|
|
42
|
+
django_lucy_assist-1.2.6.dist-info/METADATA,sha256=8pC1Cjis3mVCTyBr6xo_wTziqMwWKMDD3yDB5pAbUi8,5899
|
|
43
|
+
django_lucy_assist-1.2.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
44
|
+
django_lucy_assist-1.2.6.dist-info/top_level.txt,sha256=T-UCiwpn5yF3Oem3234TUpSVnEgbkrM2rGz9Tz5N-QA,12
|
|
45
|
+
django_lucy_assist-1.2.6.dist-info/RECORD,,
|
lucy_assist/__init__.py
CHANGED
|
@@ -5,7 +5,7 @@ Un chatbot IA base sur Mistral AI, integrable dans n'importe quelle
|
|
|
5
5
|
application Django pour fournir une assistance contextuelle aux utilisateurs.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
__version__ = '1.2.
|
|
8
|
+
__version__ = '1.2.6'
|
|
9
9
|
__author__ = 'Revolucy'
|
|
10
10
|
|
|
11
11
|
default_app_config = 'lucy_assist.apps.LucyAssistConfig'
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
x-show="!isOpen"
|
|
17
17
|
@click="toggleSidebar()"
|
|
18
18
|
class="lucy-float-btn"
|
|
19
|
-
:class="{ 'animate-pulse': hasNewMessage }"
|
|
19
|
+
x-bind:class="{ 'animate-pulse': hasNewMessage }"
|
|
20
20
|
title="Ouvrir Lucy (Ctrl+K)"
|
|
21
21
|
>
|
|
22
22
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
x-transition:leave-start="transform translate-x-0"
|
|
35
35
|
x-transition:leave-end="transform translate-x-full"
|
|
36
36
|
class="lucy-sidebar"
|
|
37
|
-
:class="{ 'hidden': !isOpen, 'expanded': isExpanded }"
|
|
37
|
+
x-bind:class="{ 'hidden': !isOpen, 'expanded': isExpanded }"
|
|
38
38
|
style="display: none;"
|
|
39
39
|
x-cloak
|
|
40
40
|
>
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
<button
|
|
47
47
|
@click="toggleExpanded()"
|
|
48
48
|
class="lucy-header-btn"
|
|
49
|
-
:class="{ 'active': isExpanded }"
|
|
50
|
-
:title="isExpanded ? 'Reduire la fenetre' : 'Agrandir la fenetre'"
|
|
49
|
+
x-bind:class="{ 'active': isExpanded }"
|
|
50
|
+
x-bind:title="isExpanded ? 'Reduire la fenetre' : 'Agrandir la fenetre'"
|
|
51
51
|
>
|
|
52
|
-
<i class="fa-solid" :class="isExpanded ? 'fa-compress' : 'fa-expand'"></i>
|
|
52
|
+
<i class="fa-solid" x-bind:class="isExpanded ? 'fa-compress' : 'fa-expand'"></i>
|
|
53
53
|
</button>
|
|
54
54
|
|
|
55
55
|
{# Bouton Historique #}
|
|
56
56
|
<button
|
|
57
57
|
@click="showHistory = !showHistory; showDoc = false"
|
|
58
58
|
class="lucy-header-btn"
|
|
59
|
-
:class="{ 'active': showHistory }"
|
|
59
|
+
x-bind:class="{ 'active': showHistory }"
|
|
60
60
|
title="Historique des conversations"
|
|
61
61
|
>
|
|
62
62
|
<i class="fa-solid fa-clock-rotate-left"></i>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<button
|
|
76
76
|
@click="showDoc = !showDoc; showHistory = false"
|
|
77
77
|
class="lucy-header-btn"
|
|
78
|
-
:class="{ 'active': showDoc }"
|
|
78
|
+
x-bind:class="{ 'active': showDoc }"
|
|
79
79
|
title="Documentation"
|
|
80
80
|
>
|
|
81
81
|
<i class="fa-solid fa-book"></i>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
<div
|
|
123
123
|
@click="loadConversation(conv.id)"
|
|
124
124
|
class="lucy-history-item"
|
|
125
|
-
:class="{ 'active': currentConversationId === conv.id }"
|
|
125
|
+
x-bind:class="{ 'active': currentConversationId === conv.id }"
|
|
126
126
|
>
|
|
127
127
|
<div class="lucy-history-item-title" x-text="conv.titre"></div>
|
|
128
128
|
<div class="lucy-history-item-meta">
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
<template x-for="(msg, index) in messages" :key="msg.id || index">
|
|
188
188
|
<div
|
|
189
189
|
class="lucy-message"
|
|
190
|
-
:class="msg.repondant === 'UTILISATEUR' ? 'user' : 'bot'"
|
|
190
|
+
x-bind:class="msg.repondant === 'UTILISATEUR' ? 'user' : 'bot'"
|
|
191
191
|
>
|
|
192
192
|
<div class="lucy-message-avatar">
|
|
193
193
|
<template x-if="msg.repondant === 'UTILISATEUR'">
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
<textarea
|
|
253
253
|
x-model="currentMessage"
|
|
254
254
|
x-ref="messageInput"
|
|
255
|
-
:disabled="isLoading"
|
|
255
|
+
x-bind:disabled="isLoading"
|
|
256
256
|
@keydown.ctrl.enter.prevent="sendCurrentMessage()"
|
|
257
257
|
@keydown.meta.enter.prevent="sendCurrentMessage()"
|
|
258
258
|
placeholder="Tapez votre message..."
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
<button
|
|
264
264
|
type="button"
|
|
265
265
|
@click="sendCurrentMessage()"
|
|
266
|
-
:disabled="isLoading || !currentMessage.trim()"
|
|
266
|
+
x-bind:disabled="isLoading || !currentMessage.trim()"
|
|
267
267
|
class="lucy-send-btn"
|
|
268
268
|
>
|
|
269
269
|
<i class="fa-solid fa-paper-plane"></i>
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
<button @click="showBuyCredits = false" class="lucy-btn lucy-btn-ghost">
|
|
319
319
|
Annuler
|
|
320
320
|
</button>
|
|
321
|
-
<button @click="buyCredits()" class="lucy-btn lucy-btn-primary" :disabled="buyAmount < 10">
|
|
321
|
+
<button @click="buyCredits()" class="lucy-btn lucy-btn-primary" x-bind:disabled="buyAmount < 10">
|
|
322
322
|
<i class="fa-solid fa-credit-card"></i>
|
|
323
323
|
Acheter
|
|
324
324
|
</button>
|
|
@@ -353,13 +353,13 @@
|
|
|
353
353
|
</div>
|
|
354
354
|
|
|
355
355
|
<div class="lucy-modal-footer">
|
|
356
|
-
<button @click="closeFeedback()" class="lucy-btn lucy-btn-ghost" :disabled="feedbackSending">
|
|
356
|
+
<button @click="closeFeedback()" class="lucy-btn lucy-btn-ghost" x-bind:disabled="feedbackSending">
|
|
357
357
|
Annuler
|
|
358
358
|
</button>
|
|
359
359
|
<button
|
|
360
360
|
@click="sendFeedback()"
|
|
361
361
|
class="lucy-btn lucy-btn-warning-solid"
|
|
362
|
-
:disabled="feedbackSending"
|
|
362
|
+
x-bind:disabled="feedbackSending"
|
|
363
363
|
>
|
|
364
364
|
<template x-if="!feedbackSending">
|
|
365
365
|
<span>
|
|
File without changes
|
|
File without changes
|