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
MoonshotChat moonshot_api_key is invaild for api key #21237
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
Let me see. |
This was referenced May 6, 2024
hwchase17
pushed a commit
that referenced
this issue
May 7, 2024
… key (#21361) Description: close #21237 @baskaryan, @eyurtsev
dglogo
pushed a commit
to dglogo/langchain
that referenced
this issue
May 8, 2024
… key (langchain-ai#21361) Description: close langchain-ai#21237 @baskaryan, @eyurtsev
kyle-cassidy
pushed a commit
to kyle-cassidy/langchain
that referenced
this issue
May 10, 2024
… key (langchain-ai#21361) Description: close langchain-ai#21237 @baskaryan, @eyurtsev
kyle-cassidy
pushed a commit
to kyle-cassidy/langchain
that referenced
this issue
May 16, 2024
… key (langchain-ai#21361) Description: close langchain-ai#21237 @baskaryan, @eyurtsev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checked other resources
Example Code
MoonshotChat(api_key=model.api_key,streaming=True,model=model.name)
Error Message and Stack Trace (if applicable)
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Invalid Authentication', 'type': 'invalid_authentication_error'}}
Description
The moonshot_api_key type is SecretStr ,when MoonshotChat class build openai client params ,it still use secret string ,
cause the request error:
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Invalid Authentication', 'type': 'invalid_authentication_error'}}
System Info
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Invalid Authentication', 'type': 'invalid_authentication_error'}}
The text was updated successfully, but these errors were encountered: