Dev log #2
So I started testing out the AI here because I’ve never worked with it, and it wasn’t as hard as I thought it’d be. I decided to use a Gemini API, which I had to get from the Google AI Studio API Keys page. Then they also had a page somewhere teaching you how to use the API, which helped a lot (Gemini API help). The biggest issue I had was which model of Gemini I was using. 3.5 lite allowed more usage, and was the latest model that I could use.
Updates
- I made a test file for testing the pyautogui to take a screenshot and save it.
- Got a Gemini API key
- Learned how to make a hidden file called .env(environmental variables) and gitignore(Put the name of files you don’t want to commit) to hide my API key when I commit it to my GitHub
- Created a basic AI interaction with Gemini to take a text input, and an image input to generate a response.
What’s next
- Tune the prompt a bit to generate the response in a specific format(Right now I get an explanation sometimes, and not others)
- Connect this to the application display I made last time to show what I’m doing right now.
Check out the code below to see how my simple AI interaction works.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.