How to Use OpenAI's Library to Access Gemini's URL Context Capability? My Code Isn't Working

I’m trying to access the URL context capability of Gemini using OpenAI’s library, but my code doesn’t seem to be working. And I just read OpenAI compatibility  |  Gemini API  |  Google AI for Developers and URL context  |  Gemini API  |  Google AI for Developers, cannot find anything helpful to achieve this. Thanks a lot!

import openai

client = openai.OpenAI(
    api_key="", # or os.getenv("POE_API_KEY")
    base_url="https://api.poe.com/v1",
)

tools = [
  {"url_context": {}},
]

chat = client.chat.completions.create(
    model="Gemini-2.0-Flash",
    messages=[{"role": "user", "content": "tell me the author of this paper:https://arxiv.org/pdf/2108.11539"}],
#   tools=tools,
)
print(chat.choices[0])

You don’t need to take any extra steps to use the URL context feature. For example:

url1 = "https://www.foodnetwork.com/recipes/ina-garten/perfect-roast-chicken-recipe-1940592"
url2 = "https://www.allrecipes.com/recipe/21151/simple-whole-roast-chicken/"

response = client.chat.completions.create(
    model="gemini-2.5-flash",
    messages=[
        {
            "content": f"Compare the ingredients and cooking times from the recipes at {url1} and {url2}",
            "role": "user"
        }
    ]
)

print(response.choices[0].message.content)

will return the expected response, which proves that URL interpretation is already enabled.

Thanks. Is it possible to get the meta response(URL context  |  Gemini API  |  Google AI for Developers) in this way?