@@ -14,19 +14,12 @@ func TestCallOptions_JSON(t *testing.T) {
1414 jsonStr string
1515 }{
1616 {
17- name : "basic_options " ,
17+ name : "basic_fields " ,
1818 jsonStr : `{
19- "max_output_tokens": 1000 ,
19+ "max_output_tokens": 1500 ,
2020 "temperature": 0.7,
21+ "stop_sequences": ["STOP", "END"],
2122 "top_p": 0.9,
22- "stop_sequences": ["STOP", "END"]
23- }` ,
24- },
25- {
26- name : "complex_options_with_response_format" ,
27- jsonStr : `{
28- "max_output_tokens": 2000,
29- "temperature": 0.5,
3023 "top_k": 40,
3124 "presence_penalty": 0.1,
3225 "frequency_penalty": 0.2,
@@ -37,8 +30,8 @@ func TestCallOptions_JSON(t *testing.T) {
3730 "description": "A structured response"
3831 },
3932 "headers": {
40- "X-Custom-Header": "custom-value",
41- "Authorization": "Bearer token"
33+ "X-Custom-Header": [ "custom-value"] ,
34+ "Authorization": [ "Bearer token"]
4235 }
4336 }` ,
4437 },
@@ -97,9 +90,9 @@ func TestCallOptions_JSON(t *testing.T) {
9790 "tool_name": "get_weather"
9891 },
9992 "headers": {
100- "X-API-Key": "test-key",
101- "User-Agent": "test-agent",
102- "Content-Type": "application/json"
93+ "X-API-Key": [ "test-key"] ,
94+ "User-Agent": [ "test-agent"] ,
95+ "Content-Type": [ "application/json"]
10396 },
10497 "provider_metadata": {
10598 "openai": {
@@ -187,9 +180,9 @@ func BenchmarkCallOptionsUnmarshal(b *testing.B) {
187180 "tool_name": "get_weather"
188181 },
189182 "headers": {
190- "X-API-Key": "test-key",
191- "User-Agent": "test-agent",
192- "Content-Type": "application/json"
183+ "X-API-Key": [ "test-key"] ,
184+ "User-Agent": [ "test-agent"] ,
185+ "Content-Type": [ "application/json"]
193186 },
194187 "provider_metadata": {
195188 "openai": {
0 commit comments