Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
add model: gpt-3.5-turbo-16k
Browse files Browse the repository at this point in the history
  • Loading branch information
lucoiso committed Aug 12, 2023
1 parent eabe6a7 commit a22d7ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/HttpGPTCommonModule/Private/Utils/HttpGPTHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const FName UHttpGPTHelper::ModelToName(const EHttpGPTChatModel& Model)
case EHttpGPTChatModel::gpt35turbo:
return "gpt-3.5-turbo";

case EHttpGPTChatModel::gpt35turbo16k:
return "gpt-3.5-turbo-16k";

case EHttpGPTChatModel::textdavinci003:
return "text-davinci-003";

Expand Down Expand Up @@ -51,6 +54,10 @@ const EHttpGPTChatModel UHttpGPTHelper::NameToModel(const FName Model)
{
return EHttpGPTChatModel::gpt35turbo;
}
else if (Model.IsEqual("gpt-3.5-turbo-16k", ENameCase::IgnoreCase))
{
return EHttpGPTChatModel::gpt35turbo16k;
}
else if (Model.IsEqual("text-davinci-003", ENameCase::IgnoreCase))
{
return EHttpGPTChatModel::textdavinci003;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ enum class EHttpGPTChatModel : uint8
gpt4 UMETA(DisplayName = "gpt-4"),
gpt432k UMETA(DisplayName = "gpt-4-32k"),
gpt35turbo UMETA(DisplayName = "gpt-3.5-turbo"),
gpt35turbo16k UMETA(DisplayName = "gpt-3.5-turbo-16k"),
textdavinci003 UMETA(DisplayName = "text-davinci-003"),
textdavinci002 UMETA(DisplayName = "text-davinci-002"),
codedavinci002 UMETA(DisplayName = "code-davinci-002"),
Expand Down

1 comment on commit a22d7ae

@lucoiso
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#68

Please sign in to comment.