models-api

Test API connectivity with a prompt.

Changed on
post/bodhi/v1/models/api/test

Request

  • Base URL: http://localhost:1135
  • URL: http://localhost:1135/bodhi/v1/models/api/test
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL /bodhi/v1/auth/initiate, token URL /bodhi/v1/auth/callback, scopes: resource_power_user)

Request body

OR
OR
OR
OR
OR

Example request

{
  "creds": {
    "type": "id",
    "value": "openai-gpt4"
  }
}

Response

Test result

successboolean required
responsestring nullable
errorstring nullable

Example response

{
  "error": null,
  "response": "Hello! I'm doing well, thank you.",
  "success": true
}

Changes

    • breaking

      the request's body type changed from object to no type

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 subschema #6 to the request body oneOf list

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status