Merge pull request #1287 from trheyi/main
Refactor test cases for assistant updates to improve consistency
This commit is contained in:
commit
6f02bdea10
2 changed files with 4 additions and 5 deletions
|
|
@ -2173,7 +2173,7 @@ func TestUpdateAssistant(t *testing.T) {
|
||||||
|
|
||||||
// Try to update system fields (should be ignored)
|
// Try to update system fields (should be ignored)
|
||||||
updates := map[string]interface{}{
|
updates := map[string]interface{}{
|
||||||
"assistant_id": "new-id-123", // Should be ignored
|
"assistant_id": "new-id-123", // Should be ignored
|
||||||
"created_at": int64(123456789), // Should be ignored
|
"created_at": int64(123456789), // Should be ignored
|
||||||
"name": "Valid Update", // Should be applied
|
"name": "Valid Update", // Should be applied
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -763,9 +763,9 @@ func TestUpdateAssistant(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"options": map[string]interface{}{
|
"options": map[string]interface{}{
|
||||||
"temperature": 0.9,
|
"temperature": 0.9,
|
||||||
"max_tokens": 4000,
|
"max_tokens": 4000,
|
||||||
"top_p": 0.95,
|
"top_p": 0.95,
|
||||||
"frequency_penalty": 0.5,
|
"frequency_penalty": 0.5,
|
||||||
},
|
},
|
||||||
"workflow": map[string]interface{}{
|
"workflow": map[string]interface{}{
|
||||||
|
|
@ -1043,4 +1043,3 @@ func BenchmarkUpdateAssistant(b *testing.B) {
|
||||||
resp.Body.Close()
|
resp.Body.Close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue