This commit is contained in:
Thommy Bucaille 2023-12-22 00:43:45 +01:00
parent 4ec518b0b4
commit e4f87c06e9
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ class ChatController extends BaseController{
'type' => 'function',
'function' => [
'name' => 'write_file',
'description' => 'Write a file. Recursive allowed and will be created if not exists',
'description' => 'Write a file (not append / erase if already exists). Recursive allowed and will be created if not exists',
'parameters' => [
'type' => 'object',
'properties' => [

View File

@ -73,7 +73,7 @@ View::set('title', __('home'));
// Si le dernier message appartient au même rôle, on ne crée pas de nouveau message
if(chat.lastElementChild && chat.lastElementChild.querySelector('.chat-username').textContent === username) {
// On ajoute le message au dernier message
chat.lastElementChild.querySelector('.chat-content').innerHTML += '<br>' + content.replace(/\n/g, '<br>');
chat.lastElementChild.querySelector('.chat-content').innerHTML += '<br><br>' + content.replace(/\n/g, '<br>');
// On scroll vers le bas smooth
chat.parentElement.scrollTo({
top: chat.scrollHeight,