Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSawant18588 committed Dec 1, 2024
1 parent a30d2f8 commit 745703a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions embeddings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,8 @@ func TestEmbeddingEndpoint(t *testing.T) {
_, err = client.CreateEmbeddings(
context.Background(),
openai.EmbeddingRequest{
ExtraBody: map[string]any{
"input_type": "query",
"truncate": make(chan int), // Channels cannot be serialized into JSON
},
Dimensions: 1,
Input: make(chan int), // Invalid UTF-8 string
Model: "example_model",
},
)
checks.HasError(t, err, "CreateEmbeddings error")
Expand Down

0 comments on commit 745703a

Please sign in to comment.