File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed
Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -530,6 +530,14 @@ let OpenaiApi = (function () {
530530 return response ;
531531 }
532532
533+ async deleteModelResponse ( parameters ) {
534+ const openai = new OpenAI ( this . clientParams ) ;
535+ const { response_id, ...params } = parameters . payload ;
536+ const response = await openai . responses . del ( response_id , params ) ;
537+
538+ return response ;
539+ }
540+
533541 // <<< End Responses functions
534542
535543 async createModeration ( parameters ) {
Original file line number Diff line number Diff line change 101101 "createModeration" : " create moderation" ,
102102 "createModelResponse" : " create model response" ,
103103 "getModelResponse" : " retrieve model response" ,
104+ "deleteModelResponse" : " delete model response" ,
104105 "listAssistants" : " list assistants" ,
105106 "order" : " order" ,
106107 "before" : " before" ,
Original file line number Diff line number Diff line change 294294 value = "createModelResponse"
295295 data-i18n = "OpenaiApi.parameters.createModelResponse"
296296 > </ option >
297+
297298 < option
298299 value = "getModelResponse"
299300 data-i18n = "OpenaiApi.parameters.getModelResponse"
300- > </ option >
301+ > </ option >
302+
303+ < option
304+ value = "deleteModelResponse"
305+ data-i18n = "OpenaiApi.parameters.deleteModelResponse"
306+ > </ option >
307+
301308 </ optgroup >
302309 < optgroup style = "font-style: normal;" label = "🔄 Runs (Beta)" >
303310 < option
@@ -3167,6 +3174,23 @@ <h4>msg.payload Properties</h4>
31673174 </ dt >
31683175 < dd > The ID of the response to retrieve.</ dd >
31693176 </ dl >
3177+
3178+ < h4 style = "font-weight: bolder;" > ⋙ Delete Model Response</ h4 >
3179+ < p > Deletes a model response with the given ID.</ p >
3180+ < dl class = "message-properties" >
3181+ < h4 > msg.payload Properties</ h4 >
3182+
3183+ < dt >
3184+ response_id
3185+ < a
3186+ href = "https://platform.openai.com/docs/api-reference/responses/delete#responses-delete-response_id"
3187+ target = "_blank"
3188+ > < i class = "fa fa-external-link fa-sm" aria-hidden = "true" > </ i
3189+ > </ a >
3190+ < span class = "property-type" > string</ span >
3191+ </ dt >
3192+ < dd > The ID of the response to delete.</ dd >
3193+ </ dl >
31703194
31713195 </ details >
31723196 </ section >
You can’t perform that action at this time.
0 commit comments