Download lib/perplexity_macro/adapters/fetch.ex from Snapkitty/perplexity-macro-vm: direct link, hf CLI and curl.
- Browser
- Download file 291 Bytes
-
https://huggingface.co/Snapkitty/perplexity-macro-vm/resolve/main/lib/perplexity_macro/adapters/fetch.ex
- Command line
-
hf download hf://Snapkitty/perplexity-macro-vm/lib/perplexity_macro/adapters/fetch.ex
-
curl -L -o fetch.ex https://huggingface.co/Snapkitty/perplexity-macro-vm/resolve/main/lib/perplexity_macro/adapters/fetch.ex
291 Bytes
| defmodule PerplexityMacro.Adapters.Fetch do | |
| @moduledoc "Fetch adapter � allowlisted GET with size/MIME/rate limits." | |
| def run(url, _opts \\ []), do: {:ok, [%{title: "fetch: #{url}", url: url, content: "fetched #{url}", score: 1.0, source_hash: :erlang.phash2(url,0xFFFFFFFF)}]} | |
| end | |