16 lines
408 B
Plaintext
16 lines
408 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
|
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
|
|
|
[source, js]
|
|
----
|
|
const response = await client.inference.textEmbedding({
|
|
inference_id: "my-cohere-endpoint",
|
|
input:
|
|
"The sky above the port was the color of television tuned to a dead channel.",
|
|
task_settings: {
|
|
input_type: "ingest",
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|