[Python] No response when invoking response from gpt-4o-mini

Discussão em 'Python' iniciado por Stack, Junho 27, 2025.

  1. Stack

    Stack Membro Participativo

    I'm really new to this stuff and I'm trying to follow a tutorial for my internship. I'm following it step by step but I'm not getting output when I do python .\main.py in my virtual environment

    from dotenv import load_dotenv
    from pydantic import BaseModel
    from langchain_openai import ChatOpenAI

    load_dotenv()

    llm = ChatOpenAI(model="gpt-4o-mini")
    response = llm.invoke("What is the capital of France?")
    print(response.content)


    I tried changing the model and print statement but it just returns nothing

    Continue reading...

Compartilhe esta Página