[add] feat: Integrate Gemini API for chat, enhance Course Map CRUD & UI #14
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.