Skip to main content
LibreChat is joining ClickHouse to power the open-source Agentic Data Stack 🎉 Learn more
LibreChat

Assistants Endpoint Nesne Yapısı

Bu sayfa hem assistants hem de azureAssistants endpoint'leri için geçerlidir.

Not: azureAssistants özelliğini etkinleştirmek için daha fazla bilgi için Azure OpenAI Yapılandırması bölümüne bakın.

Örnek

endpoints:
  # azureAssistants: # <-- Azure-specific configuration has the same structure as `assistants`
    #  pollIntervalMs: 500
    #  timeoutMs: 10000

  assistants:
    disableBuilder: false
    # Use either `supportedIds` or `excludedIds` but not both
    supportedIds: ["asst_supportedAssistantId1", "asst_supportedAssistantId2"]
    # excludedIds: ["asst_excludedAssistantId"]
    # `privateAssistants` do not work with `supportedIds` or `excludedIds`
    # privateAssistants: false
    # (optional) Models that support retrieval, will default to latest known OpenAI models that support the feature
    # retrievalModels: ["gpt-4-turbo-preview"]
    # (optional) Assistant Capabilities available to all users. Omit the ones you wish to exclude. Defaults to list below.
    # capabilities: ["code_interpreter", "retrieval", "actions", "tools", "image_vision"]

Bu yapılandırma, asistanlar için oluşturucu arayüzünü etkinleştirir, çalışma güncellemelerini kontrol etmek için 500ms'lik bir yoklama aralığı belirler ve asistan çalıştırma işlemleri için 10 saniyelik bir zaman aşımı süresi oluşturur.

disableBuilder

Anahtar:

KeyTypeDescriptionExample
disableBuilderBooleanAsistanlar için oluşturucu arayüzünün görünürlüğünü ve kullanımını kontrol eder.When set to `true`, disables the builder interface for the assistant, limiting direct manual interaction.

Varsayılan: false

Örnek:

disableBuilder: false

pollIntervalMs

Anahtar:

KeyTypeDescriptionExample
pollIntervalMsIntegerAsistan çalıştırma güncellemelerini veya asistan çalıştırma durumlarındaki değişiklikleri kontrol etmek için milisaniye cinsinden yoklama aralığını belirtir.Specifies the polling interval in milliseconds for checking assistant run updates.

Varsayılan: 2000

Örnek:

pollIntervalMs: 2500

Not: Şu anda bu yalnızca Azure Assistants tarafından kullanılmaktadır. Hız sınırlaması hatalarını önlemek için Azure Assistants için daha yüksek değerler önerilir.

timeoutMs

Anahtar:

KeyTypeDescriptionExample
timeoutMsIntegerBir asistanın isteği iptal edilmeden önce çalışabileceği maksimum süreyi milisaniye cinsinden tanımlar.Sets a timeout in milliseconds for assistant runs. Helps manage system load by limiting total run operation time.

Varsayılan: 180000

Örnek:

timeoutMs: 10000

Not: Varsayılan değer 3 dakikadır (180.000 ms). Çalıştırma işlemi süreleri 50 saniye ile 2 dakika arasında değişebilir ancak bu süreyi aşabilir. timeoutMs değeri aşılırsa, çalıştırma işlemi iptal edilecektir.

supportedIds

Anahtar:

KeyTypeDescriptionExample
supportedIdsArray/List of StringsDesteklenen asistan ID'lerinin listesiUse this or `excludedIds` but not both (the `excludedIds` field will be ignored if so).

Örnek:

supportedIds:
  - "asst_supportedAssistantId1"
  - "asst_supportedAssistantId2"

excludedIds

Anahtar:

KeyTypeDescriptionExample
excludedIdsArray/List of StringsHariç tutulan asistan kimliklerinin listesiUse this or `supportedIds` but not both (the `excludedIds` field will be ignored if so).

Örnek:

excludedIds:
  - "asst_excludedAssistantId1"
  - "asst_excludedAssistantId2"

privateAssistants

Anahtar:

KeyTypeDescriptionExample
privateAssistantsBooleanAsistanların, onları oluşturan kullanıcıya özel olup olmayacağını kontrol ederDoes not work with `supportedIds` or `excludedIds` (`supportedIds` and `excludedIds` will be ignored).

Varsayılan: false

Örnek:

privateAssistants: false

retrievalModels

Anahtar:

KeyTypeDescriptionExample
retrievalModelsArray/List of StringsAssistants endpoint için retrieval özelliğini destekleyen modelleri belirtir.Defines the models that support retrieval capabilities for the assistants endpoint. By default, it uses the latest known OpenAI models that support the official Retrieval feature.

Varsayılan: [] (almayı destekleyen en son bilinen OpenAI modellerini kullanır)

Örnek:

retrievalModels:
  - "gpt-4-turbo-preview"

capabilities

Anahtar:

KeyTypeDescriptionExample
capabilitiesArray/List of StringsAssistants endpoint'i için tüm kullanıcılara sunulan asistan yeteneklerini belirtir.Defines the assistant capabilities that are available to all users for the assistants endpoint. You can omit the capabilities you wish to exclude from the list.

Varsayılan: ["code_interpreter", "image_vision", "retrieval", "actions", "tools"]

Örnek:

capabilities:
  - "code_interpreter"
  - "retrieval"
  - "actions"
  - "tools"
  - "image_vision"

Not: Bu alan isteğe bağlıdır. Belirtilmediği takdirde, varsayılan davranış örnekte listelenen tüm yetenekleri dahil etmektir.

Bu rehber nasıl?