@@ -87,6 +87,7 @@ class OpenAIUtils {
8787 // 1. Create a thread
8888 const thread = await retryWithBackoff (
8989 ( ) =>
90+ // eslint-disable-next-line deprecation/deprecation
9091 this . client . beta . threads . create ( {
9192 messages : [ { role : OpenAIUtils . USER , content : userMessage } ] ,
9293 } ) ,
@@ -96,6 +97,7 @@ class OpenAIUtils {
9697 // 2. Create a run on the thread
9798 let run = await retryWithBackoff (
9899 ( ) =>
100+ // eslint-disable-next-line deprecation/deprecation
99101 this . client . beta . threads . runs . create ( thread . id , {
100102 // eslint-disable-next-line @typescript-eslint/naming-convention
101103 assistant_id : assistantID ,
@@ -107,7 +109,7 @@ class OpenAIUtils {
107109 let response = '' ;
108110 let count = 0 ;
109111 while ( ! response && count < OpenAIUtils . MAX_POLL_COUNT ) {
110- // eslint-disable-next-line @typescript-eslint/naming-convention
112+ // eslint-disable-next-line @typescript-eslint/naming-convention, deprecation/deprecation
111113 run = await this . client . beta . threads . runs . retrieve ( run . id , { thread_id : thread . id } ) ;
112114 if ( run . status !== OpenAIUtils . OPENAI_RUN_COMPLETED ) {
113115 count ++ ;
@@ -117,6 +119,7 @@ class OpenAIUtils {
117119 continue ;
118120 }
119121
122+ // eslint-disable-next-line deprecation/deprecation
120123 for await ( const message of this . client . beta . threads . messages . list ( thread . id ) ) {
121124 if ( message . role !== OpenAIUtils . ASSISTANT ) {
122125 continue ;
0 commit comments