fix(llm): support Volcengine Coding model aliases (#411)

* fix(llm): support Volcengine Coding model aliases

* refactor(llm): add Volcengine Coding provider

* style: format Volcengine Coding test
This commit is contained in:
Ziheng Zhang
2026-08-07 14:30:23 +08:00
committed by GitHub
parent 3c5cc831c0
commit 33979e5371
9 changed files with 51 additions and 0 deletions
+5
View File
@@ -202,3 +202,8 @@ def test_lookup_is_case_insensitive():
# GLM-5 capitalized variant
glm = SimpleNamespace(model_name="Pro/zai-org/GLM-5", profile=None)
assert get_context_window(glm) == 203_000
def test_volcengine_glm_5_2_alias_keeps_exact_context_window():
model = SimpleNamespace(model_name="glm-5-2", profile=None)
assert get_context_window(model) == 1_000_000