-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Google Gemini/AIStudio plugin #66
Conversation
You'll need a Google AI Studio key. You can get one by signing up at | ||
https://aistudio.google.com/. | ||
|
||
You need to provice the API key to the tool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: 'provice' -> 'provide'
export const azure = cli() | ||
.name("gemini") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a code maintenance perspective, I wonder if the export azure
should be changed to gemini
to align with the name and filename?
export const azure = cli() | ||
.name("gemini") | ||
.description("Use Google Gemini/AIStudio API to unminify code") | ||
.option("-m, --model <model>", "The model to use", "gemini-1.5-flash") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this could be made a 'flexible enum' or similarly provide a list of other useful model names that could be used here in it's help/similar? (while not limiting the model chosen to a fixed list so it doesn't need to be updated for every new model release)
const fileIsMinified = async (filename: string) => { | ||
const prompt = await testPrompt(); | ||
return await prompt( | ||
`Your job is to read the following code and rate it's readabillity and variable names. Answer "EXCELLENT", "GOOD" or "UNREADABLE".`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type: readabillity -> readability
Fixes #11