Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devie #34

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/chron-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 6 additions & 4 deletions completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading