Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shuxiao9058 committed Jul 18, 2023
1 parent 072ee38 commit 04f87d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tabnine-chat-curl.el
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ PROCESS and _STATUS are process parameters."
(kill-buffer proc-buf)))

(defun tabnine-chat-curl--stream-insert-response (response info)
"Insert streaming RESPONSE from ChatGPT into the TabNine Chat buffer.
"Insert streaming RESPONSE from TabNine Chat into the TabNine Chat buffer.
INFO is a mutable plist containing information relevant to this buffer.
See `tabnine-chat--url-get-response' for details."
Expand Down
8 changes: 4 additions & 4 deletions tabnine-chat.el
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ all at once. This wait is asynchronous.

(defcustom tabnine-chat-response-filter-functions
'(tabnine-chat--convert-org)
"Abnormal hook for transforming the response from ChatGPT.
"Abnormal hook for transforming the response from TabNine Chat.
This is useful if you want to format the response in some way,
such as filling paragraphs, adding annotations or recording
information in the response like links.
Each function in this hook receives two arguments, the response
string to transform and the ChatGPT interaction buffer. It should
string to transform and the TabNine Chat interaction buffer. It should
return the transformed string."
:group 'tabnine
:type 'hook)
Expand Down Expand Up @@ -323,7 +323,7 @@ the response is inserted into the current buffer after point."
(string-join text-arr))))

(defun tabnine-chat--insert-response (response info)
"Insert RESPONSE from ChatGPT into the TabNine Chat buffer.
"Insert RESPONSE from TabNine Chat into the TabNine Chat buffer.
INFO is a plist containing information relevant to this buffer.
See `tabnine-chat--url-get-response' for details."
Expand Down Expand Up @@ -391,7 +391,7 @@ hook."
Currently only `org-mode' is handled.
BUFFER is the interaction buffer for ChatGPT."
BUFFER is the interaction buffer for TabNine Chat."
(pcase (buffer-local-value 'major-mode buffer)
('org-mode (tabnine-chat--convert-markdown->org content))
(_ content)))
Expand Down

0 comments on commit 04f87d4

Please sign in to comment.