Headers
Body
application/json
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const customModel = await client.modelConfig.customModels.create({
config: {},
model_name: 'model_name',
name: 'name',
provider: 'provider',
});
console.log(customModel.id);{
"id": "<string>",
"name": "<string>",
"provider": "<string>",
"model_name": "<string>",
"config": {}
}Create a new custom model.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const customModel = await client.modelConfig.customModels.create({
config: {},
model_name: 'model_name',
name: 'name',
provider: 'provider',
});
console.log(customModel.id);{
"id": "<string>",
"name": "<string>",
"provider": "<string>",
"model_name": "<string>",
"config": {}
}Was this page helpful?