n_subtopics = 5 TOPIC_GENERATION_PROMPT_TEMPLATE = """ I want to create a synthetic dataset of natural language and Git commands. Based on this context, give me {n_subtopics} subtopics to cover what needs to be covered when working with Git. The list must be without numbers, and without any description of the subtopics. The subtopics should be separated by a comma. There must be no other text than the list. """ def generate_subtopics(client, n_subtopics): prompt = TOPIC_GENERATION_PROMPT_TEMPLATE.format(n_subtopics=n_subtopics) response = client.chat.completions.create( model=MODEL, messages=[ {"role": "user", "content": prompt} ], temperature=0.2, top_p=0.7, ) return response responses = generate_subtopics(client, n_subtopics=n_subtopics) print(responses.choices[0].message.content)