New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LocalProtocolError: Illegal header value b'Bearer ' #21261
Comments
dosubot
bot
added
🔌: openai
Primarily related to OpenAI integrations
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
labels
May 3, 2024
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:
|
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
<#21261 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4LJNMY7GU5D3PXYZSMSA3ZAPKD7AVCNFSM6AAAAABHF4DHHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJTGU2TGNZWGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: