diff --git a/OS/01/app/index.html b/OS/01/app/index.html index 65acffb..dd1f08f 100644 --- a/OS/01/app/index.html +++ b/OS/01/app/index.html @@ -25,11 +25,7 @@ } var data = JSON.parse(event.data); if (data.hasOwnProperty('content')) { - if (data.type == 'code') { - lastMessageElement.innerHTML += '
' + data.content + '
'; - } else { - lastMessageElement.innerHTML += data.content; - } + lastMessageElement.innerHTML += data.content; } }; }; diff --git a/OS/01/core/interpreter/conversations/user.json b/OS/01/core/interpreter/conversations/user.json index 8b2e72b..634874b 100644 --- a/OS/01/core/interpreter/conversations/user.json +++ b/OS/01/core/interpreter/conversations/user.json @@ -1 +1 @@ -[{"role": "user", "type": "message", "content": "uh"}, {"role": "assistant", "type": "message", "content": "Hello! How can I assist you today?"}, {"role": "user", "type": "message", "content": "hello"}, {"role": "assistant", "type": "message", "content": "Hi there! What can I help you with today? Can we start by planning your day or there's something specific you have in mind?"}] \ No newline at end of file +[{"role": "user", "type": "message", "content": "uh"}, {"role": "assistant", "type": "message", "content": "Hello! How can I assist you today?"}, {"role": "user", "type": "message", "content": "hello"}, {"role": "assistant", "type": "message", "content": "Hi there! What can I help you with today? Can we start by planning your day or there's something specific you have in mind?"}, {"role": "user", "type": "message", "content": "hi"}, {"role": "assistant", "type": "message", "content": "Hello! How can I assist you today? If you have any tasks or schedule to plan for the day, feel free to tell me."}, {"role": "user", "type": "message", "content": "what time is it"}, {"role": "assistant", "type": "message", "content": "I apologize for any inconvenience this might cause, but as an AI, I don't possess real-time capabilities. However, you can check the current time on the device you're using to interact with me. Is there anything else you need assistance with?"}] \ No newline at end of file diff --git a/OS/01/core/interpreter/start.py b/OS/01/core/interpreter/start.py index 60f4e18..9b7ba69 100644 --- a/OS/01/core/interpreter/start.py +++ b/OS/01/core/interpreter/start.py @@ -65,6 +65,7 @@ for file in glob.glob('/tools/*.py'): # Hosted settings interpreter.llm.api_key = os.getenv('OPENAI_API_KEY') interpreter.llm.model = "gpt-4" +interpreter.auto_run = True ### MISC SETTINGS