Spaces:
Sleeping
Sleeping
Update app.py
Browse files13 unmodified lines1415161718192013 unmodified linesif history:messages.extend(history)#adds multiple value + types rather than just onemessages.append("{"role": "user", "content": message})response = client.chat_completion(messages, max_tokens=100)print(response)return response['choices'][0]['message']['content'].strip()13 unmodified lines1415161718192013 unmodified linesif history:messages.extend(history)#adds multiple value + types rather than just onemessages.append({"role": "user", "content": message})response = client.chat_completion(messages, max_tokens=100)print(response)return response['choices'][0]['message']['content'].strip()
app.py+1-1