django-lucy-assist 1.0.3__py3-none-any.whl → 1.0.4__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.0.3.dist-info → django_lucy_assist-1.0.4.dist-info}/METADATA +2 -1
- {django_lucy_assist-1.0.3.dist-info → django_lucy_assist-1.0.4.dist-info}/RECORD +7 -7
- lucy_assist/__init__.py +1 -1
- lucy_assist/models/configuration.py +3 -0
- lucy_assist/services/claude_service.py +6 -0
- {django_lucy_assist-1.0.3.dist-info → django_lucy_assist-1.0.4.dist-info}/WHEEL +0 -0
- {django_lucy_assist-1.0.3.dist-info → django_lucy_assist-1.0.4.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-lucy-assist
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: Assistant IA intelligent Revolucy pour outil métier
|
|
5
5
|
Author-email: Revolucy <hello@revolucy.fr>
|
|
6
6
|
Maintainer-email: Maxence <hello@revolucy.fr>
|
|
@@ -189,6 +189,7 @@ Lucy Assist expose plusieurs endpoints API :
|
|
|
189
189
|
- V1.0.1 | Correction de bugs
|
|
190
190
|
- V1.0.2 | Correction de bugs
|
|
191
191
|
- V1.0.3 | Correction de bugs
|
|
192
|
+
- V1.0.4 | Ajout Prompt Custom dans configuration
|
|
192
193
|
|
|
193
194
|
## Déploiement Pypi
|
|
194
195
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
lucy_assist/__init__.py,sha256=
|
|
1
|
+
lucy_assist/__init__.py,sha256=Tr_o2S-OSLV_yuIm237gYrKYpvFeySwoHgui9qV1xW0,335
|
|
2
2
|
lucy_assist/admin.py,sha256=-hNfuwuMfxgZVFQc_ODy6WcyZPxrM_8TfKsRMd0fj38,694
|
|
3
3
|
lucy_assist/apps.py,sha256=zHZtlBXs5ML4CKtGg7xDyptSWzLfB1ks2VvbXF50hdo,264
|
|
4
4
|
lucy_assist/conf.py,sha256=xp5t-CRG4L7R-NOkb2sY6-XkmGee7M7Eb-jAVr-CAzk,3500
|
|
@@ -10,13 +10,13 @@ lucy_assist/migrations/0001_initial.py,sha256=Z4chOo4Ok_5VqQyHvfPS00ikyuefdwHF3L
|
|
|
10
10
|
lucy_assist/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
lucy_assist/models/__init__.py,sha256=JQMr50P94sBrKwwcNArRE_qnk7dLnknMKCabeRLskJc,415
|
|
12
12
|
lucy_assist/models/base.py,sha256=Ql2AY7bzvcxZhxsPdCpbVEKvtWD-NBkHTLYZX4TjT3s,1532
|
|
13
|
-
lucy_assist/models/configuration.py,sha256=
|
|
13
|
+
lucy_assist/models/configuration.py,sha256=pvHtI2kWnKgJjvz5SyC3ObpnCW5kHVt0fRq5E_dd4nc,6420
|
|
14
14
|
lucy_assist/models/conversation.py,sha256=psx2AQtQ5SFP-AJD7wbGabpXXLIGYngdVZfeoTlgKtQ,1849
|
|
15
15
|
lucy_assist/models/message.py,sha256=kf-ffMtLYNFhXYUrB3QSL97KKDJUOMrKaPjKeOcJa_o,1492
|
|
16
16
|
lucy_assist/models/project_context_cache.py,sha256=Bnb0VU7pv7QEvjOI6JSLEPvL4BxskCQ0ojWGxO7YDSM,6530
|
|
17
17
|
lucy_assist/services/__init__.py,sha256=I0brW674WNIKkGHj2lj4sGEDD7HUAr5Z254dsbirdLk,691
|
|
18
18
|
lucy_assist/services/bug_notification_service.py,sha256=OyowCvAs-QDlsGQ_WTFoc4lRe9detD7r6ZyYK0JD2Sc,7217
|
|
19
|
-
lucy_assist/services/claude_service.py,sha256=
|
|
19
|
+
lucy_assist/services/claude_service.py,sha256=vYeotZKwFghbWNmN_VM0uggnFQgtNNK0SP3e9QPQzgc,16218
|
|
20
20
|
lucy_assist/services/context_service.py,sha256=RakjdAV74GlJlLsLYiTRluTQVmnkKC92xrXgWhnYJHQ,12232
|
|
21
21
|
lucy_assist/services/crud_service.py,sha256=E8-xRxPXXbUuPakGXPsbZfImEJWZx4BZq5DhM5q2I08,11436
|
|
22
22
|
lucy_assist/services/gitlab_service.py,sha256=uH83fwRSCwiRItznENpYQG4aPckjafYIV9z6OChUrZg,8056
|
|
@@ -38,7 +38,7 @@ lucy_assist/utils/message_utils.py,sha256=YzcLHnl1ig4d5_utHCJwgxS7tKmd49Q-tuo78e
|
|
|
38
38
|
lucy_assist/utils/token_utils.py,sha256=rxe9jHjcRJcaIlcw0QuVmYXOjscTsUsxnhhI6RMBzDM,2608
|
|
39
39
|
lucy_assist/views/__init__.py,sha256=uUPYpuHlBC8j7zKS_DDoWjwpCpRnOIXETY-S2-Ss0cY,288
|
|
40
40
|
lucy_assist/views/api_views.py,sha256=iCvdTTTJ73r3jfyZVjcEDi3Of2wP_N24G_QsXwc-Euk,23617
|
|
41
|
-
django_lucy_assist-1.0.
|
|
42
|
-
django_lucy_assist-1.0.
|
|
43
|
-
django_lucy_assist-1.0.
|
|
44
|
-
django_lucy_assist-1.0.
|
|
41
|
+
django_lucy_assist-1.0.4.dist-info/METADATA,sha256=FIcrAyAOj5EVwJ4JSLieSDoZ3cv5xTd9aTVUVwupwl8,5736
|
|
42
|
+
django_lucy_assist-1.0.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
43
|
+
django_lucy_assist-1.0.4.dist-info/top_level.txt,sha256=T-UCiwpn5yF3Oem3234TUpSVnEgbkrM2rGz9Tz5N-QA,12
|
|
44
|
+
django_lucy_assist-1.0.4.dist-info/RECORD,,
|
lucy_assist/__init__.py
CHANGED
|
@@ -5,7 +5,7 @@ Un chatbot IA basé sur Claude d'Anthropic, intégrable dans n'importe quelle
|
|
|
5
5
|
application Django pour fournir une assistance contextuelle aux utilisateurs.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
__version__ = '1.0.
|
|
8
|
+
__version__ = '1.0.4'
|
|
9
9
|
__author__ = 'Revolucy'
|
|
10
10
|
|
|
11
11
|
default_app_config = 'lucy_assist.apps.LucyAssistConfig'
|
|
@@ -20,6 +20,9 @@ class ConfigurationLucyAssist(LucyAssistBaseModel):
|
|
|
20
20
|
actif = models.BooleanField(default=True)
|
|
21
21
|
avatar = models.ImageField(null=True, blank=True)
|
|
22
22
|
|
|
23
|
+
# Instructions complémentaires pour le prompt
|
|
24
|
+
prompt_complementaire = models.TextField(blank=True,default='')
|
|
25
|
+
|
|
23
26
|
# Mapping des modèles vers leurs applications Django
|
|
24
27
|
model_app_mapping = models.JSONField(blank=True, default=dict)
|
|
25
28
|
|
|
@@ -87,6 +87,12 @@ class ClaudeService:
|
|
|
87
87
|
user_permissions=', '.join(user_permissions)
|
|
88
88
|
)
|
|
89
89
|
|
|
90
|
+
# Ajouter les instructions complémentaires si configurées
|
|
91
|
+
from lucy_assist.models import ConfigurationLucyAssist
|
|
92
|
+
config = ConfigurationLucyAssist.get_config()
|
|
93
|
+
if config.prompt_complementaire:
|
|
94
|
+
prompt += f"\n\n## Instructions complémentaires\n{config.prompt_complementaire}"
|
|
95
|
+
|
|
90
96
|
return prompt
|
|
91
97
|
|
|
92
98
|
def _optimize_messages(self, messages: List) -> List[Dict]:
|
|
File without changes
|
|
File without changes
|