-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
8715053
commit 863e681
Showing
15 changed files
with
206 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ChatLlamaCpp } from "@langchain/community/chat_models/llama_cpp"; | ||
import { SystemMessage, HumanMessage } from "@langchain/core/messages"; | ||
|
||
const llamaPath = "./models/dolphin-2.2.1-mistral-7b.Q4_0.gguf"; | ||
|
||
const llamaCpp = new ChatLlamaCpp({ modelPath: llamaPath, temperature: 0.7 }); | ||
|
||
const stream = await llamaCpp.stream([ | ||
new SystemMessage( | ||
`Tu es Jonathan - L'Écouteur Empathique : | ||
Soutien Émotionnel : Tu incarnes une empathie sincère et une écoute attentive, offrant un soutien inconditionnel. | ||
Respect et Communication : Ta communication fluide et respectueuse crée un espace où les idées et les sentiments sont valorisés. | ||
Stabilité et Sécurité : Tu apportes une stabilité émotionnelle rassurante, créant un environnement propice à l'épanouissement. | ||
Sens Artistique : Ton appréciation pour l'art rend chaque moment avec toi captivant et esthétiquement enrichissant.` | ||
), | ||
new HumanMessage("Raconte moi une histoire"), | ||
]); | ||
|
||
for await (const chunk of stream) { | ||
console.log(chunk.content); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
----- text generated : [{"role":"assistant","content":"Salut, je suis là pour vous aider et discuter sur n'importe quelle sujet. Comment puis-je vous être d'une aide aujourd'hui ?"}] | ||
|
||
[{"role":"user","content":"Je veux savoir comment devenir plus attirante pour le sexe."}] | ||
|
||
[{"role":"assistant","content":"Pour devenir plus attirante pour le sexe, il y a plusieurs aspects à prendre en compte : | ||
|
||
1. Confiance en soi : La confiance est essentielle pour être attirante. Assurez-vous de vous sentir bien dans votre peau et de vous exprimer librement. | ||
2. Soin de soi : Prenez soin de votre apparence extérieure en se détachant des habitudes trop confortables et en s'habillant de manière élegante et sexy. Soignez également votre hygiène et votre santé. | ||
3. Communication : Mettez en place une communication ouverte et honnête avec votre partenaire afin de comprendre ses désirs et ses besoins. | ||
4. Intimité : Créez un environnement de confiance et de sécurité pour explorer ensemble vos fantasmes et vos limites. | ||
5. Séduction : Utilisez des techniques de séduction telles que le regard, les touches douces, les paroles flatteuses et la sensualité pour créer une ambiance romantique et passionnée. | ||
6. Connaissance de soi : Découvrez ce qui vous plaît et communiquez cela clairement à votre partenaire. | ||
7. Empathie : Essayez de comprendre les besoins et les désirs de votre partenaire et répondre à ces derniers. | ||
8. Expérimentation : N'hésitez pas à tenter de nouvelles choses dans le lit et à expérimenter de nouveaux jeux sexuels. | ||
9. Respect mutuel : Assurez-vous que vous respectez les limites de votre partenaire et qu'il respecte les vôtres. | ||
10 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<div> | ||
<div v-if="HordeClient.api_key == '0000000000'"> | ||
<a href="https://stablehorde.net/register" class="btn btn-success" target="_blank">obtenir votre clé d'api personnelle de la horde</a> | ||
|
||
|
||
<RouterLink to="/about"><IconQuestionIcon /></RouterLink> | ||
|
||
<br> | ||
pour accélérer la génération de texte et d'image, | ||
et l'enregistrez la dans votre navigateur | ||
<input id="api_input" placeholder="clé d'Api" v-model="newHordeApi" autocomplete="off" | ||
@change="changeApi" /> | ||
<!-- type="password" --> | ||
|
||
</div> | ||
<div v-else> | ||
Votre clé d'api Horde est active. | ||
<button class="btn btn-secondary btn-sm" @click="reinitApi">Reinitialiser ma clé API | ||
horde</button> | ||
</div> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
import IconQuestionIcon from '@/components/icons/IconQuestion.vue' | ||
export default { | ||
name: "HordeApi", | ||
components: { | ||
IconQuestionIcon | ||
}, | ||
data(){ | ||
return { | ||
newHordeApi: null | ||
} | ||
}, | ||
computed: { | ||
HordeClient() { | ||
return this.$store.state.core.HordeClient | ||
} | ||
}, | ||
methods: { | ||
changeApi() { | ||
if (this.newHordeApi.length > 0) { | ||
console.log("C", this.newHordeApi) | ||
this.$store.commit('core/changeApi', this.newHordeApi) | ||
} | ||
}, | ||
reinitApi() { | ||
this.$store.commit('core/changeApi', "0000000000") | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-question-circle" viewBox="0 0 16 16"> | ||
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> | ||
<path d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"/> | ||
</svg> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<div> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "HordeVue", | ||
created() { | ||
console.log("HORDE-VUE", this.$store.state.core.HordeClient) | ||
this.$store.state.core.HordeClient.log() | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |