From e7f399600fa4735667a2fdcdca18cc6865704165 Mon Sep 17 00:00:00 2001 From: conneroisu Date: Fri, 6 Sep 2024 15:11:04 -0400 Subject: [PATCH 1/2] add groq key to the workflow for the models --- .github/workflows/chron-models.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/chron-models.yaml b/.github/workflows/chron-models.yaml index c60fa1a..7f48af1 100644 --- a/.github/workflows/chron-models.yaml +++ b/.github/workflows/chron-models.yaml @@ -33,6 +33,8 @@ jobs: # Step 5: Generate Go docs (assuming a script `make docs` exists) - name: Generate Go docs + env: + GROQ_KEY: ${{ secrets.GROQ_KEY }} run: | make docs From de43cae6f002e098ea616a51614986a1b01ef672 Mon Sep 17 00:00:00 2001 From: conneroisu Date: Fri, 6 Sep 2024 15:20:34 -0400 Subject: [PATCH 2/2] update comment for CreateCompletion --- completion.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/completion.go b/completion.go index 9b38ea5..bb61a63 100644 --- a/completion.go +++ b/completion.go @@ -5,11 +5,13 @@ import ( "net/http" ) -// CreateCompletion — API call to create a completion. This is the main endpoint of the API. Returns new text as well -// as, if requested, the probabilities over each alternative token at each position. +// CreateCompletion call the Groq API to create a completion. This is the main +// endpoint of the API. Returns new text as well as, if requested, the +// probabilities over each alternative token at each position. // -// If using a fine-tuned model, simply provide the model's ID in the CompletionRequest object, -// and the server will use the model's parameters to generate the completion. +// If using a fine-tuned model, simply provide the model's ID in the +// CompletionRequest object, and the server will use the model's parameters to +// generate the completion. func (c *Client) CreateCompletion( ctx context.Context, request CompletionRequest,