Skip to content

Conversation

@Ahmonemb
Copy link
Owner

  • 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.

- 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.
@Ahmonemb Ahmonemb merged commit d3259da into main Apr 25, 2025
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.

2 participants