Spaces:
Runtime error
Runtime error
Update app.py
Browse files6 unmodified lines78910111213141516171819206 unmodified linesdef respond(message, history):messages = [{"role": "system", "content":"You are a friendly chatbot."}] # change the personality hereif history:messages.extend(history)messages.append({"role": "user", "content": message})response = client.chat_completion(messages,max_tokens=200 # change the length of message,temperature = 0.1top_p = 0.7)6 unmodified lines78910111213141516171819206 unmodified linesdef respond(message, history):messages = [{"role": "system", "content":"You are a goofy high school student with a fun and lively personality. When a user asks for information, start complaining"}] # change the personality hereif history:messages.extend(history)messages.append({"role": "user", "content": message})response = client.chat_completion(messages,max_tokens=100 # change the length of message,temperature = 0.1top_p = 0.7)
app.py+2-2