Open AlessioGesuelliUnicam opened 3 weeks ago
To resolve the Error 404 with Ollama in Langflow, ensure the base_url
for the Ollama API in Langflow's configuration matches the actual endpoint where your Ollama API is hosted. If your Ollama API is not at the default "http://localhost:11434", update the base_url
in the ChatOllamaComponent
configuration to the correct URL. This step is crucial for Langflow to communicate with Ollama.
For the "control frame too long" error in your websocket connection, this issue arises when the websocket frame size exceeds the protocol or server's limit. To fix this, adjust the max_size
parameter in your websocket server or client configuration to accommodate larger frames. Here’s an example using the websockets
library in Python:
import websockets
# For a websocket server
start_server = websockets.serve(your_handler, "localhost", 6789, max_size=YourDesiredMaxSize)
# For a websocket client
async with websockets.connect('ws://yourserver:port', max_size=YourDesiredMaxSize) as websocket:
# Your client code here
Replace YourDesiredMaxSize
with a value that suits your application's needs, keeping in mind the balance between frame size and memory usage.
To continue the conversation, mention @dosu.
Discussed in https://github.com/langflow-ai/langflow/discussions/1710