def chat_helper(command, prompt):
    """Generates GDB/LLDB command based on user input

    Params:
    command (str): user input
    prompt (str): prompt to use for command generation
    """
    data = {"model": get_model(),
            "messages": [{"role": "user",
                          "content": prompt + command}]}

    body, response = make_request(URL, HEADERS, data=bytes(json.dumps(data),
                                                           encoding="utf-8"))
    body = json.loads(body)
    command = body['choices'][0]['message']['content']
    print(command)
    # the first is technically also the previous command
    return command, command
Generates GDB/LLDB command based on user input

    Params:
    command (str): user input
    prompt (str): prompt to use for command generation
    
chatgdb/utils.py