Skip to content

alainQtec/cliHelper.gemini

Repository files navigation

Pwsh> Image

PowerShell module for google 's Gemini.

Usage

Import-Module cliHelper.gemini
$g = [Gemini]::new()
$g.Chat()

then

  • Chat.

    Example with gemini-1.5-flash-8b:

    gemini_cli_demo.mp4

    ❯ Note.: The goal of this module is not to be a chatbot, rather it's to provide cmdlets that brings the power of google gemini to other modules. Example: generating fileContents, Names, etc.

    ❯ For more usage read the docs. Its straightforward!

    Features : Work in progress

    • Chat()
      • Get response works fine.
      • TokenUsage & estimation
      • GetOfflineResponse()
      • Custom resume actions based on [FinishReason]
    • Public functions
      • Get-GeminiModels
      • Get-GeminiTokenUsage
    • Private functions
      • Invoke-GeminiRequest

    License

    This project is licensed under the WTFPL License.