Fix PDF upload on localhost by making LANGCHAIN_API_KEY optional#1
Conversation
- Modifies `frontend/lib/langgraph-server.ts` to not throw when `LANGCHAIN_API_KEY` is missing. - Adds unit tests in `frontend/__tests__/lib/langgraph-server.test.ts` to verify the behavior. - Allows running the application on localhost without setting the API key.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
The application was crashing on localhost when
LANGCHAIN_API_KEYwas not set, preventing users from uploading PDFs. This change makes the API key optional in thelanggraph-serverclient initialization, as it is not always required for local development. I also added unit tests to ensure correct behavior.PR created automatically by Jules for task 803487854439931416 started by @ishanavasthi