mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* Replace OpenDevin with OpenHands * Update CONTRIBUTING.md * Update README.md * Update README.md * update poetry lock; move opendevin folder to openhands * fix env var * revert image references in docs * revert permissions * revert permissions --------- Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
29 lines
1003 B
Markdown
29 lines
1003 B
Markdown
# Google Gemini/Vertex LLM
|
|
|
|
## Completion
|
|
|
|
OpenHands uses LiteLLM for completion calls. The following resources are relevant for using OpenHands with Google's LLMs
|
|
|
|
- [Gemini - Google AI Studio](https://docs.litellm.ai/docs/providers/gemini)
|
|
- [VertexAI - Google Cloud Platform](https://docs.litellm.ai/docs/providers/vertex)
|
|
|
|
### Gemini - Google AI Studio Configs
|
|
|
|
To use Gemini through Google AI Studio when running the OpenHands Docker image, you'll need to set the following environment variables using `-e`:
|
|
|
|
```
|
|
GEMINI_API_KEY="<your-google-api-key>"
|
|
LLM_MODEL="gemini/gemini-1.5-pro"
|
|
```
|
|
|
|
### Vertex AI - Google Cloud Platform Configs
|
|
|
|
To use Vertex AI through Google Cloud Platform when running the OpenHands Docker image, you'll need to set the following environment variables using `-e`:
|
|
|
|
```
|
|
GOOGLE_APPLICATION_CREDENTIALS="<json-dump-of-gcp-service-account-json>"
|
|
VERTEXAI_PROJECT="<your-gcp-project-id>"
|
|
VERTEXAI_LOCATION="<your-gcp-location>"
|
|
LLM_MODEL="vertex_ai/<desired-llm-model>"
|
|
```
|