models-api

Update an existing API model configuration

Changed on
put/bodhi/v1/models/api/{id}

Request

  • Base URL: http://localhost:1135
  • URL: http://localhost:1135/bodhi/v1/models/api/{id}
  • 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)

Path parameters

idstring required

API model ID

Request body

OR
OR
OR
OR
OR

Response

API model updated

sourcestring required
idstring required
namestring required
api_format'openai' | 'openai_responses' | 'anthropic' | 'anthropic_oauth' | 'gemini' | 'llm_liberty_oauth' required

API format/protocol specification

base_urlstring required
has_api_keyboolean required
prefixstring nullable
forward_all_with_prefixboolean required
extra_headersunknown
extra_bodyunknown
created_atstring date-time required
updated_atstring date-time required

Changes

    • info

      added subschema #2 to the / response property allOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 from the / response property oneOf list for the response status

    • breaking

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 subschema #6 from the request body oneOf list

    • info

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

    • info

      added the required property to the response with the status