Spaces:
Sleeping
Sleeping
Update app.py
Browse files18 unmodified lines192021222324252618 unmodified linesmessages.extend(history)response = client.chat_completion(messages, max_tokens=100)return response['choices'][0]['message']['content'].strip()18 unmodified lines19202122232425262718 unmodified linesmessages.extend(history)response = client.chat_completion(messages, max_tokens=100, temperature = 1.7, top_p = 0.4)#temperature and top p control randomnessreturn response['choices'][0]['message']['content'].strip()
app.py+2-1