Skip to content

Commit

Permalink
example: embedding use typeDocument as default value
Browse files Browse the repository at this point in the history
  • Loading branch information
devinyf committed May 28, 2024
1 parent fabee62 commit 989b083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/embedding/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func main() {
req := &embedding.Request{
Model: model,
Params: embedding.Params{
TextType: embedding.TypeQuery,
TextType: embedding.TypeDocument, // 默认值
},
Input: embedding.Input{
Texts: textInputs,
Expand Down

0 comments on commit 989b083

Please sign in to comment.