Add qwen-3-coder-480b to OpenHands provider (#9985)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Xingyao Wang 2025-07-30 11:12:31 -04:00 committed by GitHub
parent fdf9a49e28
commit 6cea73b6da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 26 additions and 19 deletions

View File

@ -30,5 +30,6 @@ When running OpenHands, you'll need to set the following in the OpenHands UI thr
## Pricing
Pricing follows official API provider rates.
[You can view model prices here.](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)
Pricing follows official API provider rates. [You can view model prices here.](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)
For `qwen3-coder-480b`, we charge the cheapest FP8 rate available on openrouter: $0.4 per million input tokens and $1.6 per million output tokens.

View File

@ -6192,20 +6192,20 @@
"uk": "Ви можете знайти свій ключ API OpenHands у"
},
"SETTINGS$OPENHANDS_API_KEY_HELP_SUFFIX": {
"en": "tab of OpenHands Cloud.",
"ja": "タブで確認できます。",
"zh-CN": "标签页中找到您的OpenHands API密钥。",
"zh-TW": "標籤頁中找到您的OpenHands API密鑰。",
"ko-KR": "탭에서 찾을 수 있습니다.",
"no": "-fanen i OpenHands Cloud.",
"it": "scheda di OpenHands Cloud.",
"pt": "guia do OpenHands Cloud.",
"es": "pestaña de OpenHands Cloud.",
"ar": "علامة التبويب في OpenHands Cloud.",
"fr": "l'onglet d'OpenHands Cloud.",
"tr": "OpenHands Cloud'un sekmesinde bulabilirsiniz.",
"de": "Tab von OpenHands Cloud.",
"uk": "вкладці OpenHands Cloud."
"en": "tab of OpenHands Cloud. LLM usage is billed at the providers' rates with no markup. Details: https://docs.all-hands.dev/usage/llms/openhands-llms",
"ja": "タブで確認できます。LLMの使用料金は、プロバイダーの料金でマークアップなしで請求されます。詳細: https://docs.all-hands.dev/usage/llms/openhands-llms",
"zh-CN": "标签页中找到您的OpenHands API密钥。LLM使用费用按提供商费率计费无加价。详情: https://docs.all-hands.dev/usage/llms/openhands-llms",
"zh-TW": "標籤頁中找到您的OpenHands API密鑰。LLM使用費用按提供商費率計費無加價。詳情: https://docs.all-hands.dev/usage/llms/openhands-llms",
"ko-KR": "탭에서 찾을 수 있습니다. LLM 사용료는 제공업체 요금으로 마크업 없이 청구됩니다. 자세한 내용: https://docs.all-hands.dev/usage/llms/openhands-llms",
"no": "-fanen i OpenHands Cloud. LLM-bruk faktureres til leverandørenes priser uten påslag. Detaljer: https://docs.all-hands.dev/usage/llms/openhands-llms",
"it": "scheda di OpenHands Cloud. L'utilizzo di LLM viene fatturato alle tariffe dei fornitori senza ricarico. Dettagli: https://docs.all-hands.dev/usage/llms/openhands-llms",
"pt": "guia do OpenHands Cloud. O uso de LLM é cobrado nas tarifas dos provedores sem markup. Detalhes: https://docs.all-hands.dev/usage/llms/openhands-llms",
"es": "pestaña de OpenHands Cloud. El uso de LLM se factura a las tarifas de los proveedores sin recargo. Detalles: https://docs.all-hands.dev/usage/llms/openhands-llms",
"ar": "علامة التبويب في OpenHands Cloud. يتم فوترة استخدام LLM بأسعار المزودين بدون زيادة. التفاصيل: https://docs.all-hands.dev/usage/llms/openhands-llms",
"fr": "l'onglet d'OpenHands Cloud. L'utilisation de LLM est facturée aux tarifs des fournisseurs sans majoration. Détails : https://docs.all-hands.dev/usage/llms/openhands-llms",
"tr": "OpenHands Cloud'un sekmesinde bulabilirsiniz. LLM kullanımı, sağlayıcıların oranlarında ek ücret olmadan faturalandırılır. Ayrıntılar: https://docs.all-hands.dev/usage/llms/openhands-llms",
"de": "Tab von OpenHands Cloud. LLM-Nutzung wird zu Anbieterpreisen ohne Aufschlag abgerechnet. Details: https://docs.all-hands.dev/usage/llms/openhands-llms",
"uk": "вкладці OpenHands Cloud. Використання LLM оплачується за тарифами провайдерів без надбавки. Деталі: https://docs.all-hands.dev/usage/llms/openhands-llms"
},
"SETTINGS$CREATE_API_KEY": {
"en": "Create API Key",

View File

@ -21,6 +21,7 @@ export const VERIFIED_MODELS = [
"devstral-small-2507",
"devstral-medium-2507",
"kimi-k2-0711-preview",
"qwen3-coder-480b",
];
// LiteLLM does not return OpenAI models with the provider, so we list them here to set them ourselves for consistency
@ -68,6 +69,7 @@ export const VERIFIED_OPENHANDS_MODELS = [
"devstral-medium-2507",
"devstral-small-2505",
"kimi-k2-0711-preview",
"qwen3-coder-480b",
];
// Default model for OpenHands provider

View File

@ -268,14 +268,15 @@ async def modify_llm_settings_basic(
# For OpenHands provider, directly show all verified models without the "use default" option
if provider == 'openhands':
print_formatted_text(HTML('\n<grey>Available OpenHands models:</grey>'))
# Create a list of models for the cli_confirm function
model_choices = VERIFIED_OPENHANDS_MODELS
model_choice = cli_confirm(
config,
'(Step 2/3) Select LLM Model:',
(
'(Step 2/3) Select Available OpenHands Model:\n'
+ 'LLM usage is billed at the providers rates with no markup. Details: https://docs.all-hands.dev/usage/llms/openhands-llms'
),
model_choices,
)

View File

@ -190,6 +190,7 @@ VERIFIED_OPENHANDS_MODELS = [
'o4-mini',
'gemini-2.5-pro',
'kimi-k2-0711-preview',
'qwen3-coder-480b',
]

View File

@ -89,6 +89,7 @@ FUNCTION_CALLING_SUPPORTED_MODELS = [
'kimi-k2-0711-preview',
'kimi-k2-instruct',
'Qwen3-Coder-480B-A35B-Instruct',
'qwen3-coder', # this will match both qwen3-coder-480b (openhands provider) and qwen3-coder (for openrouter)
]
REASONING_EFFORT_SUPPORTED_MODELS = [

View File

@ -64,6 +64,7 @@ def get_supported_llm_models(config: OpenHandsConfig) -> list[str]:
'openhands/devstral-small-2507',
'openhands/devstral-medium-2507',
'openhands/kimi-k2-0711-preview',
'openhands/qwen3-coder-480b',
]
model_list = openhands_models + model_list