@@ -34,7 +34,7 @@ function generateAcceptsMessagesAsInput(testCase)
34
34
35
35
function constructChatWithAllNVP(testCase )
36
36
functions = openAIFunction(" funName" );
37
- modelName = " gpt-3.5-turbo " ;
37
+ modelName = " gpt-4o-mini " ;
38
38
temperature = 0 ;
39
39
topP = 1 ;
40
40
stop = [" [END]" , " ." ];
@@ -84,7 +84,9 @@ function settingToolChoiceWithNone(testCase)
84
84
end
85
85
86
86
function fixedSeedFixesResult(testCase )
87
- chat = openAIChat ;
87
+ % Seed is "beta" in OpenAI documentation
88
+ % and not reliable in gpt-4o-mini at this time.
89
+ chat = openAIChat(ModelName = " gpt-3.5-turbo" );
88
90
89
91
result1 = generate(chat ," This is okay" , " Seed" , 2 );
90
92
result2 = generate(chat ," This is okay" , " Seed" , 2 );
@@ -227,7 +229,7 @@ function warningJSONResponseFormatGPT35(testCase)
227
229
chat = @() openAIChat(" You are a useful assistant" , ...
228
230
APIKey= " this-is-not-a-real-key" , ...
229
231
ResponseFormat= " json" , ...
230
- ModelName= " gpt-3.5-turbo " );
232
+ ModelName= " gpt-4o-mini " );
231
233
232
234
testCase .verifyWarning(@()chat(), " llms:warningJsonInstruction" );
233
235
end
@@ -378,7 +380,7 @@ function keyNotFound(testCase)
378
380
" FrequencyPenalty" , {0 }, ...
379
381
" TimeOut" , {10 }, ...
380
382
" FunctionNames" , {[]}, ...
381
- " ModelName" , {" gpt-3.5-turbo " }, ...
383
+ " ModelName" , {" gpt-4o-mini " }, ...
382
384
" SystemPrompt" , {[]}, ...
383
385
" ResponseFormat" , {" text" } ...
384
386
) ...
@@ -394,7 +396,7 @@ function keyNotFound(testCase)
394
396
" FrequencyPenalty" , {0 }, ...
395
397
" TimeOut" , {10 }, ...
396
398
" FunctionNames" , {[]}, ...
397
- " ModelName" , {" gpt-3.5-turbo " }, ...
399
+ " ModelName" , {" gpt-4o-mini " }, ...
398
400
" SystemPrompt" , {{struct(" role" ," system" ," content" ," system prompt" )}}, ...
399
401
" ResponseFormat" , {" text" } ...
400
402
) ...
@@ -410,7 +412,7 @@ function keyNotFound(testCase)
410
412
" FrequencyPenalty" , {0 }, ...
411
413
" TimeOut" , {10 }, ...
412
414
" FunctionNames" , {[]}, ...
413
- " ModelName" , {" gpt-3.5-turbo " }, ...
415
+ " ModelName" , {" gpt-4o-mini " }, ...
414
416
" SystemPrompt" , {[]}, ...
415
417
" ResponseFormat" , {" text" } ...
416
418
) ...
@@ -426,7 +428,7 @@ function keyNotFound(testCase)
426
428
" FrequencyPenalty" , {0 }, ...
427
429
" TimeOut" , {10 }, ...
428
430
" FunctionNames" , {[]}, ...
429
- " ModelName" , {" gpt-3.5-turbo " }, ...
431
+ " ModelName" , {" gpt-4o-mini " }, ...
430
432
" SystemPrompt" , {[]}, ...
431
433
" ResponseFormat" , {" text" } ...
432
434
) ...
@@ -442,7 +444,7 @@ function keyNotFound(testCase)
442
444
" FrequencyPenalty" , {0 }, ...
443
445
" TimeOut" , {10 }, ...
444
446
" FunctionNames" , {[]}, ...
445
- " ModelName" , {" gpt-3.5-turbo " }, ...
447
+ " ModelName" , {" gpt-4o-mini " }, ...
446
448
" SystemPrompt" , {[]}, ...
447
449
" ResponseFormat" , {" text" } ...
448
450
) ...
@@ -458,7 +460,7 @@ function keyNotFound(testCase)
458
460
" FrequencyPenalty" , {0 }, ...
459
461
" TimeOut" , {10 }, ...
460
462
" FunctionNames" , {[]}, ...
461
- " ModelName" , {" gpt-3.5-turbo " }, ...
463
+ " ModelName" , {" gpt-4o-mini " }, ...
462
464
" SystemPrompt" , {[]}, ...
463
465
" ResponseFormat" , {" text" } ...
464
466
) ...
@@ -474,7 +476,7 @@ function keyNotFound(testCase)
474
476
" FrequencyPenalty" , {0.1 }, ...
475
477
" TimeOut" , {10 }, ...
476
478
" FunctionNames" , {[]}, ...
477
- " ModelName" , {" gpt-3.5-turbo " }, ...
479
+ " ModelName" , {" gpt-4o-mini " }, ...
478
480
" SystemPrompt" , {[]}, ...
479
481
" ResponseFormat" , {" text" } ...
480
482
) ...
@@ -490,7 +492,7 @@ function keyNotFound(testCase)
490
492
" FrequencyPenalty" , {0 }, ...
491
493
" TimeOut" , {0.1 }, ...
492
494
" FunctionNames" , {[]}, ...
493
- " ModelName" , {" gpt-3.5-turbo " }, ...
495
+ " ModelName" , {" gpt-4o-mini " }, ...
494
496
" SystemPrompt" , {[]}, ...
495
497
" ResponseFormat" , {" text" } ...
496
498
) ...
@@ -506,7 +508,7 @@ function keyNotFound(testCase)
506
508
" FrequencyPenalty" , {0 }, ...
507
509
" TimeOut" , {10 }, ...
508
510
" FunctionNames" , {[]}, ...
509
- " ModelName" , {" gpt-3.5-turbo " }, ...
511
+ " ModelName" , {" gpt-4o-mini " }, ...
510
512
" SystemPrompt" , {[]}, ...
511
513
" ResponseFormat" , {" json" } ...
512
514
) ...
@@ -566,7 +568,7 @@ function keyNotFound(testCase)
566
568
" Error" ," MATLAB:validators:mustBeMember" ),...
567
569
...
568
570
" InvalidModelNameSize" ,struct( ...
569
- " Input" ,{{ " ModelName" , [" gpt-3.5-turbo " , " gpt-3.5-turbo " ] }},...
571
+ " Input" ,{{ " ModelName" , [" gpt-4o-mini " , " gpt-4o-mini " ] }},...
570
572
" Error" ," MATLAB:validation:IncompatibleSize" ),...
571
573
...
572
574
" InvalidModelNameOption" ,struct( ...
0 commit comments