Fix issue #10729: Add x-ai/grok-code-fast-1 to MODELS_WITHOUT_STOP_WORDS (#10867)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
mamoodi 2025-09-07 23:30:45 -04:00 committed by GitHub
parent 989a4e662b
commit d5d5e265f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,7 @@ SUPPORTS_STOP_WORDS_FALSE_PATTERNS: list[str] = [
'o1*',
# grok-4 specific model name (basename)
'grok-4-0709',
'grok-code-fast-1',
# DeepSeek R1 family
'deepseek-r1-0528*',
]

View File

@ -286,6 +286,8 @@ def test_prompt_cache_haiku_variants():
def test_stop_words_grok_provider_prefixed():
assert get_features('xai/grok-4-0709').supports_stop_words is False
assert get_features('grok-4-0709').supports_stop_words is False
assert get_features('xai/grok-code-fast-1').supports_stop_words is False
assert get_features('grok-code-fast-1').supports_stop_words is False
@pytest.mark.parametrize(
@ -294,6 +296,7 @@ def test_stop_words_grok_provider_prefixed():
'o1-mini',
'o1-2024-12-17',
'xai/grok-4-0709',
'xai/grok-code-fast-1',
'deepseek/DeepSeek-R1-0528:671b-Q4_K_XL',
'DeepSeek-R1-0528',
],