22 lines
476 B
Plaintext
22 lines
476 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.transport.request({
|
|
method: "PUT",
|
|
path: "/_inference/completion/anthropic_completion",
|
|
body: {
|
|
service: "anthropic",
|
|
service_settings: {
|
|
api_key: "<api_key>",
|
|
model_id: "<model_id>",
|
|
},
|
|
task_settings: {
|
|
max_tokens: 1024,
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|