@@ -37,7 +37,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
3737 global . fetch = mockFetch ;
3838 llm = new ResilientLLM ( {
3939 aiService : 'openai' ,
40- model : 'gpt-5-nano ' ,
40+ model : 'gpt-4o-mini ' ,
4141 temperature : 0.7 ,
4242 maxTokens : 2048 , //output tokens LLM is allowed to generate
4343 timeout : 30000 , //timeout for the LLM request
@@ -51,7 +51,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
5151 id : 'chatcmpl-123' ,
5252 object : 'chat.completion' ,
5353 created : 1728933352 ,
54- model : 'gpt-5-nano ' ,
54+ model : 'gpt-4o-mini ' ,
5555 choices : [ {
5656 index : 0 ,
5757 message : {
@@ -90,7 +90,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
9090 'Content-Type' : 'application/json' ,
9191 'Authorization' : 'Bearer test-openai-key'
9292 } ) ,
93- body : sinon . match ( / .* " m o d e l " : " g p t - 5 - n a n o " .* / )
93+ body : sinon . match ( / .* " m o d e l " : " g p t - 4 o - m i n i " .* / )
9494 } )
9595 ) ;
9696 sinon . assert . calledOnce ( mockFetch ) ;
@@ -243,7 +243,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
243243 id : 'chatcmpl-123' ,
244244 object : 'chat.completion' ,
245245 created : 1728933352 ,
246- model : 'gpt-5-nano ' ,
246+ model : 'gpt-4o-mini ' ,
247247 choices : [ {
248248 index : 0 ,
249249 message : {
@@ -488,7 +488,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
488488 id : 'chatcmpl-123' ,
489489 object : 'chat.completion' ,
490490 created : 1728933352 ,
491- model : 'gpt-5-nano ' ,
491+ model : 'gpt-4o-mini ' ,
492492 choices : [ {
493493 index : 0 ,
494494 message : {
@@ -631,7 +631,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
631631 id : 'chatcmpl-123' ,
632632 object : 'chat.completion' ,
633633 created : 1728933352 ,
634- model : 'gpt-5-nano ' ,
634+ model : 'gpt-4o-mini ' ,
635635 choices : [ {
636636 index : 0 ,
637637 message : {
@@ -666,7 +666,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
666666 it ( 'should surface oversized token request errors before making network call' , async ( ) => {
667667 const oversizedTokenLLM = new ResilientLLM ( {
668668 aiService : 'openai' ,
669- model : 'gpt-5-nano ' ,
669+ model : 'gpt-4o-mini ' ,
670670 maxInputTokens : 50000 ,
671671 rateLimitConfig : { requestsPerMinute : 60 , llmTokensPerMinute : 1000 }
672672 } ) ;
@@ -715,7 +715,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
715715 id : 'chatcmpl-123' ,
716716 object : 'chat.completion' ,
717717 created : 1728933352 ,
718- model : 'gpt-5-nano ' ,
718+ model : 'gpt-4o-mini ' ,
719719 choices : [ {
720720 message : { role : 'assistant' , content : '{"answer": "42"}' } ,
721721 finish_reason : 'stop'
@@ -913,7 +913,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
913913 id : 'chatcmpl-123' ,
914914 object : 'chat.completion' ,
915915 created : 1728933352 ,
916- model : 'gpt-5-nano ' ,
916+ model : 'gpt-4o-mini ' ,
917917 choices : [ {
918918 index : 0 ,
919919 message : {
@@ -1058,7 +1058,7 @@ describe('ResilientLLM Chat Function E2E Tests with mocked fetch', () => {
10581058 id : 'chatcmpl-123' ,
10591059 object : 'chat.completion' ,
10601060 created : 1728933352 ,
1061- model : 'gpt-5-nano ' ,
1061+ model : 'gpt-4o-mini ' ,
10621062 choices : [ {
10631063 index : 0 ,
10641064 message : {
0 commit comments