File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ to your questions, right within the editor.
22
22
This package is available from [ JCS-ELPA] ( https://jcs-emacs.github.io/jcs-elpa/ ) .
23
23
Install from these repositories then you should be good to go!
24
24
25
- Normall , you don't need to add ` (require 'codegpt) ` to your confiugration since
25
+ Normally , you don't need to add ` (require 'codegpt) ` to your confiugration since
26
26
most ` codegpt ` commands are autoload and can be called without loading the module!
27
27
28
28
#### use-package
@@ -86,6 +86,13 @@ List of supported commands,
86
86
| ` codegpt-explain ` | Explain the selected code |
87
87
| ` codegpt-improve ` | Improve, refactor or optimize it |
88
88
89
+ ## 📝 Customization
90
+
91
+ #### 🧪 Variables
92
+
93
+ * ` codegpt-max-tokens ` - The maximum number of tokens to generate in the completion.
94
+ * ` codegpt-temperature ` - What sampling temperature to use.
95
+
89
96
## Contribute
90
97
91
98
[ ![ PRs Welcome] ( https://img.shields.io/badge/PRs-welcome-brightgreen.svg )] ( http://makeapullrequest.com )
Original file line number Diff line number Diff line change 58
58
:type 'list
59
59
:group 'codegpt )
60
60
61
+ (defcustom codegpt-max-tokens 4000
62
+ " The maximum number of tokens to generate in the completion."
63
+ :type 'integer
64
+ :group 'codegpt )
65
+
66
+ (defcustom codegpt-temperature 1.0
67
+ " What sampling temperature to use."
68
+ :type 'number
69
+ :group 'openai )
70
+
61
71
; ;
62
72
; ;; Application
63
73
@@ -91,7 +101,9 @@ boundaries of that region in buffer."
91
101
(insert (string-trim result) " \n " )
92
102
(fill-region original-point (point ))))
93
103
(unless codegpt-focus-p
94
- (select-window original-window))))
104
+ (select-window original-window)))
105
+ :max-tokens codegpt-max-tokens
106
+ :temperature codegpt-temperature)
95
107
(unless codegpt-focus-p
96
108
(select-window original-window)))))
97
109
You can’t perform that action at this time.
0 commit comments