[Python] Langchain error - NotImplementedError: Need to determine which default deprecation...

Discussão em 'Python' iniciado por Stack, Março 17, 2025.

  1. Stack

    Stack Membro Participativo

    I ran the bellow code. However, currently, it shows an error massage.

    from langchain.llms import GooglePalm

    api_key = 'my_API'


    llm = GooglePalm(google_api_key=api_key,
    temperature=0.1)


    This is the error I got.

    NotImplementedError Traceback (most recent call last)
    <ipython-input-2-a3e32679669c> in <cell line: 7>()
    5
    6 # Create llm variable here
    ----> 7 llm = GooglePalm(google_api_key=api_key,
    8 temperature=0.1)

    2 frames
    /usr/local/lib/python3.10/dist-packages/langchain_core/_api/deprecation.py in warn_deprecated(since, message, name, alternative, pending, obj_type, addendum, removal)
    293 if not removal:
    294 removal = f"in {removal}" if removal else "within ?? minor releases"
    --> 295 raise NotImplementedError(
    296 f"Need to determine which default deprecation schedule to use. "
    297 f"{removal}"

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


    Can someone please help me to solve this?

    I need to create the large language model variable.

    Continue reading...

Compartilhe esta Página