[Python] What is the default value of temperature parameter in ChatOpenAI in Langchain?

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

  1. Stack

    Stack Membro Participativo

    What is the default value of the temperature parameter when I create an instance of ChatOpenAI in Langchain?

    from langchain_openai import ChatOpenAI

    llm = ChatOpenAI(model="gpt-4o")
    print(llm.temperature) # it is None!

    llm=ChatOpenAI(model="gpt-4o", temperature=0.1)
    print(llm.temperature) # it is 0.1


    when I don't explicitly set a value to temperature it would be None! so what does it mean? is it Zero or One in this case?

    Continue reading...

Compartilhe esta Página