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

Commit 2d80c76

Browse files
committed
small oversight, display name should be used for display
1 parent a26ec07 commit 2d80c76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ai_bot/playground.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def reply_to(
459459
post_type: post_type,
460460
skip_guardian: true,
461461
custom_fields: {
462-
DiscourseAi::AiBot::POST_AI_LLM_NAME_FIELD => bot.llm.llm_model.name,
462+
DiscourseAi::AiBot::POST_AI_LLM_NAME_FIELD => bot.llm.llm_model.display_name,
463463
},
464464
)
465465

spec/lib/modules/ai_bot/playground_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@
785785
expect(last_post.user_id).to eq(persona.user_id)
786786

787787
expect(last_post.custom_fields[DiscourseAi::AiBot::POST_AI_LLM_NAME_FIELD]).to eq(
788-
gpt_35_turbo.name,
788+
gpt_35_turbo.display_name,
789789
)
790790
end
791791

0 commit comments

Comments
 (0)