mirror of
https://github.com/openai/openai-go.git
synced 2026-04-01 00:57:11 +09:00
feat(api): support for images in batch api
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
configured_endpoints: 135
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-7debfce2217c66ea87bfddaa244b57de4062dd7fd766fa9a28e869614205c040.yml
|
||||
openapi_spec_hash: e910fc478b8449134e2af1dc15fd33f7
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-47ef7e0aaa2f2052404041650c9b4d7d8c9c51c45ef2cb081548f329c3f81a6a.yml
|
||||
openapi_spec_hash: 0207b30cf74121a12c1647e25463cee9
|
||||
config_hash: 8dca0f2dc2706c07cf2f8d0ed4dc062e
|
||||
|
||||
27
batch.go
27
batch.go
@@ -349,12 +349,13 @@ type BatchNewParams struct {
|
||||
CompletionWindow BatchNewParamsCompletionWindow `json:"completion_window,omitzero,required"`
|
||||
// The endpoint to be used for all requests in the batch. Currently
|
||||
// `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
|
||||
// and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
|
||||
// restricted to a maximum of 50,000 embedding inputs across all requests in the
|
||||
// batch.
|
||||
// `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
|
||||
// supported. Note that `/v1/embeddings` batches are also restricted to a maximum
|
||||
// of 50,000 embedding inputs across all requests in the batch.
|
||||
//
|
||||
// Any of "/v1/responses", "/v1/chat/completions", "/v1/embeddings",
|
||||
// "/v1/completions", "/v1/moderations".
|
||||
// "/v1/completions", "/v1/moderations", "/v1/images/generations",
|
||||
// "/v1/images/edits".
|
||||
Endpoint BatchNewParamsEndpoint `json:"endpoint,omitzero,required"`
|
||||
// The ID of an uploaded file that contains requests for the new batch.
|
||||
//
|
||||
@@ -397,17 +398,19 @@ const (
|
||||
|
||||
// The endpoint to be used for all requests in the batch. Currently
|
||||
// `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
|
||||
// and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
|
||||
// restricted to a maximum of 50,000 embedding inputs across all requests in the
|
||||
// batch.
|
||||
// `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
|
||||
// supported. Note that `/v1/embeddings` batches are also restricted to a maximum
|
||||
// of 50,000 embedding inputs across all requests in the batch.
|
||||
type BatchNewParamsEndpoint string
|
||||
|
||||
const (
|
||||
BatchNewParamsEndpointV1Responses BatchNewParamsEndpoint = "/v1/responses"
|
||||
BatchNewParamsEndpointV1ChatCompletions BatchNewParamsEndpoint = "/v1/chat/completions"
|
||||
BatchNewParamsEndpointV1Embeddings BatchNewParamsEndpoint = "/v1/embeddings"
|
||||
BatchNewParamsEndpointV1Completions BatchNewParamsEndpoint = "/v1/completions"
|
||||
BatchNewParamsEndpointV1Moderations BatchNewParamsEndpoint = "/v1/moderations"
|
||||
BatchNewParamsEndpointV1Responses BatchNewParamsEndpoint = "/v1/responses"
|
||||
BatchNewParamsEndpointV1ChatCompletions BatchNewParamsEndpoint = "/v1/chat/completions"
|
||||
BatchNewParamsEndpointV1Embeddings BatchNewParamsEndpoint = "/v1/embeddings"
|
||||
BatchNewParamsEndpointV1Completions BatchNewParamsEndpoint = "/v1/completions"
|
||||
BatchNewParamsEndpointV1Moderations BatchNewParamsEndpoint = "/v1/moderations"
|
||||
BatchNewParamsEndpointV1ImagesGenerations BatchNewParamsEndpoint = "/v1/images/generations"
|
||||
BatchNewParamsEndpointV1ImagesEdits BatchNewParamsEndpoint = "/v1/images/edits"
|
||||
)
|
||||
|
||||
// The expiration policy for the output and/or error file that are generated for a
|
||||
|
||||
Reference in New Issue
Block a user