models-api

Sync Models to Cache

Changed on

Synchronously fetches models from the external API and populates the cache. This ensures the cache is populated before returning. Primarily used for testing to avoid timing issues.

post/bodhi/v1/models/api/{id}/sync-models

Request

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

Unique identifier for the API model alias

Response

Models synced to cache successfully

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

    • info

      added the required property to the response with the status