This commit is contained in:
@@ -21,7 +21,7 @@ defmodule ElixirAiWeb.AiProvidersLive do
|
||||
"name" => "",
|
||||
"model_name" => "",
|
||||
"api_token" => "",
|
||||
"completions_url" => "https://api.openai.com/v1/chat/completions"
|
||||
"completions_url" => ""
|
||||
}
|
||||
end
|
||||
)
|
||||
@@ -130,7 +130,7 @@ defmodule ElixirAiWeb.AiProvidersLive do
|
||||
"name" => "",
|
||||
"model_name" => "",
|
||||
"api_token" => "",
|
||||
"completions_url" => "https://api.openai.com/v1/chat/completions"
|
||||
"completions_url" => ""
|
||||
}
|
||||
)
|
||||
|> assign(error: nil)}
|
||||
|
||||
@@ -24,7 +24,6 @@ defmodule ElixirAiWeb.ChatLive do
|
||||
{:ok, _pid} ->
|
||||
if connected?(socket) do
|
||||
Phoenix.PubSub.subscribe(ElixirAi.PubSub, chat_topic(name))
|
||||
Phoenix.PubSub.subscribe(ElixirAi.PubSub, conversation_message_topic(name))
|
||||
end
|
||||
|
||||
conversation = ChatRunner.get_conversation(name)
|
||||
|
||||
Reference in New Issue
Block a user