Auto-generated code for 8.15 (#2359)
This commit is contained in:
20
docs/doc_examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc
Normal file
20
docs/doc_examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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: "sparse_embedding",
|
||||
inference_id: "alibabacloud_ai_search_sparse",
|
||||
inference_config: {
|
||||
service: "alibabacloud-ai-search",
|
||||
service_settings: {
|
||||
api_key: "<api_key>",
|
||||
service_id: "ops-text-sparse-embedding-001",
|
||||
host: "default-j01.platform-cn-shanghai.opensearch.aliyuncs.com",
|
||||
workspace: "default",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user