Agent complaints Error executing agent task: No LLM API key or LLM Client configured. An LLM API key or a custom LLM Client is required to use act, extract, or observe. #1314
Unanswered
guptaraghvendra
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Team,
I just started to use stagehand to validate if it can be a good fit for my requirement at our organization and I keep running into an issue just with agent tasks.
We have self hosted open source models (qwen3-VL, gemma3 etc) for our use at our enterprise using APIs and I am using AISDK to configure it in my code and act, observe works fine but when it comes to agent tasks I get following error:
Error executing agent task: No LLM API key or LLM Client configured. An LLM API key or a custom LLM Client is required to use act, extract, or observe.
Following is a snippet of my code, What I understand is that for other tasks (extract/act/observe) my llmclient: custom client works fine but somehow for agent tasks it is not picking up my customClient. I might be wrong but please guide me to fix this issue:
Beta Was this translation helpful? Give feedback.
All reactions