Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 845 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 845 Bytes

This is not an officially supported Google product

This requires code generation from : dart run build_runner build

Steps to generate the SDK:

  1. Ensure you're on dart version ^3.2.3
  2. Run cd gem-community-edition
  3. Run dart pub get
  4. Run dart run build_runner build

To run the code sample:

  1. Generate the SDK as shown above
  2. Insert a valid Gemini API key into example/API_KEY
  3. Run dart run example/gemini_community_edition_example.dart

To run the image analyzer sampple:

  1. Generate the SDK as shown above
  2. Insert a valid Gemini API key into example/API_KEY
  3. Run dart run example/analyze_image.dart "What is in this picture?" example/xmas_tree.jpeg "Is it real?" "Is it good?"

You can post multiple string prompts and files to the invocation and it will just pass them to Gemini, and print the results.