adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

All 2.5 models not found

Open ckl-axel opened this issue 1 year ago • 7 comments

Describe the bug Starting around July 15 4:18, when running ADK agent with 2.5 models we get

{"error": "404 NOT_FOUND. {'error': {'code': 404, 'message': 'Publisher Model `projects/ascend-main/locations/us-central1/publishers/google/models/gemini-live-2.5-flash` was not found or your project does not have access to it. Please ensure you are using a valid model version. For more information, see: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions', 'status': 'NOT_FOUND'}}"}

While 2.0 models appears to be working.

Model Information: gemini-2.5-pro-preview-05-06 gemini-2.5-pro gemini-live-2.5-flash gemini-2.5-flash-preview-05-20

all gave us the same error.

More info This can be reproduced both on vertex AI and local.

ckl-axel avatar Jul 15 '25 23:07 ckl-axel

For us this is mitigated by downgrading all agents to gemini-2.0-flash-001.

We hope to get some visibility on why this is happening. We did not make any changes during the time this error started happening.

ckl-axel avatar Jul 16 '25 00:07 ckl-axel

Same experience.

davidjohannesbotha avatar Jul 16 '25 08:07 davidjohannesbotha

[Possibly related] For me gemini-2.5-pro actually works, but none of the preview models are available. If you scroll to "Versions" on https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-pro the Discontinuation date is July 15, 2025.

StanAngeloff avatar Jul 16 '25 14:07 StanAngeloff

Might have been a transition issue, we have upgraded to the 2.5 versions now and they work.

ckl-axel avatar Jul 17 '25 19:07 ckl-axel

Will leave this open to discuss ways we can prevent this from happening.

I suggest a way to configure a fallback model for agents that will be used in the case when the primary model specified fails.

ckl-axel avatar Jul 17 '25 19:07 ckl-axel

close as it's fixed.

hangfei avatar Nov 06 '25 05:11 hangfei

I am still facing the same issue:

def root_agent() -> LlmAgent:
    agent = LlmAgent(
        name="OrchestratorAgent",
        model="gemini-2.5-pro",
        description="""The Orchestrator Agent is the primary entry point that greets users, 
                    identifies their intent, and routes each query to the correct specialist agent for travel requests, reimbursements, or trip history, 
                    ensuring responses remain within the system’s defined scope.""",
        instruction=root_instruction,
        sub_agents = [travel_request_agent(), reimbursement_agent(), redis_mcp_agent()],
        # tools=[PreloadMemoryTool()],
        # after_agent_callback=None,
        # output_schema=ChatEnvelope
    )
    # attach_memory_callback(agent)
    return agent

But I am getting:

google.genai.errors.ClientError: 404 NOT_FOUND. {'error': {'code': 404, 'message': 'Publisher Model projects/xx/locations/asia-south1/publishers/google/models/gemini-2.5-pro not found.', 'status': 'NOT_FOUND'}}

bhavyajoshi-mahindra avatar Nov 21 '25 08:11 bhavyajoshi-mahindra