Conversation
- Replace OpenAI with Google Gemini (`gemini-1.5-flash`) for the `/chat` endpoint.
- Implement multimodal input handling (text + images) for Gemini API.
- Add history conversion logic for chat sessions.
- Debug and fix Gemini API key validation and image processing errors (`AttributeError: 'Part'`).
- Add `google-generativeai` dependency and configure client in `app.py`.
- Refactor Course Map component (`CourseMap.jsx`):
- Fix map list loading errors (`mapList.map is not a function`).
- Ensure new maps send required empty `nodes`/`edges` payload to backend.
- Correct map deletion logic (`handleDeleteMap`) to update state (`mapList`), cache, and load next map or reset view.
- Modify map selection dropdown (`handleMapSelectChange`) to reset view (`loadSpecificMap(null)`) for "[Untitled Map]" option instead of creating a new map.
- Configure Vite proxy (`vite.config.js`) to rewrite `/api` paths, avoiding backend route changes.
- Debug Google Sign-In / FedCM issues:
- Troubleshoot `NetworkError` and `AbortError` related to FedCM.
- Disable Google One Tap (`useOneTap`) in `App.jsx` to prevent click interruption errors.
- Verify `Cross-Origin-Opener-Policy` header in `vite.config.js` for OAuth popups.
- Add debugging print statements to `app.py` for API key loading.
- Add hyperlinks to projects in LaTeX resume.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace OpenAI with Google Gemini (
gemini-1.5-flash) for the/chatendpoint.Implement multimodal input handling (text + images) for Gemini API.
Add history conversion logic for chat sessions.
Debug and fix Gemini API key validation and image processing errors (
AttributeError: 'Part').Add
google-generativeaidependency and configure client inapp.py.Refactor Course Map component (
CourseMap.jsx):mapList.map is not a function).nodes/edgespayload to backend.handleDeleteMap) to update state (mapList), cache, and load next map or reset view.handleMapSelectChange) to reset view (loadSpecificMap(null)) for "[Untitled Map]" option instead of creating a new map.Configure Vite proxy (
vite.config.js) to rewrite/apipaths, avoiding backend route changes.Debug Google Sign-In / FedCM issues:
NetworkErrorandAbortErrorrelated to FedCM.useOneTap) inApp.jsxto prevent click interruption errors.Cross-Origin-Opener-Policyheader invite.config.jsfor OAuth popups.Add debugging print statements to
app.pyfor API key loading.Add hyperlinks to projects in LaTeX resume.