Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add GPT4O option to chatbot model enum #522

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/chatbot/chatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,27 @@ export enum ChatbotRole {
}

export enum GPTVersion {
/**
* Default GPT model used. Has a 16K context window.
* Costs the least of all models with ok precision and speed
*/
GPT_3_5_TURBO = 'gpt-3.5-turbo-0125',
/**
* First generation GPT 4 model. Has an 8K token context window.
* Costs a lot and is not very fast.
*/
GPT_4 = 'gpt-4',
/**
* Fast version of GPT 4. Has 128K token context window.
* Costs less than GPT 4 but more thn 3.5-turbo.
* Best for real time conversations.
*/
GPT_4_TURBO = 'gpt-4-turbo',
/**
* New and improved version of GPT 4. Has a 128K token context window.
* Has better capabilities than GPT 4 for a 6th of the price.
*/
GPT_4_O = 'gpt-4o',
}

export type ChatBotMessage = {
Expand Down