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 91
91
(or (not max-entries) (>= max-entries 0 ))
92
92
(setq prop (text-property-search-backward
93
93
'gptel 'response
94
- (when (get-char-property (max (point-min ) (1- (point )))
95
- 'gptel )
94
+ (when (eq (get-char-property (max (point-min ) (1- (point )))
95
+ 'gptel )
96
+ 'response )
96
97
t ))))
97
98
(push (list :role (if (prop-match-value prop) " model" " user" )
98
99
:parts
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))
91
92
(list :url url)
Original file line number Diff line number Diff line change @@ -101,8 +101,9 @@ Intended for internal use only.")
101
101
(or (not max-entries) (>= max-entries 0 ))
102
102
(setq prop (text-property-search-backward
103
103
'gptel 'response
104
- (when (get-char-property (max (point-min ) (1- (point )))
105
- 'gptel )
104
+ (when (eq (get-char-property (max (point-min ) (1- (point )))
105
+ 'gptel )
106
+ 'response )
106
107
t ))))
107
108
(push (list :role (if (prop-match-value prop) " assistant" " user" )
108
109
:content
Original file line number Diff line number Diff line change @@ -127,8 +127,9 @@ with differing settings.")
127
127
(or (not max-entries) (>= max-entries 0 ))
128
128
(setq prop (text-property-search-backward
129
129
'gptel 'response
130
- (when (get-char-property (max (point-min ) (1- (point )))
131
- 'gptel )
130
+ (when (eq (get-char-property (max (point-min ) (1- (point )))
131
+ 'gptel )
132
+ 'response )
132
133
t ))))
133
134
(push (list :role (if (prop-match-value prop) " assistant" " user" )
134
135
:content
You can’t perform that action at this time.
0 commit comments