Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere committed Feb 7, 2024
1 parent d7975a5 commit cd29b51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"strings"
"testing"
"time"

cohere "github.com/cohere-ai/cohere-go/v2"
client "github.com/cohere-ai/cohere-go/v2/client"
Expand Down Expand Up @@ -227,9 +228,13 @@ func TestNewClient(t *testing.T) {
})

t.Run("TestListDatasets", func(t *testing.T) {
timee := time.Now()
datasets, err := client.Datasets.List(
context.TODO(),
&cohere.DatasetsListRequest{})
&cohere.DatasetsListRequest{
Before: &timee,
After: &timee,
})

require.NoError(t, err)
print(datasets)
Expand Down

0 comments on commit cd29b51

Please sign in to comment.