π OpenHands: AI-Driven Development
Fix issue #6048: Update documentation of recommended models and add deepseek (#6050)
Graham Neubig5458ebbd7d1b
diff --git a/docs/modules/usage/llms/llms.md b/docs/modules/usage/llms/llms.mdindex 709e86c3cf..5e6a472d0c 100644--- a/docs/modules/usage/llms/llms.md+++ b/docs/modules/usage/llms/llms.md@@ -5,23 +5,14 @@ OpenHands can connect to any LLM supported by LiteLLM. However, it requires a po## Model RecommendationsBased on our evaluations of language models for coding tasks (using the SWE-bench dataset), we can provide some-recommendations for model selection. Some analyses can be found in [this blog article comparing LLMs](https://www.all-hands.dev/blog/evaluation-of-llms-as-coding-agents-on-swe-bench-at-30x-speed) and-[this blog article with some more recent results](https://www.all-hands.dev/blog/openhands-codeact-21-an-open-state-of-the-art-software-development-agent).--When choosing a model, consider both the quality of outputs and the associated costs. Here's a summary of the findings:--- Claude 3.5 Sonnet is the best by a fair amount, achieving a 53% resolve rate on SWE-Bench Verified with the default agent in OpenHands.-- GPT-4o lags behind, and o1-mini actually performed somewhat worse than GPT-4o. We went in and analyzed the results a little, and briefly it seemed like o1 was sometimes "overthinking" things, performing extra environment configuration tasks when it could just go ahead and finish the task.-- Finally, the strongest open models were Llama 3.1 405 B and deepseek-v2.5, and they performed reasonably, even besting some of the closed models.--Please refer to the [full article](https://www.all-hands.dev/blog/evaluation-of-llms-as-coding-agents-on-swe-bench-at-30x-speed) for more details.+recommendations for model selection. Our latest benchmarking results can be found in [this spreadsheet](https://docs.google.com/spreadsheets/d/1wOUdFCMyY6Nt0AIqF705KN4JKOWgeI4wUGUP60krXXs/edit?gid=0).Based on these findings and community feedback, the following models have been verified to work reasonably well with OpenHands:-- claude-3-5-sonnet (recommended)-- gpt-4 / gpt-4o-- llama-3.1-405b-- deepseek-v2.5+- anthropic/claude-3-5-sonnet-20241022 (recommended)+- anthropic/claude-3-5-haiku-20241022+- deepseek/deepseek-chat+- gpt-4o:::warningOpenHands will issue many prompts to the LLM you configure. Most of these LLMs cost money, so be sure to set spendingdiff --git a/frontend/src/utils/verified-models.ts b/frontend/src/utils/verified-models.tsindex 885bd7ac7e..da77b25e1c 100644--- a/frontend/src/utils/verified-models.ts+++ b/frontend/src/utils/verified-models.ts@@ -1,6 +1,10 @@// Here are the list of verified models and providers that we know work well with OpenHands.-export const VERIFIED_PROVIDERS = ["openai", "azure", "anthropic"];-export const VERIFIED_MODELS = ["gpt-4o", "claude-3-5-sonnet-20241022"];+export const VERIFIED_PROVIDERS = ["openai", "azure", "anthropic", "deepseek"];+export const VERIFIED_MODELS = [+ "gpt-4o",+ "claude-3-5-sonnet-20241022",+ "deepseek-chat",+];// LiteLLM does not return OpenAI models with the provider, so we list them here to set them ourselves for consistency// (e.g., they return `gpt-4o` instead of `openai/gpt-4o`)@@ -21,6 +25,7 @@ export const VERIFIED_ANTHROPIC_MODELS = ["claude-2.1","claude-3-5-sonnet-20240620","claude-3-5-sonnet-20241022",+ "claude-3-5-haiku-20241022","claude-3-haiku-20240307","claude-3-opus-20240229","claude-3-sonnet-20240229",