Skip to content

Commit 0caeaf1

Browse files
committed
expose model
1 parent df33d0a commit 0caeaf1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ List of supported commands,
9090

9191
#### 🧪 Variables
9292

93+
- `codegpt-model` - ID of the model to use.
9394
- `codegpt-max-tokens` - The maximum number of tokens to generate in the completion.
9495
- `codegpt-temperature` - What sampling temperature to use.
9596

codegpt.el

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
:type 'list
5959
:group 'codegpt)
6060

61+
(defcustom codegpt-model "text-davinci-003"
62+
"ID of the model to use."
63+
:type 'string
64+
:group 'codegpt)
65+
6166
(defcustom codegpt-max-tokens 4000
6267
"The maximum number of tokens to generate in the completion."
6368
:type 'integer
@@ -102,6 +107,7 @@ boundaries of that region in buffer."
102107
(fill-region original-point (point))))
103108
(unless codegpt-focus-p
104109
(select-window original-window)))
110+
:model codegpt-model
105111
:max-tokens codegpt-max-tokens
106112
:temperature codegpt-temperature)
107113
(unless codegpt-focus-p

0 commit comments

Comments
 (0)