flask openai cohere-ai requests