codebasics / langchain

Tutorial for langchain LLM library
128 stars 223 forks source link

1 line me error #17

Open ritik7545 opened 1 month ago

ritik7545 commented 1 month ago

from langchain.llms import GooglePalm

api_key = 'add your api please'

llm = GooglePalm(google_api_key=api_key, temperature=0.2) llm("write a poem on dhosa")

NotFound: 404 Requested entity was not found.

swaty06 commented 1 month ago

The error you're encountering is due to the withdrawal of Google PaLM by Google, which has been replaced by the Gemini model for API calls