Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.

Commit e30f06a

Browse files
committed
Made 3.5-turbo-16k the default version so we can remove hack
1 parent 31a8263 commit e30f06a

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

db/post_migrate/20240528144216_seed_open_ai_models.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def up
66

77
open_ai_api_key = fetch_setting("ai_openai_api_key")
88
enabled_models = fetch_setting("ai_bot_enabled_chat_bots")&.split("|").to_a
9-
enabled_models = ["gpt-3.5-turbo"] if enabled_models.empty?
9+
enabled_models = ["gpt-3.5-turbo-16k"] if enabled_models.empty?
1010

1111
if open_ai_api_key.present?
1212
models << mirror_open_ai(

lib/ai_bot/bot.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,6 @@ def self.guess_model(bot_user)
167167

168168
return if associated_llm.nil? # Might be a persona user. Handled by constructor.
169169

170-
# TODO(roman): Dynamically listing bot users in the settings will let us remove this replacements.
171-
if associated_llm.name == "gpt-3.5-turbo"
172-
gpt_16k_version = LlmModel.find_by(name: "gpt-3.5-turbo-16k")
173-
associated_llm = gpt_16k_version if gpt_16k_version
174-
end
175-
176170
"custom:#{associated_llm.id}"
177171
end
178172

spec/lib/modules/ai_bot/playground_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@
471471
# title is queued first, ensures it uses the llm targeted via target_usernames not claude
472472
DiscourseAi::Completions::Llm.with_prepared_responses(
473473
["Magic title", "Yes I can"],
474-
llm: "open_ai:gpt-3.5-turbo-16k",
474+
llm: "open_ai:gpt-3.5-turbo",
475475
) do
476476
post =
477477
create_post(
@@ -503,7 +503,7 @@
503503
# replies as correct persona if replying direct to persona
504504
DiscourseAi::Completions::Llm.with_prepared_responses(
505505
["Another reply"],
506-
llm: "open_ai:gpt-3.5-turbo-16k",
506+
llm: "open_ai:gpt-3.5-turbo",
507507
) do
508508
create_post(
509509
raw: "Please ignore this bot, I am replying to a user",

0 commit comments

Comments
 (0)