Skip to content

Add Google Gemini/AIStudio plugin#66

Merged
jehna merged 1 commit intomainfrom
add/gemini
Aug 28, 2024
Merged

Add Google Gemini/AIStudio plugin#66
jehna merged 1 commit intomainfrom
add/gemini

Conversation

@jehna
Copy link
Copy Markdown
Owner

@jehna jehna commented Aug 28, 2024

Fixes #11

@jehna jehna merged commit eeff3f8 into main Aug 28, 2024
@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
Comment thread README.md
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
Copy Markdown
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 thread src/commands/gemini.ts
Comment on lines +9 to +10
export const azure = cli()
.name("gemini")
Copy link
Copy Markdown
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?

Comment thread src/commands/gemini.ts
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
Copy Markdown
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
Copy Markdown
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