mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
updated ui
This commit is contained in:
parent
501d7a456d
commit
f27690c13b
@ -106,6 +106,7 @@ private:
|
|||||||
|
|
||||||
// Event handler for receiving generated text
|
// Event handler for receiving generated text
|
||||||
client_.socket()->on("text_generated", [&](const sio::event& event) {
|
client_.socket()->on("text_generated", [&](const sio::event& event) {
|
||||||
|
ASCIIColors::yellow("\nText generated:");
|
||||||
sio::message::ptr message = event.get_message();
|
sio::message::ptr message = event.get_message();
|
||||||
if (message->get_map().find("text") != message->get_map().end()) {
|
if (message->get_map().find("text") != message->get_map().end()) {
|
||||||
sio::message::ptr chunkMessage = message->get_map()["text"];
|
sio::message::ptr chunkMessage = message->get_map()["text"];
|
||||||
@ -205,6 +206,7 @@ int main()
|
|||||||
}
|
}
|
||||||
std::cout<<"Opened"<<std::endl;
|
std::cout<<"Opened"<<std::endl;
|
||||||
|
|
||||||
|
ASCIIColors::yellow("Starting Reception of chunks:");
|
||||||
// Trigger the "generate_text" event when needed
|
// Trigger the "generate_text" event when needed
|
||||||
std::string prompt = "SYSTEM:Act as assiatant, a great and helpful AI agent that does multiple tasks. Help user do what he needs to do.\nUser:write a python hello word code\nAssistant:";
|
std::string prompt = "SYSTEM:Act as assiatant, a great and helpful AI agent that does multiple tasks. Help user do what he needs to do.\nUser:write a python hello word code\nAssistant:";
|
||||||
client.generateText(prompt,1024);
|
client.generateText(prompt,1024);
|
||||||
|
Loading…
Reference in New Issue
Block a user