From 54dab5fbdfcad89eff1998245b66a4dca7750b13 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 13 Apr 2026 12:43:42 +0100 Subject: [PATCH] Use gpt 5.1 to cater for collection summary context size --- lib/music_library/chats/collection_chat.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/music_library/chats/collection_chat.ex b/lib/music_library/chats/collection_chat.ex index 19e9baf2..35a32485 100644 --- a/lib/music_library/chats/collection_chat.ex +++ b/lib/music_library/chats/collection_chat.ex @@ -13,7 +13,7 @@ defmodule MusicLibrary.Chats.CollectionChat do def stream_response(messages, {summary, record_count}, callback) do instructions = build_instructions(summary, record_count) - OpenAI.chat_stream(messages, on_chunk: callback, instructions: instructions) + OpenAI.chat_stream(messages, on_chunk: callback, instructions: instructions, model: "gpt-5.1") end defp build_instructions(collection_summary, record_count) do