Skip to content

Commit

Permalink
Update QuickStart Example Code
Browse files Browse the repository at this point in the history
  • Loading branch information
AryaanSheth committed Sep 5, 2024
1 parent 5388f15 commit 3dbb65d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://hex.pm/packages/gloq>.
Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 3dbb65d

Please sign in to comment.