-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
624 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ class AlbertMsg: | |
shorts = { | ||
"help": f"Pour retrouver ce message informatif, tapez `{COMMAND_PREFIX}aide`. Pour les geek tapez `{COMMAND_PREFIX}aide -v`.", | ||
"reset": f"Pour ré-initialiser notre conversation, tapez `{COMMAND_PREFIX}reset`", | ||
"collections": f"Pour modifier l'ensemble des collections utilisées quand vous me posez une question, tapez `{COMMAND_PREFIX}collections list/use/unuse/info COLLECTION_NAME/{Config().albert_all_public_command}`", | ||
"conversation": f"Pour activer/désactiver le mode conversation, tapez `{COMMAND_PREFIX}conversation`", | ||
"debug": f"Pour afficher des informations sur la configuration actuelle, `{COMMAND_PREFIX}debug`", | ||
"model": f"Pour modifier le modèle, tapez `{COMMAND_PREFIX}model MODEL_NAME`", | ||
|
@@ -22,6 +23,10 @@ class AlbertMsg: | |
|
||
failed = "🤖 Albert a échoué à répondre. Veuillez réessayez dans un moment." | ||
|
||
flush_start = "Nettoyage des collections RAG propres à cette conversation..." | ||
|
||
flush_end = "Nettoyage des collections RAG terminé." | ||
|
||
reset = "**La conversation a été remise à zéro**. Vous pouvez néanmoins toujours répondre dans un fil de discussion." | ||
|
||
user_not_allowed = "Albert est en phase de test et n'est pas encore disponible pour votre utilisateur. Contactez [email protected] pour demander un accès." | ||
|
@@ -52,7 +57,7 @@ def help(model_url, model_short_name, cmds): | |
|
||
def commands(cmds): | ||
msg = "Les commandes spéciales suivantes sont disponibles :\n\n" | ||
msg += "- " + "\n- ".join(cmds) # type: ignore | ||
msg += "- " + "\n- ".join(cmds) # type: ignore | ||
return msg | ||
|
||
def unknown_command(cmds_msg): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.