@@ -34,7 +34,7 @@ function generateAcceptsMessagesAsInput(testCase)
3434
3535 function constructChatWithAllNVP(testCase )
3636 functions = openAIFunction(" funName" );
37- modelName = " gpt-3.5-turbo " ;
37+ modelName = " gpt-4o-mini " ;
3838 temperature = 0 ;
3939 topP = 1 ;
4040 stop = [" [END]" , " ." ];
@@ -84,7 +84,9 @@ function settingToolChoiceWithNone(testCase)
8484 end
8585
8686 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" );
8890
8991 result1 = generate(chat ," This is okay" , " Seed" , 2 );
9092 result2 = generate(chat ," This is okay" , " Seed" , 2 );
@@ -227,7 +229,7 @@ function warningJSONResponseFormatGPT35(testCase)
227229 chat = @() openAIChat(" You are a useful assistant" , ...
228230 APIKey= " this-is-not-a-real-key" , ...
229231 ResponseFormat= " json" , ...
230- ModelName= " gpt-3.5-turbo " );
232+ ModelName= " gpt-4o-mini " );
231233
232234 testCase .verifyWarning(@()chat(), " llms:warningJsonInstruction" );
233235 end
@@ -378,7 +380,7 @@ function keyNotFound(testCase)
378380 " FrequencyPenalty" , {0 }, ...
379381 " TimeOut" , {10 }, ...
380382 " FunctionNames" , {[]}, ...
381- " ModelName" , {" gpt-3.5-turbo " }, ...
383+ " ModelName" , {" gpt-4o-mini " }, ...
382384 " SystemPrompt" , {[]}, ...
383385 " ResponseFormat" , {" text" } ...
384386 ) ...
@@ -394,7 +396,7 @@ function keyNotFound(testCase)
394396 " FrequencyPenalty" , {0 }, ...
395397 " TimeOut" , {10 }, ...
396398 " FunctionNames" , {[]}, ...
397- " ModelName" , {" gpt-3.5-turbo " }, ...
399+ " ModelName" , {" gpt-4o-mini " }, ...
398400 " SystemPrompt" , {{struct(" role" ," system" ," content" ," system prompt" )}}, ...
399401 " ResponseFormat" , {" text" } ...
400402 ) ...
@@ -410,7 +412,7 @@ function keyNotFound(testCase)
410412 " FrequencyPenalty" , {0 }, ...
411413 " TimeOut" , {10 }, ...
412414 " FunctionNames" , {[]}, ...
413- " ModelName" , {" gpt-3.5-turbo " }, ...
415+ " ModelName" , {" gpt-4o-mini " }, ...
414416 " SystemPrompt" , {[]}, ...
415417 " ResponseFormat" , {" text" } ...
416418 ) ...
@@ -426,7 +428,7 @@ function keyNotFound(testCase)
426428 " FrequencyPenalty" , {0 }, ...
427429 " TimeOut" , {10 }, ...
428430 " FunctionNames" , {[]}, ...
429- " ModelName" , {" gpt-3.5-turbo " }, ...
431+ " ModelName" , {" gpt-4o-mini " }, ...
430432 " SystemPrompt" , {[]}, ...
431433 " ResponseFormat" , {" text" } ...
432434 ) ...
@@ -442,7 +444,7 @@ function keyNotFound(testCase)
442444 " FrequencyPenalty" , {0 }, ...
443445 " TimeOut" , {10 }, ...
444446 " FunctionNames" , {[]}, ...
445- " ModelName" , {" gpt-3.5-turbo " }, ...
447+ " ModelName" , {" gpt-4o-mini " }, ...
446448 " SystemPrompt" , {[]}, ...
447449 " ResponseFormat" , {" text" } ...
448450 ) ...
@@ -458,7 +460,7 @@ function keyNotFound(testCase)
458460 " FrequencyPenalty" , {0 }, ...
459461 " TimeOut" , {10 }, ...
460462 " FunctionNames" , {[]}, ...
461- " ModelName" , {" gpt-3.5-turbo " }, ...
463+ " ModelName" , {" gpt-4o-mini " }, ...
462464 " SystemPrompt" , {[]}, ...
463465 " ResponseFormat" , {" text" } ...
464466 ) ...
@@ -474,7 +476,7 @@ function keyNotFound(testCase)
474476 " FrequencyPenalty" , {0.1 }, ...
475477 " TimeOut" , {10 }, ...
476478 " FunctionNames" , {[]}, ...
477- " ModelName" , {" gpt-3.5-turbo " }, ...
479+ " ModelName" , {" gpt-4o-mini " }, ...
478480 " SystemPrompt" , {[]}, ...
479481 " ResponseFormat" , {" text" } ...
480482 ) ...
@@ -490,7 +492,7 @@ function keyNotFound(testCase)
490492 " FrequencyPenalty" , {0 }, ...
491493 " TimeOut" , {0.1 }, ...
492494 " FunctionNames" , {[]}, ...
493- " ModelName" , {" gpt-3.5-turbo " }, ...
495+ " ModelName" , {" gpt-4o-mini " }, ...
494496 " SystemPrompt" , {[]}, ...
495497 " ResponseFormat" , {" text" } ...
496498 ) ...
@@ -506,7 +508,7 @@ function keyNotFound(testCase)
506508 " FrequencyPenalty" , {0 }, ...
507509 " TimeOut" , {10 }, ...
508510 " FunctionNames" , {[]}, ...
509- " ModelName" , {" gpt-3.5-turbo " }, ...
511+ " ModelName" , {" gpt-4o-mini " }, ...
510512 " SystemPrompt" , {[]}, ...
511513 " ResponseFormat" , {" json" } ...
512514 ) ...
@@ -566,7 +568,7 @@ function keyNotFound(testCase)
566568 " Error" ," MATLAB:validators:mustBeMember" ),...
567569 ...
568570 " InvalidModelNameSize" ,struct( ...
569- " Input" ,{{ " ModelName" , [" gpt-3.5-turbo " , " gpt-3.5-turbo " ] }},...
571+ " Input" ,{{ " ModelName" , [" gpt-4o-mini " , " gpt-4o-mini " ] }},...
570572 " Error" ," MATLAB:validation:IncompatibleSize" ),...
571573 ...
572574 " InvalidModelNameOption" ,struct( ...
0 commit comments