PATCH/v1/custom-models/{model_id}

カスタムモデルを更新する

カスタムモデルの表示名、説明、非公開のシステムプロンプトを更新します。エイリアスは変わりません。フィールドを消去するにはnullを送信してください。

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメーター

  • model_idstring必須

リクエストボディ

  • descriptionstring | null
  • display_namestring | null
  • system_promptstring | null

レスポンス

  • 200

    成功。更新後のカスタムモデルです。

    レスポンス
    • aliasstring必須
    • baseline_modelstring必須
    • created_atstring必須
    • display_namestring必須
    • gateway_alias_idstring必須
    • idstring必須
    • identity_idstring必須
    • stageenum
      "serving_baseline""preparing""prepared""building""results_ready""needs_attention"
      既定値: "serving_baseline"
    • statusstring必須
    • updated_atstring必須
    • descriptionstring | null必須
    • system_promptstring | null

      モデルの非公開システムプロンプトで、ChatとA/B推論に適用されます。設定されていない場合はnullです。

  • 422

    リクエストが無効です。

    レスポンス
    • detailarray<object>
      detail
      • ctxobject
      • inputany
      • locarray<string | integer>必須
      • msgstring必須
      • typestring必須

リクエスト

curl -X PATCH 'https://api.staging.experientiallabs.ai/v1/custom-models/00000000-0000-4000-8000-000000000001' \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "system_prompt": "You are a concise support assistant for Acme."
}'

レスポンス

{
  "alias": "string",
  "baseline_model": "string",
  "created_at": "string",
  "display_name": "string",
  "gateway_alias_id": "string",
  "id": "string",
  "identity_id": "string",
  "status": "string",
  "updated_at": "string",
  "description": "string"
}

https://api.staging.experientiallabs.ai/v1/custom-models/00000000-0000-4000-8000-000000000001