Skip to content

Commit

Permalink
New default model - GPT 3.5 Turbo 1106 - used for createChatCompletio…
Browse files Browse the repository at this point in the history
…n, createChatFunCompletion, and CreateChatToolCompletion.
  • Loading branch information
peterbanda committed Nov 27, 2023
1 parent c24f3de commit 983b6be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ trait OpenAIService extends OpenAICoreService {
messages: Seq[BaseMessage],
tools: Seq[ToolSpec],
responseToolChoice: Option[String] = None,
settings: CreateChatCompletionSettings = DefaultSettings.CreateChatFunCompletion
settings: CreateChatCompletionSettings = DefaultSettings.CreateChatToolCompletion
): Future[ChatToolCompletionResponse]

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ trait OpenAIServiceConsts {
)

val CreateChatCompletion = CreateChatCompletionSettings(
model = ModelId.gpt_3_5_turbo,
model = ModelId.gpt_3_5_turbo_1106,
max_tokens = Some(1000)
)

val CreateChatFunCompletion = CreateChatCompletionSettings(
model = ModelId.gpt_3_5_turbo_0613,
model = ModelId.gpt_3_5_turbo_1106,
max_tokens = Some(1000)
)

val CreateChatToolCompletion = CreateChatCompletionSettings(
model = ModelId.gpt_3_5_turbo_1106,
max_tokens = Some(1000)
)

Expand Down

0 comments on commit 983b6be

Please sign in to comment.