Skip to content

Commit 1d3cee6

Browse files
Merge pull request #67 from intelligentnode/fix-number-of-messages
Update chat-settings.tsx
2 parents 1472da7 + a35d0b1 commit 1d3cee6

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ https://github.com/intelligentnode/IntelliChat/assets/2751950/47d7db12-e299-449f
1919
## Features
2020

2121
- Select your preferred AI Provider and model from the UI.
22-
- **OpenAI ChatGPT**: gpt-4, gpt-3.5-turbo.
22+
- **OpenAI ChatGPT**: gpt-4, gpt-3.5-turbo, gpt-4o-mini.
2323
- **Google Gemini**.
2424
- **Azure Openai**.
2525
- **Cohere Coral**.

intellichat/intellinode.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare module 'intellinode' {
2929
}
3030

3131
class ChatGPTInput {
32-
model: string = 'gpt-3.5-turbo';
32+
model: string = 'gpt-4o-mini';
3333
temperature: number = 1;
3434
maxTokens: number | null = null;
3535
numberOfOutputs: number = 1;

intellichat/src/components/chat-settings.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ export default function ChatSettings({ close }: { close: () => void }) {
126126
the number, the more context the AI will have to work with.
127127
This will determine the number of messages used to generate
128128
the context when the "Use Chat Context" option is enabled.`}
129+
onChange={(e) => {
130+
const value = Number(e.target.value);
131+
form.setValue('numberOfMessages', value);
132+
}}
129133
/>
130134
<FormSelectField
131135
control={form.control}

intellichat/src/lib/ai-providers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { SupportedProvidersNamesType } from './validators';
44

5-
const OpenAIModels = ['gpt-4o', 'gpt-3.5-turbo', 'gpt-4', 'gpt-4-turbo-preview'] as const;
5+
const OpenAIModels = ['gpt-4o-mini', 'gpt-4o', 'gpt-3.5-turbo', 'gpt-4', 'gpt-4-turbo-preview'] as const;
66
const ReplicateModels = [
77
'70b-chat',
88
'13b-chat',

intellichat/src/store/chat-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type ChatSettingsState = {
3333

3434
const initialProviders: ChatSettingsState['providers'] = {
3535
cohere: { name: 'cohere', model: 'command', apiKey: '' },
36-
openai: { name: 'openai', model: 'gpt-3.5-turbo', apiKey: '' },
36+
openai: { name: 'openai', model: 'gpt-4o-mini', apiKey: '' },
3737
replicate: {
3838
name: 'replicate',
3939
model: '70b-chat',

0 commit comments

Comments
 (0)