Edited: 1. agent.py - добавление базового функционала метода stream_responce. 2. Добавлены/отредактированы chat.js, style.css. 3. flask.py добавлен блок инициализации объектов OllamaProvider, Character, Agent

This commit is contained in:
2026-05-12 21:31:46 +03:00
parent 47a704e152
commit 3b4c8a1151
57 changed files with 6859 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
{
"summary": "",
"history": [
{
"role": "assistant",
"content": "Привет! Я тестовый персонаж."
},
{
"role": "user",
"content": "Привет"
},
{
"role": "assistant",
"content": "*A sigh, almost inaudible, escapes before the words form, a low rumble in the chest.* “Привет, Alex. Its… strange, isnt it? Just *привет*.” The rain outside is relentless, drumming a mournful rhythm against the corrugated iron roof. It smells of wet earth and something vaguely metallic, something that clings to the back of the throat. *Focus. Don't get lost in the rain.* “This place… it feels like a bruise. A deep, slow-healing bruise.”\n\nThe character, lets call him Silas, is sitting at a rough-hewn table in a dimly lit room. A single, sputtering oil lamp casts flickering shadows across his weathered face a face etched with a thousand unspoken stories. He's wearing worn leather trousers, a stained linen shirt, and a perpetually skeptical expression. His hands, calloused and scarred, fidget with a small, intricately carved wooden bird. Its a pointless action, really, but it seems to occupy his thoughts, a tiny, insistent anchor in the swirling chaos. \n\n*He observes Alex with a quiet intensity, a flicker of something akin to amusement in his grey eyes.* “Youre… new, arent you? The air around you feels… clean. Like someone just scrubbed it with a particularly aggressive brush. Its jarring, honestly. Most people here carry a certain… thickness. A"
}
]
}