mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
docs
This commit is contained in:
parent
a202f5db06
commit
2294589f7f
1 changed files with 4 additions and 7 deletions
|
|
@ -2,10 +2,7 @@
|
|||
https://developers.generativeai.google/products/palm
|
||||
|
||||
## Pre-requisites
|
||||
* `pip install google-cloud-aiplatform`
|
||||
* Authentication:
|
||||
* run `gcloud auth application-default login` See [Google Cloud Docs](https://cloud.google.com/docs/authentication/external/set-up-adc)
|
||||
* Alternatively you can set `application_default_credentials.json`
|
||||
* `pip install -q google-generativeai`
|
||||
|
||||
## Sample Usage
|
||||
```python
|
||||
|
|
@ -36,6 +33,6 @@ for chunk in response:
|
|||
```
|
||||
|
||||
## Chat Models
|
||||
| Model Name | Function Call |
|
||||
|------------------|--------------------------------------|
|
||||
| chat-bison | `completion('palm/chat-bison', messages)` |
|
||||
| Model Name | Function Call | Required OS Variables |
|
||||
|------------------|--------------------------------------|-------------------------|
|
||||
| chat-bison | `completion('palm/chat-bison', messages)` | `os.environ['PALM_API_KEY']` |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue