Skip to content

Commit 011db5a

Browse files
feat: add instructions and support for configuring GPT-4 Turbo (Preview) (#274)
* docs(README.md): add instructions for configuring GPT-4 Turbo (Preview) feat(config.ts): include 'gpt-4-1106-preview' in the list of supported models * fix(config.ts): update error message to include 'gpt-4-1106-preview' as a supported model
1 parent 6c743ba commit 011db5a

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ or for as a cheaper option:
125125
oco config set OCO_MODEL=gpt-3.5-turbo
126126
```
127127

128+
or for GPT-4 Turbo (Preview) which is more capable, has knowledge of world events up to April 2023, a 128k context window and 2-3x cheaper vs GPT-4:
129+
130+
```sh
131+
oco config set OCO_MODEL=gpt-4-1106-preview
132+
```
133+
128134
Make sure that you spell it `gpt-4` (lowercase) and that you have API access to the 4th model. Even if you have ChatGPT+, that doesn't necessarily mean that you have API access to GPT-4.
129135

130136
### Locale configuration

src/commands/config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ export const configValidators = {
129129
'gpt-3.5-turbo',
130130
'gpt-4',
131131
'gpt-3.5-turbo-16k',
132-
'gpt-3.5-turbo-0613'
132+
'gpt-3.5-turbo-0613',
133+
'gpt-4-1106-preview'
133134
].includes(value),
134-
`${value} is not supported yet, use 'gpt-4', 'gpt-3.5-turbo-16k' (default), 'gpt-3.5-turbo-0613' or 'gpt-3.5-turbo'`
135+
`${value} is not supported yet, use 'gpt-4', 'gpt-3.5-turbo-16k' (default), 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo' or 'gpt-4-1106-preview'`
135136
);
136137
return value;
137138
},

0 commit comments

Comments
 (0)