import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const modelConfigResponse = await client.modelConfig.update('config_id', { config_data: { foo: 'bar' } });
console.log(modelConfigResponse.id);
{
"id": "<string>",
"provider": "<string>",
"config_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Update an existing model configuration.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const modelConfigResponse = await client.modelConfig.update('config_id', { config_data: { foo: 'bar' } });
console.log(modelConfigResponse.id);
{
"id": "<string>",
"provider": "<string>",
"config_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Request model for updating a model configuration.
Successful Response
Response model for model configuration.
Was this page helpful?