LLM Provider

Create LLM Provider

Endpoint to create a new LLM Provider

post/llm-provider

Request

Request body

Example request

{
  "data": {
    "name": "Example Text",
    "llmType": "Example Text"
  }
}

Response

Created successfully

Example response

{
  "data": {
    "_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "createdAt": {
      "_type": "DateTime",
      "value": "2023-10-01T12:00:00Z"
    },
    "updatedAt": {
      "_type": "DateTime",
      "value": "2023-10-01T12:00:00Z"
    },
    "deletedAt": {
      "_type": "DateTime",
      "value": "2023-10-01T12:00:00Z"
    },
    "name": "Example Text",
    "description": "This is an example of longer text content that provides detailed information.",
    "slug": "example-slug",
    "llmType": "Example Text",
    "apiKey": "This is an example of longer text content that provides detailed information.",
    "modelName": "Example Text",
    "baseUrl": "https://example.com",
    "additionalParams": {
      "key": "value",
      "nested": {
        "data": 123
      }
    },
    "hasAdditionalParams": true,
    "project": {
      "_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
    },
    "projectId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "createdByUser": {
      "_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
    },
    "createdByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "isDefault": true,
    "costPerMillionTokensInUSDCents": 42
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.