Add security config to ExtraBody round-trip test
This commit is contained in:
parent
7767feb724
commit
b24c577e38
1 changed files with 3 additions and 0 deletions
|
|
@ -1207,6 +1207,9 @@ func TestModelConfig_ExtraBodyRoundTrip(t *testing.T) {
|
||||||
ExtraBody: map[string]any{"custom_field": "value", "num_field": 42},
|
ExtraBody: map[string]any{"custom_field": "value", "num_field": 42},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
security: &SecurityConfig{
|
||||||
|
ModelList: map[string]ModelSecurityEntry{"test-model:0": {APIKeys: []string{"sk-test"}}},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := SaveConfig(cfgPath, cfg); err != nil {
|
if err := SaveConfig(cfgPath, cfg); err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue