Auto-generated code for 8.x (#2568)

This commit is contained in:
Elastic Machine
2025-01-13 16:06:57 +00:00
committed by GitHub
parent fbc4fa0685
commit 8c7d4c42e6
30 changed files with 1795 additions and 445 deletions

View File

@ -0,0 +1,22 @@
// 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.put({
task_type: "rerank",
inference_id: "jinaai-rerank",
inference_config: {
service: "jinaai",
service_settings: {
api_key: "<api_key>",
model_id: "jina-reranker-v2-base-multilingual",
},
task_settings: {
top_n: 10,
return_documents: true,
},
},
});
console.log(response);
----