nlplangchainlarge-language-modelpalm-pre

GooglePalm(). NotImplementedError: Need to determine which default deprecation schedule to use. within ?? minor releases


this code was working fine before, and now it raise this error when calling GooglePalm with langchain. The error:

----> 8 llm = GooglePalm(). NotImplementedError: Need to determine which default deprecation schedule to use. within ?? minor releases.

My code:

import google.generativeai as palm
from langchain.embeddings import GooglePalmEmbeddings
from langchain.llms import GooglePalm
palm.configure(api_key=GOOGLE_API_KEY)
llm = GooglePalm()

Solution

  • I solved it by upgradown langchain version:

    !pip uninstall langchain
    !pip install langchain==0.0.339