https://retellai.com/?utm_source=discord&utm_medium=seo logo
'Failed to get <LLM_ID> from retell-stateful-llm-...
# ❓・bug-report
c
I'm trying to override the response engine at the phone call creation step, but I'm getting this error. This is how I'm passing the arguments:
Copy code
llm_response_engine = {
            "type": "retell-llm",
            "llm_id": llm_id,
        }
        call = await self.async_client.call.create_phone_call(
            to_number=to_number,
            from_number=from_number,
            retell_llm_dynamic_variables=retell_llm_dynamic_variables,
            override_agent_id=retell_agent_id,
            extra_body={"agent_override": {"agent": {"response_engine": llm_response_engine}},}
        )
The LLM does appear to exist though, I can retrieve it with and assign it to an existing agent. This error only happens when I try to override the existing one at the moment of making the call.
s
try this structure and let me know call = await self.async_client.call.create_phone_call( to_number=to_number, from_number=from_number, retell_llm_dynamic_variables=retell_llm_dynamic_variables, override_agent_id=retell_agent_id, agent_override={ "agent": { "response_engine": { "type": "retell-llm", "llm_id": llm_id, "version": 0 # Add version number } } } )
c
Hey @Shah - support @ Retell AI , that did the trick. Thanks!
s
you welcome