Skip to content
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

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Add Google Gemini/AIStudio plugin #66

merged 1 commit into from
Aug 28, 2024

Conversation

jehna
Copy link
Owner

@jehna jehna commented Aug 28, 2024

Fixes #11

@jehna jehna merged commit eeff3f8 into main Aug 28, 2024
4 checks passed
@jehna jehna deleted the add/gemini branch August 28, 2024 15:00
@jehna jehna added the enhancement New feature or request label Aug 28, 2024
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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: 'provice' -> 'provide'

Comment on lines +9 to +10
export const azure = cli()
.name("gemini")
Copy link
Contributor

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")
Copy link
Contributor

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".`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type: readabillity -> readability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a support for Gemini 1.5 Pro
2 participants