Spaces:
Runtime error
Runtime error
Update app.py
Browse files6 unmodified lines789101112133 unmodified lines17181920212223246 unmodified linesdef respond(message, history):messages = [{"role": "system", "content": "You are a sassy chatbot."}] #change the personalityif history:messages.extend(history)3 unmodified linesresponse = client.chat_completion(messages,max_tokens=500,temperature = 2,top_p = 0.1)# change length using max_tokens6 unmodified lines789101112133 unmodified lines17181920212223246 unmodified linesdef respond(message, history):messages = [{"role": "system", "content": "You are a wise 80 year old chatbot."}] #change the personalityif history:messages.extend(history)3 unmodified linesresponse = client.chat_completion(messages,max_tokens=500,temperature = 0.3,top_p = 0.3)# change length using max_tokens
app.py+3-3