B2BB2B LLM

LibreChat

Konfigurējiet LibreChat, lai izmantotu ar Model Gate OpenAI saderīgo API.

LibreChat caur Model Gate

Pievienojiet pielāgotu galapunktu librechat.yaml:

version: 1.2.1

endpoints:
  custom:
    - name: "Model Gate"
      apiKey: "${MODEL_GATE_API_KEY}"
      baseURL: "https://api.model-gate.com/v1"
      models:
        default:
          - "gpt-5.4"
          - "ch-47"
          - "ch-46s"
        fetch: true
      titleConvo: true
      titleModel: "ch-46s"
      modelDisplayLabel: "Model Gate"

Iestatiet noslēpumu pirms LibreChat sākšanas:

export MODEL_GATE_API_KEY="mg_live_..."

Pēc konfigurācijas maiņas restartējiet LibreChat. Kad fetch: true atbalsta instalētā versija LibreChat, tā nolasa modeļus no /v1/models, tostarp aizstājvārdi un atslēgām raksturīgās cenas.