Need Help with source code of open ai

I wanted to see the source code of Completion.create in open ai github repository
I found that there is Completion Class in cli.py file but could not understand how the create function in the class is generating text .Please help me understand this code ,so that I can get better understanding
response = openai.Completion.create(
prompt=f"Answer the question based on the context below, and if the question can’t be answered based on the context, say "I don’t know"\n\nContext: {context}\n\n—\n\nQuestion: {question}\nAnswer:",
temperature=0,
max_tokens=max_tokens,
top_p=1,
frequency_penalty=0,
presence_penalty=0,
stop=stop_sequence,
model=model,
)

I did develop one at github named ocai-3 journey project

If you have time, may check it out
Maybe have some clue for you