Skip to content

Commit

Permalink
fix: add gpt enum (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh authored Apr 23, 2024
1 parent 92cb811 commit 80b2169
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/chatbot/chatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ export enum ChatbotRole {
User = 'user',
}

export enum GPTVersion {
GPT_3_5_TURBO = 'gpt-3.5-turbo-0125',
GPT_4 = 'gpt-4',
GPT_4_TURBO = 'gpt-4-turbo',
}

export type ChatBotMessage = {
role: `${ChatbotRole}` | ChatbotRole;
content: string;
Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,8 @@ export {
/**
* Chatbot related types
*/
export { ChatbotRole, type ChatBotMessage } from './chatbot/chatbot.js';
export {
ChatbotRole,
type ChatBotMessage,
GPTVersion,
} from './chatbot/chatbot.js';

0 comments on commit 80b2169

Please sign in to comment.