19 lines
424 B
Plaintext
19 lines
424 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.put({
|
|
task_type: "completion",
|
|
inference_id: "openai-completion",
|
|
inference_config: {
|
|
service: "openai",
|
|
service_settings: {
|
|
api_key: "<api_key>",
|
|
model_id: "gpt-3.5-turbo",
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|