You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have update on langflow version 1.1.3
Since this the OpenAI component get following error
The error happens in the basic prompting example too
ValidationError: 1 validation error for ChatOpenAI
api_key
Input should be a valid string [type=string_type, input_value=SecretStr('**********'),
input_type=SecretStr]
For further information visit https://errors.pydantic.dev/2.10/v/string_type
Reproduction
.
Expected behavior
.
Who can help?
No response
Operating System
Windows
Langflow Version
1.1.3
Python Version
None
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered:
I found a similar unsolved discussion regarding a validation error with the OpenAI component in Langflow. The error message in that discussion was about not finding the openai_api_key and suggested adding it as an environment variable or passing it as a named parameter [1].
In your case, the error indicates that the api_key should be a valid string. Ensure that the OPENAI_API_KEY is correctly set as a string in your environment variables or passed directly to the component. Double-check that there are no issues with how the key is being stored or retrieved, such as incorrect formatting or encoding.
Bug Description
I have update on langflow version 1.1.3
Since this the OpenAI component get following error
The error happens in the basic prompting example too
Reproduction
.
Expected behavior
.
Who can help?
No response
Operating System
Windows
Langflow Version
1.1.3
Python Version
None
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: