Use task_type when generating embeddings with openai library

Is there a way to utilize task_type when using gemini embedding models with openai library?