From 3dbb65df1f96213bbfc03df1543633d31608e2c7 Mon Sep 17 00:00:00 2001 From: AryaanSheth Date: Thu, 5 Sep 2024 11:06:55 -0400 Subject: [PATCH] Update QuickStart Example Code --- README.md | 19 +++++++++---------- gleam.toml | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ea687b4..1d1e9a3 100644 --- a/README.md +++ b/README.md @@ -12,21 +12,20 @@ gleam add gloq ``` ```gleam -import gloq - pub fn main() { - let api_key = "abc123" + let key = "abc123" let response = - gloq.groq_request( - api_key, - "user", - "Explain the importance of fast language models", - "llama3-8b-8192", - ) - + 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) } + ``` Further documentation can be found at . diff --git a/gleam.toml b/gleam.toml index 9b6edf5..a2aa9dd 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "gloq" -version = "1.1.1" +version = "1.1.2" # Fill out these fields if you intend to generate HTML documentation or publish # your project to the Hex package manager.