Getting Started
API Reference
- GETPing Health
- GETGet Available Models
- POSTRetrieve Chunks
- POSTRetrieve Chunks Grouped
- POSTRetrieve Documents
- POSTBatch Get Documents
- POSTBatch Get Chunks
- POSTQuery Completion
- GETGet Chat History
- GETGet Available Models For Selection
- POSTAgent Query
- GETGet Usage Stats
- GETGet Recent Usage
- POSTGenerate Local Uri
- POSTGenerate Cloud Uri
- DELDelete Cloud App
- GETList Chat Conversations
- PATCHUpdate Chat Title
Documents
Folders
Workflows
model-config
Logs
Graph
model-config
Create Model Config
Create a new model configuration.
POST
/
model-config
/
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const modelConfigResponse = await client.modelConfig.create({
config_data: { foo: 'bar' },
provider: 'provider',
});
console.log(modelConfigResponse.id);
Copy
Ask AI
{
"id": "<string>",
"provider": "<string>",
"config_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Headers
Body
application/json
Request model for creating a model configuration.
Response
200
application/json
Successful Response
Response model for model configuration.
Was this page helpful?
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const modelConfigResponse = await client.modelConfig.create({
config_data: { foo: 'bar' },
provider: 'provider',
});
console.log(modelConfigResponse.id);
Copy
Ask AI
{
"id": "<string>",
"provider": "<string>",
"config_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.