-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #4912: [Bug]: BedrockException: "The number of toolResult b…
…locks at messages.2.content exceeds the number of toolUse blocks of previous turn.". (#4937) Co-authored-by: Xingyao Wang <[email protected]> Co-authored-by: Graham Neubig <[email protected]> Co-authored-by: mamoodi <[email protected]>
- Loading branch information
1 parent
59f7093
commit 207df9d
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# LiteLLM Proxy | ||
|
||
OpenHands supports using the [LiteLLM proxy](https://docs.litellm.ai/docs/proxy/quick_start) to access various LLM providers. | ||
|
||
## Configuration | ||
|
||
To use LiteLLM proxy with OpenHands, you need to: | ||
|
||
1. Set up a LiteLLM proxy server (see [LiteLLM documentation](https://docs.litellm.ai/docs/proxy/quick_start)) | ||
2. When running OpenHands, you'll need to set the following in the OpenHands UI through the Settings: | ||
* Enable `Advanced Options` | ||
* `Custom Model` to the prefix `litellm_proxy/` + the model you will be using (e.g. `litellm_proxy/anthropic.claude-3-5-sonnet-20241022-v2:0`) | ||
* `Base URL` to your LiteLLM proxy URL (e.g. `https://your-litellm-proxy.com`) | ||
* `API Key` to your LiteLLM proxy API key | ||
|
||
## Supported Models | ||
|
||
The supported models depend on your LiteLLM proxy configuration. OpenHands supports any model that your LiteLLM proxy is configured to handle. | ||
|
||
Refer to your LiteLLM proxy configuration for the list of available models and their names. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters