Fix llm vendor update bug

This commit is contained in:
Xin Wang
2026-02-09 00:03:11 +08:00
parent be68e335f1
commit 0fc56e2685
3 changed files with 8 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ class TestLLMModelAPI:
# Update
update_data = {
"name": "Updated LLM Model",
"vendor": "SiliconFlow",
"type": "embedding",
"temperature": 0.5,
"context_length": 8192
}
@@ -73,6 +75,8 @@ class TestLLMModelAPI:
assert response.status_code == 200
data = response.json()
assert data["name"] == "Updated LLM Model"
assert data["vendor"] == "SiliconFlow"
assert data["type"] == "embedding"
assert data["temperature"] == 0.5
assert data["context_length"] == 8192