> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 공급자 생성 또는 교체

> 인식된 공급자의 경우, 암호화된 자격 증명을 저장하기 전에 카탈로그의 첫 번째 모델을 사용하여 최소한의 테스트 요청을 보냅니다. 그런 다음 `local_only`가 true가 아니면 원격 공급자 자료를 게시합니다. 게시가 대기 중인 동안 202를 반환합니다.



## OpenAPI

````yaml ko/openapi/model-distillation/management.openapi.yaml PUT /providers/{provider}
openapi: 3.1.0
info:
  title: CoreWeave Model Distillation Management API
  version: 1.0.0
  description: |
    공급자, 프로젝트 (API 경로에서는 tasks라고 함), 라우팅 버전,
    데이터셋, 레이블 재지정, 미세 조정 모델, 평가, 분석을 관리하세요. 이 API는
    Model Distillation에서 사용하는 API와 동일합니다.
servers:
  - url: https://distillation.training.wandb.ai/v1
    description: 프로덕션
security:
  - WandbCredential: []
tags:
  - name: Providers
    description: OpenAI 호환 엔드포인트, 인증 정보, 모델 카탈로그 및 가격.
  - name: Tasks
    description: 안정적인 작업 ID와 작업 수준 정보입니다.
  - name: Routing
    description: 버전이 지정된 모델 대상, 가중치, 요청 매개변수.
  - name: Datasets
    description: 재현 가능한 데이터 스냅샷, 항목, 레이블 재지정, 재사용 가능한 모델 출력.
  - name: Fine-tunes
    description: 지도 파인튜닝 작업 및 호스팅된 모델 아티팩트.
  - name: Evaluations
    description: 직접 비교, 완전 일치, 범주화 평가.
  - name: Analytics
    description: 작업 트래픽, 토큰, 오류, 예상 비용 조회 모델.
  - name: UI preferences
    description: UI에서 사용하는 작업별 표시 기본 설정.
paths:
  /providers/{provider}:
    parameters:
      - $ref: '#/components/parameters/WandbEntity'
      - $ref: '#/components/parameters/ProviderName'
    put:
      tags:
        - Providers
      summary: 공급자 생성 또는 인증 정보 교체
      description: >-
        인식된 공급자의 경우, 암호화된 자격 증명을 저장하기 전에 카탈로그의 첫 번째 모델을 사용하여 최소한의 테스트 요청을 보냅니다.
        그런 다음 `local_only`가 true가 아니면 원격 공급자 자료를 게시합니다. 게시가 대기 중인 동안 202를 반환합니다.
      operationId: putProvider
      requestBody:
        required: true
        content:
          application/json:
            example:
              base_url: https://api.openai.com/v1
              api_key: sk-example
            schema:
              type: object
              properties:
                base_url:
                  type: string
                  format: uri
                api_key:
                  type: string
                  minLength: 1
                local_only:
                  type: boolean
                  default: false
              required:
                - base_url
                - api_key
              additionalProperties: false
      responses:
        '200':
          description: 공급자가 이미 적용되었습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Provider'
        '202':
          description: 공급자가 저장되었으며 게시 대기 중입니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Provider'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    WandbEntity:
      name: Wandb-Entity
      in: header
      required: false
      description: 액세스 가능한 개인 또는 팀 entity. 인증된 사용자의 기본 entity를 사용하려면 생략하세요.
      schema:
        type: string
    ProviderName:
      name: provider
      in: path
      required: true
      schema:
        type: string
        pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
  schemas:
    Provider:
      type: object
      required:
        - name
        - entity
        - base_url
        - credential_mode
        - masked_key
        - local_only
        - revision
        - deployments
        - models
      properties:
        name:
          type: string
        entity:
          type: string
        base_url:
          type: string
          format: uri
        credential_mode:
          type: string
          enum:
            - stored
            - passthrough
        masked_key:
          type: string
        local_only:
          type: boolean
        revision:
          type: integer
        deployments:
          type: array
          items:
            $ref: '#/components/schemas/Deployment'
        models:
          type: array
          items:
            $ref: '#/components/schemas/ProviderModel'
    Deployment:
      type: object
      required:
        - proxy_backend
        - status
      additionalProperties: true
      properties:
        proxy_backend:
          type: string
        status:
          type: string
          enum:
            - pending
            - applying
            - applied
            - failed
        applied_revision:
          type: integer
          nullable: true
        external_ref:
          type: string
          nullable: true
        last_error:
          type: string
          nullable: true
    ProviderModel:
      type: object
      required:
        - id
        - model
        - predefined
        - enabled
      properties:
        id:
          type: string
          format: uuid
        model:
          type: string
        predefined:
          type: boolean
        enabled:
          type: boolean
        input_usd_per_mtok:
          type:
            - number
            - 'null'
        output_usd_per_mtok:
          type:
            - number
            - 'null'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
          properties:
            message:
              type: string
            type:
              type: string
      example:
        error:
          message: Task 'missing' not found in entity 'your-team'
          type: not_found
  responses:
    Error:
      description: 요청이 실패했습니다.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    WandbCredential:
      type: http
      scheme: bearer
      bearerFormat: W&B API key
      description: W&B API 키.

````