File tree 2 files changed +28
-2
lines changed
2 files changed +28
-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,14 @@ 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-model ` - ID of the model to use.
94
+ - ` codegpt-max-tokens ` - The maximum number of tokens to generate in the completion.
95
+ - ` codegpt-temperature ` - What sampling temperature to use.
96
+
89
97
## Contribute
90
98
91
99
[ ![ 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-model " text-davinci-003"
62
+ " ID of the model to use."
63
+ :type 'string
64
+ :group 'codegpt )
65
+
66
+ (defcustom codegpt-max-tokens 4000
67
+ " The maximum number of tokens to generate in the completion."
68
+ :type 'integer
69
+ :group 'codegpt )
70
+
71
+ (defcustom codegpt-temperature 1.0
72
+ " What sampling temperature to use."
73
+ :type 'number
74
+ :group 'openai )
75
+
61
76
; ;
62
77
; ;; Application
63
78
@@ -91,7 +106,10 @@ boundaries of that region in buffer."
91
106
(insert (string-trim result) " \n " )
92
107
(fill-region original-point (point ))))
93
108
(unless codegpt-focus-p
94
- (select-window original-window))))
109
+ (select-window original-window)))
110
+ :model codegpt-model
111
+ :max-tokens codegpt-max-tokens
112
+ :temperature codegpt-temperature)
95
113
(unless codegpt-focus-p
96
114
(select-window original-window)))))
97
115
You can’t perform that action at this time.
0 commit comments