Skip to content

Commit 9ac99bd

Browse files
update patterns in FORCE_STRING_SERIALIZER_PATTERNS (#995)
1 parent 4cb94b3 commit 9ac99bd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

openhands-sdk/openhands/sdk/llm/utils/model_features.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,9 @@ class ModelFeatures:
9090
# These models don't support structured content format [{"type":"text","text":"..."}]
9191
# and need plain strings instead
9292
FORCE_STRING_SERIALIZER_PATTERNS: list[str] = [
93-
"*deepseek*",
94-
"glm*",
95-
# kimi-k2-instruct on groq provider requires string serialization
96-
# Pattern contains '/' so it matches against full model string
97-
# (e.g., "groq/kimi-k2-instruct")
98-
"*groq*/kimi-k2-instruct*",
93+
"deepseek",
94+
"glm",
95+
"groq/kimi-k2-instruct",
9996
]
10097

10198

0 commit comments

Comments
 (0)