Spaces:
Runtime error
Runtime error
try
Browse files8 unmodified lines91011121314158 unmodified linesif history:messages.extend(history)messages.append({"role" : "user", "content" : messsage})response = client.chat_completion(messages, max_tokens = 100)print(response ["choices"][0]["message"]["content"].strip())8 unmodified lines91011121314158 unmodified linesif history:messages.extend(history)messages.append({"role" : "user", "content" : messages})response = client.chat_completion(messages, max_tokens = 100)print(response ["choices"][0]["message"]["content"].strip())
app.py+1-1