Skip to content

Fix PDF upload on localhost by making LANGCHAIN_API_KEY optional#1

Merged
ishanavasthi merged 1 commit into
masterfrom
fix-localhost-pdf-upload-803487854439931416
Dec 20, 2025
Merged

Fix PDF upload on localhost by making LANGCHAIN_API_KEY optional#1
ishanavasthi merged 1 commit into
masterfrom
fix-localhost-pdf-upload-803487854439931416

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

The application was crashing on localhost when LANGCHAIN_API_KEY was not set, preventing users from uploading PDFs. This change makes the API key optional in the langgraph-server client 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

- 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.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@ishanavasthi ishanavasthi marked this pull request as ready for review December 20, 2025 12:11
@ishanavasthi ishanavasthi merged commit b855333 into master Dec 20, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant