mirror of
https://github.com/we-promise/sure.git
synced 2026-06-04 10:19:03 +00:00
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:
@@ -14,7 +14,7 @@ class ChatsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
test "creates chat" do
|
||||
assert_difference("Chat.count") do
|
||||
post chats_url, params: { chat: { content: "Hello", ai_model: "gpt-4o" } }
|
||||
post chats_url, params: { chat: { content: "Hello", ai_model: "gpt-4.1" } }
|
||||
end
|
||||
|
||||
assert_redirected_to chat_path(Chat.order(created_at: :desc).first, thinking: true)
|
||||
|
||||
Reference in New Issue
Block a user