flask openai cohere requests