Enable unaliased modules ex_slop check

This commit is contained in:
Claudio Ortolina
2026-04-22 20:36:13 +01:00
parent 5c1beede53
commit f7f38d580e
26 changed files with 226 additions and 193 deletions
+4 -3
View File
@@ -5,6 +5,7 @@ defmodule MusicLibraryWeb.Components.Chat do
alias MusicLibrary.Chats
alias MusicLibraryWeb.Markdown
alias Phoenix.LiveView
def open(id), do: Fluxon.open_dialog(id)
@@ -386,13 +387,13 @@ defmodule MusicLibraryWeb.Components.Chat do
Task.Supervisor.start_child(MusicLibrary.TaskSupervisor, fn ->
case chat_module.stream_response(stream_messages, chat_context, fn chunk ->
Phoenix.LiveView.send_update(parent_pid, __MODULE__,
LiveView.send_update(parent_pid, __MODULE__,
id: component_id,
chunk: chunk
)
end) do
:ok ->
Phoenix.LiveView.send_update(parent_pid, __MODULE__,
LiveView.send_update(parent_pid, __MODULE__,
id: component_id,
done: true
)
@@ -400,7 +401,7 @@ defmodule MusicLibraryWeb.Components.Chat do
{:error, reason} ->
Logger.error("Chat streaming error: #{reason}")
Phoenix.LiveView.send_update(parent_pid, __MODULE__,
LiveView.send_update(parent_pid, __MODULE__,
id: component_id,
error: gettext("Something went wrong. Please try again.")
)