File tree 4 files changed +12
-8
lines changed 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 99
99
(or (not max-entries) (>= max-entries 0 ))
100
100
(setq prop (text-property-search-backward
101
101
'gptel 'response
102
- (when (get-char-property (max (point-min ) (1- (point )))
103
- 'gptel )
102
+ (when (eq (get-char-property (max (point-min ) (1- (point )))
103
+ 'gptel )
104
+ 'response )
104
105
t ))))
105
106
(if (prop-match-value prop) ; assistant role
106
107
(push (list :role " model"
Original file line number Diff line number Diff line change 84
84
; ; (filename (thing-at-point 'existing-filename)) ;no file upload support yet
85
85
(prop (text-property-search-backward
86
86
'gptel 'response
87
- (when (get-char-property (max (point-min ) (1- (point )))
88
- 'gptel )
87
+ (when (eq (get-char-property (max (point-min ) (1- (point )))
88
+ 'gptel )
89
+ 'response )
89
90
t ))))
90
91
(if (and url (string-prefix-p " summarize" (gptel--model-name gptel-model)))
91
92
(list :url url)
Original file line number Diff line number Diff line change @@ -104,8 +104,9 @@ Intended for internal use only.")
104
104
(or (not max-entries) (>= max-entries 0 ))
105
105
(setq prop (text-property-search-backward
106
106
'gptel 'response
107
- (when (get-char-property (max (point-min ) (1- (point )))
108
- 'gptel )
107
+ (when (eq (get-char-property (max (point-min ) (1- (point )))
108
+ 'gptel )
109
+ 'response )
109
110
t ))))
110
111
(if (prop-match-value prop) ; assistant role
111
112
(push (list :role " assistant"
Original file line number Diff line number Diff line change @@ -153,8 +153,9 @@ with differing settings.")
153
153
(or (not max-entries) (>= max-entries 0 ))
154
154
(setq prop (text-property-search-backward
155
155
'gptel 'response
156
- (when (get-char-property (max (point-min ) (1- (point )))
157
- 'gptel )
156
+ (when (eq (get-char-property (max (point-min ) (1- (point )))
157
+ 'gptel )
158
+ 'response )
158
159
t ))))
159
160
(if (prop-match-value prop) ; assistant role
160
161
(push (list :role " assistant"
You can’t perform that action at this time.
0 commit comments