This repository was archived by the owner on Dec 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 (
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" ,
You can’t perform that action at this time.
0 commit comments