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

Commit

Permalink
doc: add note of choice id and ultra env var
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark committed Apr 4, 2024
1 parent 111350a commit a223e3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Setting Gemini response language (Optional): Check supported languages [here](ht
import os
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".
```


Expand Down Expand Up @@ -495,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 a223e3f

Please sign in to comment.