File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export const EditReasons = {
64
64
chatApplyEdits ( data : { modelId : string | undefined } ) {
65
65
return createEditReason ( {
66
66
source : 'Chat.applyEdits' ,
67
- $modelId : data . modelId ,
67
+ $modelId : avoidPathRedaction ( data . modelId ) ,
68
68
} as const ) ;
69
69
} ,
70
70
@@ -90,7 +90,7 @@ export const EditReasons = {
90
90
inlineChatApplyEdit ( data : { modelId : string | undefined } ) {
91
91
return createEditReason ( {
92
92
source : 'inlineChat.applyEdits' ,
93
- $modelId : avoidRedaction ( data . modelId ) ,
93
+ $modelId : avoidPathRedaction ( data . modelId ) ,
94
94
} as const ) ;
95
95
} ,
96
96
@@ -116,7 +116,7 @@ export const EditReasons = {
116
116
type Values < T > = T [ keyof T ] ;
117
117
type ITextModelEditReasonMetadata = Values < { [ TKey in keyof typeof EditReasons ] : ReturnType < typeof EditReasons [ TKey ] > [ 'metadataT' ] } > ;
118
118
119
- function avoidRedaction ( str : string | undefined ) : string | undefined {
119
+ function avoidPathRedaction ( str : string | undefined ) : string | undefined {
120
120
if ( str === undefined ) {
121
121
return undefined ;
122
122
}
You can’t perform that action at this time.
0 commit comments