Fix llm vendor update bug
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user