Write a program on python programming language that generate OpenAssistant API. You need to realise only two endpoints - send prompt and getting reply. Use only python3 for it.