Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Assuming the API key was properly defined, what change does the Generative AI Engineer need to make to fix their chain?
A
prompt_template = "Tell me a {adjecive} joke" prompt = PromptTemplate( input_variables=["adjecive"], template=prompt_template ) llm = LLMChain(prompt=prompt) llm.generate("funny")
B
prompt_template = "Tell me a {adjecive} joke" prompt = PromptTemplate( input_variables=["adjecive"], template=prompt_template ) llm = LLMChain(prompt=prompt.format("funny")) llm.generate()