diff --git a/README.md b/README.md index 1d1e9a3..67e9ea7 100644 --- a/README.md +++ b/README.md @@ -12,20 +12,22 @@ gleam add gloq ``` ```gleam +import gleam/io +import gloq + pub fn main() { let key = "abc123" let response = - new_groq_request() - |> with_key(key) - |> with_context("Explain the importance of fast language models") - |> with_user("user") - |> with_model("llama3-8b-8192") - |> send() - - io.print(response) + gloq.new_groq_request() + |> gloq.with_key(key) + |> gloq.with_context("Explain the importance of fast language models") + |> gloq.with_user("user") + |> gloq.with_model("llama3-8b-8192") + |> gloq.send() + + io.println(response) } - ``` Further documentation can be found at .