mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +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:
@@ -8,7 +8,7 @@ class UserMessageTest < ActiveSupport::TestCase
|
||||
test "requests assistant response after creation" do
|
||||
@chat.expects(:ask_assistant_later).once
|
||||
|
||||
message = UserMessage.create!(chat: @chat, content: "Hello from user", ai_model: "gpt-4o")
|
||||
message = UserMessage.create!(chat: @chat, content: "Hello from user", ai_model: "gpt-4.1")
|
||||
message.update!(content: "updated")
|
||||
|
||||
streams = capture_turbo_stream_broadcasts(@chat)
|
||||
|
||||
Reference in New Issue
Block a user