gloq

Package Version Hex Docs Tests

Library is in its very early stages
Feel free to create PR’s and Issues

gleam add gloq
import gleam/io
import gloq

pub fn main() {
  let key = "abc123"

  let 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 https://hex.pm/packages/gloq.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell
Search Document