Add GLM-4.7 model support to frontend (#13202)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Juan Michelini
2026-03-04 12:40:15 -03:00
committed by GitHub
parent f01c8dd955
commit a11435b061
3 changed files with 9 additions and 0 deletions

View File

@@ -97,6 +97,8 @@ FUNCTION_CALLING_PATTERNS: list[str] = [
'qwen3-coder-480b-a35b-instruct',
'deepseek-chat',
'grok-code-fast-1',
# GLM series - verified via official docs and litellm config
'glm-4*',
]
REASONING_EFFORT_PATTERNS: list[str] = [
@@ -116,6 +118,8 @@ REASONING_EFFORT_PATTERNS: list[str] = [
'deepseek-r1-0528*',
'claude-sonnet-4-5*',
'claude-haiku-4-5*',
# GLM series - verified via litellm config
'glm-4*',
]
PROMPT_CACHE_PATTERNS: list[str] = [
@@ -129,6 +133,8 @@ PROMPT_CACHE_PATTERNS: list[str] = [
'claude-3-opus-20240229',
'claude-sonnet-4*',
'claude-opus-4*',
# GLM series - verified via litellm config
'glm-4*',
]
SUPPORTS_STOP_WORDS_FALSE_PATTERNS: list[str] = [

View File

@@ -26,6 +26,7 @@ OPENHANDS_MODELS = [
'openhands/devstral-medium-2512',
'openhands/kimi-k2-0711-preview',
'openhands/qwen3-coder-480b',
'openhands/glm-4.7',
]
CLARIFAI_MODELS = [