@@ -388,15 +388,14 @@ function keyNotFound(testCase)
388
388
function validConstructorInput = iGetValidConstructorInput()
389
389
% while it is valid to provide the key via an environment variable,
390
390
% this test set does not use that, for easier setup
391
- validFunction = openAIFunction(" funName" );
392
391
validConstructorInput = struct( ...
393
392
" JustKey" , struct( ...
394
393
" Input" ,{{" APIKey" ," this-is-not-a-real-key" }}, ...
395
394
" ExpectedWarning" , ' ' , ...
396
395
" VerifyProperties" , struct( ...
397
396
" Temperature" , {1 }, ...
398
397
" TopP" , {1 }, ...
399
- " StopSequences" , {{} }, ...
398
+ " StopSequences" , {string([]) }, ...
400
399
" PresencePenalty" , {0 }, ...
401
400
" FrequencyPenalty" , {0 }, ...
402
401
" TimeOut" , {10 }, ...
@@ -412,7 +411,7 @@ function keyNotFound(testCase)
412
411
" VerifyProperties" , struct( ...
413
412
" Temperature" , {1 }, ...
414
413
" TopP" , {1 }, ...
415
- " StopSequences" , {{} }, ...
414
+ " StopSequences" , {string([]) }, ...
416
415
" PresencePenalty" , {0 }, ...
417
416
" FrequencyPenalty" , {0 }, ...
418
417
" TimeOut" , {10 }, ...
@@ -428,7 +427,7 @@ function keyNotFound(testCase)
428
427
" VerifyProperties" , struct( ...
429
428
" Temperature" , {2 }, ...
430
429
" TopP" , {1 }, ...
431
- " StopSequences" , {{} }, ...
430
+ " StopSequences" , {string([]) }, ...
432
431
" PresencePenalty" , {0 }, ...
433
432
" FrequencyPenalty" , {0 }, ...
434
433
" TimeOut" , {10 }, ...
@@ -444,7 +443,7 @@ function keyNotFound(testCase)
444
443
" VerifyProperties" , struct( ...
445
444
" Temperature" , {1 }, ...
446
445
" TopP" , {0.2 }, ...
447
- " StopSequences" , {{} }, ...
446
+ " StopSequences" , {string([]) }, ...
448
447
" PresencePenalty" , {0 }, ...
449
448
" FrequencyPenalty" , {0 }, ...
450
449
" TimeOut" , {10 }, ...
@@ -470,13 +469,29 @@ function keyNotFound(testCase)
470
469
" ResponseFormat" , {" text" } ...
471
470
) ...
472
471
), ...
472
+ " StopSequencesCharVector" , struct( ...
473
+ " Input" ,{{" APIKey" ," this-is-not-a-real-key" ," StopSequences" ,' supercalifragilistic' }}, ...
474
+ " ExpectedWarning" , ' ' , ...
475
+ " VerifyProperties" , struct( ...
476
+ " Temperature" , {1 }, ...
477
+ " TopP" , {1 }, ...
478
+ " StopSequences" , {" supercalifragilistic" }, ...
479
+ " PresencePenalty" , {0 }, ...
480
+ " FrequencyPenalty" , {0 }, ...
481
+ " TimeOut" , {10 }, ...
482
+ " FunctionNames" , {[]}, ...
483
+ " ModelName" , {" gpt-4o-mini" }, ...
484
+ " SystemPrompt" , {[]}, ...
485
+ " ResponseFormat" , {" text" } ...
486
+ ) ...
487
+ ), ...
473
488
" PresencePenalty" , struct( ...
474
489
" Input" ,{{" APIKey" ," this-is-not-a-real-key" ," PresencePenalty" ,0.1 }}, ...
475
490
" ExpectedWarning" , ' ' , ...
476
491
" VerifyProperties" , struct( ...
477
492
" Temperature" , {1 }, ...
478
493
" TopP" , {1 }, ...
479
- " StopSequences" , {{} }, ...
494
+ " StopSequences" , {string([]) }, ...
480
495
" PresencePenalty" , {0.1 }, ...
481
496
" FrequencyPenalty" , {0 }, ...
482
497
" TimeOut" , {10 }, ...
@@ -492,7 +507,7 @@ function keyNotFound(testCase)
492
507
" VerifyProperties" , struct( ...
493
508
" Temperature" , {1 }, ...
494
509
" TopP" , {1 }, ...
495
- " StopSequences" , {{} }, ...
510
+ " StopSequences" , {string([]) }, ...
496
511
" PresencePenalty" , {0 }, ...
497
512
" FrequencyPenalty" , {0.1 }, ...
498
513
" TimeOut" , {10 }, ...
@@ -508,7 +523,7 @@ function keyNotFound(testCase)
508
523
" VerifyProperties" , struct( ...
509
524
" Temperature" , {1 }, ...
510
525
" TopP" , {1 }, ...
511
- " StopSequences" , {{} }, ...
526
+ " StopSequences" , {string([]) }, ...
512
527
" PresencePenalty" , {0 }, ...
513
528
" FrequencyPenalty" , {0 }, ...
514
529
" TimeOut" , {0.1 }, ...
@@ -524,7 +539,7 @@ function keyNotFound(testCase)
524
539
" VerifyProperties" , struct( ...
525
540
" Temperature" , {1 }, ...
526
541
" TopP" , {1 }, ...
527
- " StopSequences" , {{} }, ...
542
+ " StopSequences" , {string([]) }, ...
528
543
" PresencePenalty" , {0 }, ...
529
544
" FrequencyPenalty" , {0 }, ...
530
545
" TimeOut" , {10 }, ...
0 commit comments