Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark committed Apr 5, 2024
2 parents 3e41ced + a223e3f commit 1b3d1b4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,23 @@ pip install -q -U python-gemini-api

## Quick Start

*Simple usage*
*Setting language and Gemini version using environment variables:*

Setting Gemini response language (Optional): Check supported languages [here](https://developers.google.com/hotels/hotel-prices/dev-guide/country-codes). Default is English.

```python
import os
os.environ["GEMINI_LANGUAGE"] = "KR"
os.environ["GEMINI_LANGUAGE"] = "KR" # Setting Gemini response language (Optional)
os.environ["GEMINI_ULTRA"] = "1" # Switch to Gemini-advanced response (Experimental, Optional)
# In some accounts, access to Gemini Ultra may not be available. If that's the case, please revert it back to "0".
```



<br>

*Simple usage*

Generate content: returns parsed response.
```python
from gemini import Gemini
Expand Down Expand Up @@ -490,7 +496,8 @@ In Gemini, generate_content returns the first response. This may vary depending
```python
from gemini import GeminiModelOutput
GeminiModelOutput.chosen = 1 # default is 0
response1 = GeminiClient.generate_content("Give me some information about the USA.")
response_choice_1 = GeminiClient.generate_content("Give me some information about the USA.")
# If not all Gemini returns are necessarily plural, revert back to 0 in case of errors.
```

<br>
Expand Down

0 comments on commit 1b3d1b4

Please sign in to comment.