Open v-wei40680 opened 4 days ago
Hey there, @v-wei40680! I'm here to help you with bugs, questions, and contributions. Let's tackle this issue together while we wait for a human maintainer.
The error you're encountering, "max_new_tokens not found in HuggingFaceEndpointsComponent," suggests that the max_new_tokens
parameter is missing or not properly defined in your flow setup. In the Langflow codebase, the max_new_tokens
parameter is expected to be used within the create_huggingface_endpoint
method of the HuggingFaceEndpointsComponent
[1].
To resolve this issue, ensure that the max_new_tokens
parameter is correctly specified in your flow configuration. You might need to check the component settings in your flow to ensure that this parameter is included and has a valid value. If the parameter is not visible in the UI, it might be necessary to update the component or the flow configuration to include it.
To continue talking to Dosu, mention @dosu.
Bug Description
Error building Component HuggingFace: max_new_tokens not found in HuggingFaceEndpointsComponent flow Component: chat input -> HuggingFace -> chat output
Reproduction
my step:
Expected behavior
chat at playground
Who can help?
No response
Operating System
hugging face Space cpu basic
Langflow Version
langflowai/langflow:latest
Python Version
None
Screenshot
No response
Flow File
No response