Create a Model

post

/services/{version}/installation/aiservice/models/{model}

Required Role: Security

Create an AI Model.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : AI Model
Type: object
Title: AI Model
Show Source
Nested Schema : capabilities
Type: array
Minimum Number of Items: 0
Maximum Number of Items: 32767
Show Source
Nested Schema : limits
Type: object
Show Source
Nested Schema : parameters
Type: object
Nested Schema : tasks
Type: array
Minimum Number of Items: 0
Maximum Number of Items: 32767
Show Source
Example Request (application/json)
{
    "name":"Voyage 2",
    "description":"Voyage embedding model for regression",
    "capabilities":[
        "embed"
    ],
    "providerId":"voyage1",
    "remoteModelName":"voyage-2",
    "limits":{
        "maxInputCharacters":20000
    }
}
Back to Top

Response

Supported Media Types

201 Response

New Model has been sucessfully added to the installation.
Body ()
Root Schema : RESTful API Standard Response
Type: object
Title: RESTful API Standard Response
Standard Response for all Oracle GoldenGate RESTful API calls
Show Source
Nested Schema : messages
Type: array
Minimum Number of Items: 0
Maximum Number of Items: 65535
Oracle GoldenGate messages issued during the request
Show Source
Nested Schema : response
Type: object
Oracle GoldenGate document from the request
Nested Schema : items
Type: object
Show Source
  • Allowed Values: [ "ogg:message" ]
  • Minimum Length: 9
    Maximum Length: 9
    Pattern: ^OGG[-][0-9]{5}$
    The Oracle GoldenGate message code
  • Minimum Length: 20
    Maximum Length: 32
    Pattern: ^[0-9]{4}[-](0[1-9]|1[0-2])[-](0[1-9]|[12][0-9]|3[01])[tT ]([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]{1,6})?([zZ]|[+-][0-9][0-9]:[0-5][0-9])$
    The date and time that the message was issued
  • Allowed Values: [ "INFO", "WARNING", "ERROR" ]
    The severity of the message
  • Minimum Length: 1
    Maximum Length: 4095
    A human-readable description that provides information and detail specific to this occurence of the information, warning or error.
  • Minimum Length: 2
    Maximum Length: 4095
    Pattern: ^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$
    An absolute URI [RFC3986] to a page that describes the info, warning or error type.
Example Response (application/json)
{
    "$schema":"api:standardResponse",
    "links":[
        {
            "rel":"canonical",
            "href":"https://localhost:9000/services/v2/installation/aiservice/models/voyage-2",
            "mediaType":"application/json"
        },
        {
            "rel":"self",
            "href":"https://localhost:9000/services/v2/installation/aiservice/models/voyage-2",
            "mediaType":"application/json"
        }
    ],
    "messages":[
    ],
    "response":{
        "capabilities":[
            "embed"
        ],
        "providerId":"voyage1",
        "id":"voyage-2",
        "name":"Voyage 2",
        "remoteModelName":"voyage-2",
        "type":"remote",
        "limits":{
            "maxInputCharacters":20000
        },
        "parameters":{
        },
        "description":"Voyage embedding model for regression"
    }
}
Back to Top