Add similar records

Initial stab by Claude
This commit is contained in:
Claudio Ortolina
2025-10-11 21:39:59 +02:00
parent 07218d16ca
commit 9cae972bc5
18 changed files with 1869 additions and 5 deletions
+4
View File
@@ -16,6 +16,10 @@ defmodule OpenAI do
{:ok, result}
end
def embeddings(text) do
API.get_embeddings(text, api_key())
end
defp api_key do
Application.get_env(:music_library, __MODULE__)
|> Keyword.fetch!(:api_key)