feat(assistant): improve chat functionality and update tests - refactor configurable model, update OpenAI provider, enhance chat form UI, and improve test coverage (#2316)

Updated model to GPT 4.1
This commit is contained in:
Josh Pigford
2025-05-27 05:04:58 -05:00
committed by GitHub
parent e7f1506728
commit 4f5068e7e5
15 changed files with 41 additions and 44 deletions

View File

@@ -22,7 +22,7 @@ class ChatTest < ActiveSupport::TestCase
prompt = "Test prompt"
assert_difference "@user.chats.count", 1 do
chat = @user.chats.start!(prompt, model: "gpt-4o")
chat = @user.chats.start!(prompt, model: "gpt-4.1")
assert_equal 1, chat.messages.count
assert_equal 1, chat.messages.where(type: "UserMessage").count