pull/3/head
killian 12 months ago
parent 54a2236b6c
commit 50823f71d3

@ -25,12 +25,8 @@
} }
var data = JSON.parse(event.data); var data = JSON.parse(event.data);
if (data.hasOwnProperty('content')) { if (data.hasOwnProperty('content')) {
if (data.type == 'code') {
lastMessageElement.innerHTML += '<pre>' + data.content + '</pre>';
} else {
lastMessageElement.innerHTML += data.content; lastMessageElement.innerHTML += data.content;
} }
}
}; };
}; };
ws.onerror = function(error) { ws.onerror = function(error) {

@ -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?"}] [{"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?"}]

@ -65,6 +65,7 @@ for file in glob.glob('/tools/*.py'):
# Hosted settings # Hosted settings
interpreter.llm.api_key = os.getenv('OPENAI_API_KEY') interpreter.llm.api_key = os.getenv('OPENAI_API_KEY')
interpreter.llm.model = "gpt-4" interpreter.llm.model = "gpt-4"
interpreter.auto_run = True
### MISC SETTINGS ### MISC SETTINGS

Loading…
Cancel
Save