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