Skip to content

Commit 7144bdb

Browse files
Merge pull request #10 from maltesa/main
2 parents 8e07c45 + 5a55590 commit 7144bdb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/cohere/client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ def generate(
5353
def embed(
5454
texts:,
5555
model: nil,
56+
input_type: nil,
5657
truncate: nil
5758
)
5859
response = connection.post("embed") do |req|
5960
req.body = {texts: texts}
6061
req.body[:model] = model if model
62+
req.body[:input_type] = input_type if input_type
6163
req.body[:truncate] = truncate if truncate
6264
end
6365
response.body

0 commit comments

Comments
 (0)