@@ -227,9 +227,8 @@ func TestSubChat(t *testing.T) {
227227 "state": {
228228 "input": "Hello",
229229 "completion": {
230- "Model": "gpt-4o",
231- "InternalSystemPrompt": null,
232- "Tools": [
230+ "model": "gpt-4o",
231+ "tools": [
233232 {
234233 "function": {
235234 "toolID": "testdata/TestSubChat/test.gpt:chatbot",
@@ -238,7 +237,7 @@ func TestSubChat(t *testing.T) {
238237 }
239238 }
240239 ],
241- "Messages ": [
240+ "messages ": [
242241 {
243242 "role": "system",
244243 "content": [
@@ -272,12 +271,7 @@ func TestSubChat(t *testing.T) {
272271 ],
273272 "usage": {}
274273 }
275- ],
276- "MaxTokens": 0,
277- "Temperature": null,
278- "JSONResponse": false,
279- "Grammar": "",
280- "Cache": null
274+ ]
281275 },
282276 "pending": {
283277 "call_1": {
@@ -303,10 +297,9 @@ func TestSubChat(t *testing.T) {
303297 "continuation": {
304298 "state": {
305299 "completion": {
306- "Model": "gpt-4o",
307- "InternalSystemPrompt": false,
308- "Tools": null,
309- "Messages": [
300+ "model": "gpt-4o",
301+ "internalSystemPrompt": false,
302+ "messages": [
310303 {
311304 "role": "system",
312305 "content": [
@@ -325,12 +318,7 @@ func TestSubChat(t *testing.T) {
325318 ],
326319 "usage": {}
327320 }
328- ],
329- "MaxTokens": 0,
330- "Temperature": null,
331- "JSONResponse": false,
332- "Grammar": "",
333- "Cache": null
321+ ]
334322 }
335323 },
336324 "result": "Assistant 1"
@@ -355,9 +343,8 @@ func TestSubChat(t *testing.T) {
355343 "state": {
356344 "input": "Hello",
357345 "completion": {
358- "Model": "gpt-4o",
359- "InternalSystemPrompt": null,
360- "Tools": [
346+ "model": "gpt-4o",
347+ "tools": [
361348 {
362349 "function": {
363350 "toolID": "testdata/TestSubChat/test.gpt:chatbot",
@@ -366,7 +353,7 @@ func TestSubChat(t *testing.T) {
366353 }
367354 }
368355 ],
369- "Messages ": [
356+ "messages ": [
370357 {
371358 "role": "system",
372359 "content": [
@@ -400,12 +387,7 @@ func TestSubChat(t *testing.T) {
400387 ],
401388 "usage": {}
402389 }
403- ],
404- "MaxTokens": 0,
405- "Temperature": null,
406- "JSONResponse": false,
407- "Grammar": "",
408- "Cache": null
390+ ]
409391 },
410392 "pending": {
411393 "call_1": {
@@ -431,10 +413,9 @@ func TestSubChat(t *testing.T) {
431413 "continuation": {
432414 "state": {
433415 "completion": {
434- "Model": "gpt-4o",
435- "InternalSystemPrompt": false,
436- "Tools": null,
437- "Messages": [
416+ "model": "gpt-4o",
417+ "internalSystemPrompt": false,
418+ "messages": [
438419 {
439420 "role": "system",
440421 "content": [
@@ -471,12 +452,7 @@ func TestSubChat(t *testing.T) {
471452 ],
472453 "usage": {}
473454 }
474- ],
475- "MaxTokens": 0,
476- "Temperature": null,
477- "JSONResponse": false,
478- "Grammar": "",
479- "Cache": null
455+ ]
480456 }
481457 },
482458 "result": "Assistant 2"
@@ -513,10 +489,9 @@ func TestChat(t *testing.T) {
513489 "state": {
514490 "input": "Hello",
515491 "completion": {
516- "Model": "gpt-4o",
517- "InternalSystemPrompt": false,
518- "Tools": null,
519- "Messages": [
492+ "model": "gpt-4o",
493+ "internalSystemPrompt": false,
494+ "messages": [
520495 {
521496 "role": "system",
522497 "content": [
@@ -544,12 +519,7 @@ func TestChat(t *testing.T) {
544519 ],
545520 "usage": {}
546521 }
547- ],
548- "MaxTokens": 0,
549- "Temperature": null,
550- "JSONResponse": false,
551- "Grammar": "",
552- "Cache": null
522+ ]
553523 }
554524 },
555525 "result": "Assistant 1"
@@ -570,10 +540,9 @@ func TestChat(t *testing.T) {
570540 "state": {
571541 "input": "Hello",
572542 "completion": {
573- "Model": "gpt-4o",
574- "InternalSystemPrompt": false,
575- "Tools": null,
576- "Messages": [
543+ "model": "gpt-4o",
544+ "internalSystemPrompt": false,
545+ "messages": [
577546 {
578547 "role": "system",
579548 "content": [
@@ -619,12 +588,7 @@ func TestChat(t *testing.T) {
619588 ],
620589 "usage": {}
621590 }
622- ],
623- "MaxTokens": 0,
624- "Temperature": null,
625- "JSONResponse": false,
626- "Grammar": "",
627- "Cache": null
591+ ]
628592 }
629593 },
630594 "result": "Assistant 2"
0 commit comments