Skip to content

Commit 26ce9be

Browse files
committed
GPT-4o
1 parent be953f0 commit 26ce9be

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [3.0.0] 2024-06-28
4+
5+
### GPT-4o Support
6+
7+
Updated GPT-3.5-Turbo to GPT-4o
8+
39
## [2.0.0] 2024-02-06
410

511
### Next 14

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [Horizon ChatGPT AI Template](https://horizon-ui.com/chatgpt-ai-template) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?text=Check%20Horizon%20ChatGPT%20AI%20Template,%20the%20trendiest%20open%20source%20ChatGPT%20AI%20admin%20template%20for%20%23nextjs%20and%20%23react!%0A%0Ahttps%3A//horizon-ui.com/chatgpt-ai-template/%20%20)
22

3-
![version](https://img.shields.io/badge/version-1.0.0-brightgreen.svg)
3+
![version](https://img.shields.io/badge/version-3.0.0-brightgreen.svg)
44
[![GitHub issues open](https://img.shields.io/github/issues/horizon-ui/chatgpt-ai-template.svg?maxAge=2592000)](https://github.com/horizon-ui/chatgpt-ai-template/issues?q=is%3Aopen+is%3Aissue)
55

66
<p>&nbsp;</p>
@@ -61,8 +61,8 @@ View <a href="https://horizon-ui.com/chatgpt-ai-template/?ref=readme-horizon-ai-
6161

6262
### Versions
6363

64-
| Free Version | PRO Version |
65-
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
64+
| Free Version | PRO Version |
65+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6666
| [![Horizon ChatGPT AI Template](https://i.ibb.co/Qmym1qt/horizon-ai-template-presentation-image-open-source.png)](https://github.com/horizon-ui/chatgpt-ai-template) | [![Horizon AI Template PRO](https://i.ibb.co/ChL2fvf/horizon-ai-template-presentation-image.png)](https://www.horizon-ui.com/ai-template?ref=readme-horizon-ai-template-free) |
6767

6868
### Figma Version

app/page.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Chat(props: { apiKeyApp: string }) {
3030
// Response message
3131
const [outputCode, setOutputCode] = useState<string>('');
3232
// ChatGPT model
33-
const [model, setModel] = useState<OpenAIModel>('gpt-3.5-turbo');
33+
const [model, setModel] = useState<OpenAIModel>('gpt-4o');
3434
// Loading state
3535
const [loading, setLoading] = useState<boolean>(false);
3636

@@ -60,7 +60,7 @@ export default function Chat(props: { apiKeyApp: string }) {
6060
setInputOnSubmit(inputCode);
6161

6262
// Chat post conditions(maximum number of characters, valid message etc.)
63-
const maxCodeLength = model === 'gpt-3.5-turbo' ? 700 : 700;
63+
const maxCodeLength = model === 'gpt-4o' ? 700 : 700;
6464

6565
if (!apiKey?.includes('sk-')) {
6666
alert('Please enter an API key.');
@@ -188,15 +188,15 @@ export default function Chat(props: { apiKeyApp: string }) {
188188
transition="0.3s"
189189
justify={'center'}
190190
align="center"
191-
bg={model === 'gpt-3.5-turbo' ? buttonBg : 'transparent'}
191+
bg={model === 'gpt-4o' ? buttonBg : 'transparent'}
192192
w="174px"
193193
h="70px"
194-
boxShadow={model === 'gpt-3.5-turbo' ? buttonShadow : 'none'}
194+
boxShadow={model === 'gpt-4o' ? buttonShadow : 'none'}
195195
borderRadius="14px"
196196
color={textColor}
197197
fontSize="18px"
198198
fontWeight={'700'}
199-
onClick={() => setModel('gpt-3.5-turbo')}
199+
onClick={() => setModel('gpt-4o')}
200200
>
201201
<Flex
202202
borderRadius="full"
@@ -214,22 +214,22 @@ export default function Chat(props: { apiKeyApp: string }) {
214214
color={iconColor}
215215
/>
216216
</Flex>
217-
GPT-3.5
217+
GPT-4o
218218
</Flex>
219219
<Flex
220220
cursor={'pointer'}
221221
transition="0.3s"
222222
justify={'center'}
223223
align="center"
224-
bg={model === 'gpt-4' ? buttonBg : 'transparent'}
224+
bg={model === 'gpt-3.5-turbo' ? buttonBg : 'transparent'}
225225
w="164px"
226226
h="70px"
227-
boxShadow={model === 'gpt-4' ? buttonShadow : 'none'}
227+
boxShadow={model === 'gpt-3.5-turbo' ? buttonShadow : 'none'}
228228
borderRadius="14px"
229229
color={textColor}
230230
fontSize="18px"
231231
fontWeight={'700'}
232-
onClick={() => setModel('gpt-4')}
232+
onClick={() => setModel('gpt-3.5-turbo')}
233233
>
234234
<Flex
235235
borderRadius="full"
@@ -247,7 +247,7 @@ export default function Chat(props: { apiKeyApp: string }) {
247247
color={iconColor}
248248
/>
249249
</Flex>
250-
GPT-4
250+
GPT-3.5
251251
</Flex>
252252
</Flex>
253253

src/types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type OpenAIModel = 'gpt-3.5-turbo' | 'gpt-4';
1+
export type OpenAIModel = 'gpt-4o' | 'gpt-3.5-turbo';
22

33
export interface ChatBody {
44
inputCode: string;

0 commit comments

Comments
 (0)