static platform\openAi\batch::createBatch ($string $fileId = null[, $string $endpoint = null[, $array $metadata = null]])
$fileId |
enthält die ID der Datei |
$endpoint |
optional; enthält den Endpoint der zu verwenden ist, '/v1/responses', '/v1/chat/completions', '/v1/completions', '/v1/embeddings' (default = '/v1/responses') |
$metadata |
optional; Daten als assoc_array, max 16 Datensätze |
https://platform.openai.com/docs/api-reference/batch/create
https://platform.openai.com/docs/api-reference/batch/request-input
https://jsonlines.org/examples/
erzeugt ein neuen Batch mit einer JSONL Datei; im Fehlerfall null
https://platform.openai.com/docs/api-reference/batch/request-input
https://jsonlines.org/examples/
erzeugt ein neuen Batch mit einer JSONL Datei; im Fehlerfall null
platform\openAi\batch::createBatch('file-aia75zFVocj5R4TaKxy3xLfN' ) ;
static platform\openAi\batch::isBatchId ($string $batchId = null)
$batchId |
enthält die Batch ID |
prüft ob der string eine Batch ID ist und gibt true zurück; ansonsten false
platform\openAi\batch::isBatchId('batch_6vcan6uHqsNAoHm0FSYjZY7y' ) ;
static platform\openAi\batch::batchIdExists ($string $batchId = null)
$batchId |
enthält die Batch ID |
prüft ob die Batch ID existiert und gibt true zurück; ansonsten false
platform\openAi\batch::batchIdExists('batch_6vcan6uHqsNAoHm0FSYjZY7y' ) ;
static platform\openAi\batch::getBatchList ([$array $options = null])
$options |
optional; Query:
|
https://platform.openai.com/docs/api-reference/batch/list
listet alle laufenden Batches auf; im Fehlerfall null
listet alle laufenden Batches auf; im Fehlerfall null
platform\openAi\batch::getBatchList() ;
static platform\openAi\batch::getBatch ($string $batchId = null)
$batchId |
enthält die ID des Batchs |
https://platform.openai.com/docs/api-reference/batch/retrieve
listet Informationen über den laufenden Batch auf; im Fehlerfall null
listet Informationen über den laufenden Batch auf; im Fehlerfall null
platform\openAi\batch::getBatch('batch_id' ) ;
static platform\openAi\batch::cancelBatch ($string $batchId = null)
$batchId |
enthält die ID des Batchs |
https://platform.openai.com/docs/api-reference/batch/cancel
bricht den laufenden Batch ab; im Fehlerfall null
bricht den laufenden Batch ab; im Fehlerfall null
platform\openAi\batch::cancelBatch('batch_id' ) ;