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:
| Key | Type | Description | Example |
|---|---|---|---|
| disableBuilder | Boolean | Asistanlar 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: falsepollIntervalMs
Anahtar:
| Key | Type | Description | Example |
|---|---|---|---|
| pollIntervalMs | Integer | Asistan ç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: 2500Not: Ş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:
| Key | Type | Description | Example |
|---|---|---|---|
| timeoutMs | Integer | Bir 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: 10000Not: 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:
| Key | Type | Description | Example |
|---|---|---|---|
| supportedIds | Array/List of Strings | Desteklenen asistan ID'lerinin listesi | Use this or `excludedIds` but not both (the `excludedIds` field will be ignored if so). |
Örnek:
supportedIds:
- "asst_supportedAssistantId1"
- "asst_supportedAssistantId2"excludedIds
Anahtar:
| Key | Type | Description | Example |
|---|---|---|---|
| excludedIds | Array/List of Strings | Hariç tutulan asistan kimliklerinin listesi | Use this or `supportedIds` but not both (the `excludedIds` field will be ignored if so). |
Örnek:
excludedIds:
- "asst_excludedAssistantId1"
- "asst_excludedAssistantId2"privateAssistants
Anahtar:
| Key | Type | Description | Example |
|---|---|---|---|
| privateAssistants | Boolean | Asistanların, onları oluşturan kullanıcıya özel olup olmayacağını kontrol eder | Does not work with `supportedIds` or `excludedIds` (`supportedIds` and `excludedIds` will be ignored). |
Varsayılan: false
Örnek:
privateAssistants: falseretrievalModels
Anahtar:
| Key | Type | Description | Example |
|---|---|---|---|
| retrievalModels | Array/List of Strings | Assistants 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:
| Key | Type | Description | Example |
|---|---|---|---|
| capabilities | Array/List of Strings | Assistants 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?