bailed on telemetry

This commit is contained in:
2026-03-06 14:41:31 -07:00
parent 6d5ca55900
commit b9db6408b1
7 changed files with 36 additions and 34 deletions

View File

@@ -56,7 +56,6 @@ defmodule ElixirAi.ChatUtils do
headers = [{"authorization", "Bearer #{api_key}"}]
# Logger.info("sending AI request with body: #{inspect(body)}")
case Req.post(api_url,
json: body,
headers: headers,
@@ -69,7 +68,6 @@ defmodule ElixirAi.ChatUtils do
end
) do
{:ok, _response} ->
# Logger.info("AI request completed with response #{inspect(response)}")
:ok
{:error, reason} ->

View File

@@ -39,9 +39,9 @@ defmodule ElixirAi.AiUtils.StreamLineUtils do
%{
"choices" => [%{"finish_reason" => "stop"}],
"id" => id
} = msg
} = _msg
) do
Logger.info("Received end of AI response stream for id #{id} with message: #{inspect(msg)}")
# Logger.info("Received end of AI response stream for id #{id} with message: #{inspect(msg)}")
send(
server,
@@ -125,7 +125,7 @@ defmodule ElixirAi.AiUtils.StreamLineUtils do
"id" => id
} = message
) do
Logger.info("Received tool_calls_finished with message: #{inspect(message)}")
# Logger.info("Received tool_calls_finished with message: #{inspect(message)}")
send(server, {:ai_tool_call_end, id})
end