Open TwangyMoney opened 10 months ago
It seems that this project is no longer being maintained, OpenAI is making it difficult to use free APIs, so I recommend you check out this other, more active repository to solve your problem: https://github.com/PawanOsman/ChatGPT
Can someone help me with this I'm having trouble. It feels really complex for me to understand how this works. This is basically what I'm trying to do: async def generate_response(instructions, history=None): if history is None: data = { "model": "gpt-3.5-turbo-16k-0613", "temperature": 0.75, "messages": [ {"role": "system", "content": instructions}, ], } else: data = { "model": "gpt-3.5-turbo-16k-0613", "temperature": 0.75, "messages": [ {"role": "system", "content": instructions}, *history, ], }