Skip to content

Commit

Permalink
Merge pull request #67 from intelligentnode/fix-number-of-messages
Browse files Browse the repository at this point in the history
Update chat-settings.tsx
  • Loading branch information
intelligentnode authored Jul 20, 2024
2 parents 1472da7 + a35d0b1 commit 1d3cee6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ https://github.com/intelligentnode/IntelliChat/assets/2751950/47d7db12-e299-449f
## Features

- Select your preferred AI Provider and model from the UI.
- **OpenAI ChatGPT**: gpt-4, gpt-3.5-turbo.
- **OpenAI ChatGPT**: gpt-4, gpt-3.5-turbo, gpt-4o-mini.
- **Google Gemini**.
- **Azure Openai**.
- **Cohere Coral**.
Expand Down
2 changes: 1 addition & 1 deletion intellichat/intellinode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ declare module 'intellinode' {
}

class ChatGPTInput {
model: string = 'gpt-3.5-turbo';
model: string = 'gpt-4o-mini';
temperature: number = 1;
maxTokens: number | null = null;
numberOfOutputs: number = 1;
Expand Down
4 changes: 4 additions & 0 deletions intellichat/src/components/chat-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export default function ChatSettings({ close }: { close: () => void }) {
the number, the more context the AI will have to work with.
This will determine the number of messages used to generate
the context when the "Use Chat Context" option is enabled.`}
onChange={(e) => {
const value = Number(e.target.value);
form.setValue('numberOfMessages', value);
}}
/>
<FormSelectField
control={form.control}
Expand Down
2 changes: 1 addition & 1 deletion intellichat/src/lib/ai-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { SupportedProvidersNamesType } from './validators';

const OpenAIModels = ['gpt-4o', 'gpt-3.5-turbo', 'gpt-4', 'gpt-4-turbo-preview'] as const;
const OpenAIModels = ['gpt-4o-mini', 'gpt-4o', 'gpt-3.5-turbo', 'gpt-4', 'gpt-4-turbo-preview'] as const;
const ReplicateModels = [
'70b-chat',
'13b-chat',
Expand Down
2 changes: 1 addition & 1 deletion intellichat/src/store/chat-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type ChatSettingsState = {

const initialProviders: ChatSettingsState['providers'] = {
cohere: { name: 'cohere', model: 'command', apiKey: '' },
openai: { name: 'openai', model: 'gpt-3.5-turbo', apiKey: '' },
openai: { name: 'openai', model: 'gpt-4o-mini', apiKey: '' },
replicate: {
name: 'replicate',
model: '70b-chat',
Expand Down

0 comments on commit 1d3cee6

Please sign in to comment.