Skip to content

pretamane/rocket

Repository files navigation

Google AI CLI Application

A simple command-line interface for interacting with Google's AI models.

Prerequisites

  • Java 11 or higher
  • Maven 3.6 or higher
  • Google Cloud account with AI Platform API enabled
  • Google Cloud API key with appropriate permissions

Building the Application

  1. Clone this repository
  2. Build the application using Maven:
    mvn clean package

Usage

java -jar target/google-ai-app-1.0-SNAPSHOT-jar-with-dependencies.jar \
  --api-key YOUR_API_KEY \
  --project YOUR_PROJECT_ID \
  --model text-bison@001 \
  --location us-central1 \
  "Your prompt here"

Example

java -jar target/google-ai-app-1.0-SNAPSHOT-jar-with-dependencies.jar \
  --api-key YOUR_API_KEY \
  --project your-project-123 \
  "Write a short poem about artificial intelligence"

Security Note

Never commit your API key to version control. Consider using environment variables or a secure configuration file in production.

License

This project is licensed under the MIT License.

About

Transactions Tracking & Sharing, App & Dashboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors