Open andysingal opened 3 months ago
You're missing the API key, and you'll need to read it using dotenv. If you're using Mistral, create the API key in your Mistral account. If you're using OpenAI, generate the API key there instead.
It's also part of the documentation:
# Set env vars for the relevant model or load from a .env file:
import dotenv
dotenv.load_dotenv()
Thanks David , I guess I need to add my Mistral key in .env . Can you please update the docs too. Thanks Again!!
On Sat, May 4, 2024 at 00:04 David @.***> wrote:
You're missing the API key, and you'll need to read it using dotenv. If you're using Mistral, create the API key in your Mistral account. If you're using OpenAI, generate the API key there instead.
It's also part of the documentation:
Set env vars for the relevant model or load from a .env file:
import dotenv dotenv.load_dotenv()
— Reply to this email directly, view it on GitHub https://github.com/langchain-ai/langchain/issues/21261#issuecomment-2093553765, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4LJNMY7GU5D3PXYZSMSA3ZAPKD7AVCNFSM6AAAAABHF4DHHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJTGU2TGNZWGU . You are receiving this because you authored the thread.Message ID: @.***>
I am also using Mistral Ai and Api key is being read, no issue with that but still I am receiving the same error after executing .invoke method.
I am also using Mistral Api but am receiving the same error
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Trying https://python.langchain.com/docs/use_cases/extraction/quickstart/
System Info