Skip to content

Conversation

@anonymous-dyce
Copy link
Contributor

@anonymous-dyce anonymous-dyce commented Dec 21, 2025

I currently have my "Ask AI" feature in pages, where users can ask Gemini the theme they are looking for on Open Coding Society, in accordance with what I had shown during the live review. I added my API Key to a .env file in Java Spring, and created 3 files in a folder called "geminiUserPreferences", located in "(repo)/src/main/java/com/open/spring/mvc". Together, my changes enable a user's preferences for different categories of styling to be sent to the backend. They are input as part of a prompt into Gemini, and Gemini's feedback is organized (split and assigned to variables) into the categorized types of styling. The output is sent to the frontend to be printed as the response, and the user is given an option to automatically implement Gemini's recommendations.

I also bypassed authentication for the user preferences api endpoint "/api/upai" so that access to the backend is not blocked (if the user is not logged in).

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