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

Point gemini-1.5-flash-latest as default model for all quickstart notebooks #180

Merged
merged 4 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Addressing review feedbacks for quickstart notebooks
  • Loading branch information
lucianommartins committed May 31, 2024
commit 363c50321284e77e8305ad82ea35daf2dd154d33
478 changes: 258 additions & 220 deletions quickstarts/Audio.ipynb

Large diffs are not rendered by default.

570 changes: 328 additions & 242 deletions quickstarts/Authentication.ipynb

Large diffs are not rendered by default.

947 changes: 483 additions & 464 deletions quickstarts/Authentication_with_OAuth.ipynb

Large diffs are not rendered by default.

1,273 changes: 753 additions & 520 deletions quickstarts/Counting_Tokens.ipynb

Large diffs are not rendered by default.

725 changes: 367 additions & 358 deletions quickstarts/Embeddings.ipynb

Large diffs are not rendered by default.

873 changes: 527 additions & 346 deletions quickstarts/File_API.ipynb

Large diffs are not rendered by default.

1,455 changes: 796 additions & 659 deletions quickstarts/Function_calling.ipynb

Large diffs are not rendered by default.

700 changes: 411 additions & 289 deletions quickstarts/Function_calling_config.ipynb

Large diffs are not rendered by default.

1,186 changes: 697 additions & 489 deletions quickstarts/Gemini_Flash_Introduction.ipynb

Large diffs are not rendered by default.

534 changes: 309 additions & 225 deletions quickstarts/Models.ipynb

Large diffs are not rendered by default.

1,016 changes: 612 additions & 404 deletions quickstarts/PDF_Files.ipynb

Large diffs are not rendered by default.

900 changes: 514 additions & 386 deletions quickstarts/Prompting.ipynb

Large diffs are not rendered by default.

826 changes: 455 additions & 371 deletions quickstarts/Safety.ipynb

Large diffs are not rendered by default.

617 changes: 391 additions & 226 deletions quickstarts/Streaming.ipynb

Large diffs are not rendered by default.

696 changes: 397 additions & 299 deletions quickstarts/System_instructions.ipynb

Large diffs are not rendered by default.

635 changes: 363 additions & 272 deletions quickstarts/Video.ipynb

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions quickstarts/contrib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Contributing to the Gemini API Cookbook

We would love to accept your patches and contributions to the Gemini API Cookbook. We are excited that you are considering donating some of your time, and this guide will help us be respectful of that time.

# Before you send anything

## Sign our contributor agreement

All contributions to this project must be accompanied by a [Contributor License Agreement](https://cla.developers.google.com/about) (CLA). You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project.

If you or your current employer have already signed the Google CLA (even if it was for a different project), you probably don't need to do it again.

Visit [https://cla.developers.google.com/](https://cla.developers.google.com/) to see your current agreements or to sign a new one.

## Style guides

Before you start writing, take a look at the [technical writing style guide](https://developers.google.com/style). You don’t need to fully digest the whole document, but do read the [highlights](https://developers.google.com/style/highlights) so you can anticipate the most common feedback.

Also check out the relevant [style guide](https://google.github.io/styleguide/) for the language you will be using. These apply strictly to raw code files (e.g. *.py, *.js), though code fragments in documentation (such as markdown files or notebooks) tend to favor readability over strict adherence.

For Python notebooks (*.ipynb files), consider running `pyink` over your notebook. It is not required, but it will avoid style-related nits.

# Making changes

## Small fixes

Small fixes, such as typos or bug fixes, can be submitted directly via a pull request.

## Content submission

Before you send a PR, or even write a single line, please file an [issue](https://github.com/google-gemini/cookbook/issues). There we can discuss the request and provide guidance about how to structure any content you write.

Adding a new guide often involves lots of detailed reviews and we want to make sure that your idea is fully formed and has full support before you start writing anything. If you want to port an existing guide across (e.g. if you have a guide for Gemini on your own GitHub), feel free to link to it in the issue.

## Things we consider

When accepting a new guide, we want to balance a few aspects.
* Originality - e.g. Is there another guide that does the same thing?
* Pedagogy - e.g. Does this guide teach something useful? Specifically for a Gemini API feature?
* Quality - e.g. Does this guide contain clear, descriptive prose? Is the code easy to understand?

It is not crucial for a submission to be strong along all of these dimensions, but the stronger the better. Old submissions may be replaced in favor of newer submissions that exceed these properties.

## Attribution
If you have authored a new guide from scratch, you are welcome to include a byline at the top of the document with your name and GitHub username.